Skip to main content

Utilities and convenience classes and functions for wxPython

Project description

A library of convenience functions for wxPython. The aim
here is to simplify code, reduce boiler-plate, and prevent repeating code
across several projects.

These are primarily simplified widgets with common attributes, such as
b = button(parent, label, action=action, **kws)

which attaches a callback to a wx.Button, corresponding to
b = wx.Button(parent, label=label, **kws)
if hasattr(action, '__call__'):
parent.Bind(wx.EVT_BUTTON, action, b)

Yes, this is merely a convenience, but covers a remarkably common pattern.
There are several similar widgets. In addition, there are more complex
widgets, such as:
FloatCtrl wx.TextCrtl, allowing numerical input only. Precision,
upper bound, and lower bound can be set, and a callback
can be bound to the control.
NumericCombo wx.ComboBox with a FloatCtrl
YesNo a wx.Choice of only 'No' and 'Yes'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wxutils-0.2.2.tar.gz (32.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page