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.

Filename, size & hash SHA256 hash help File type Python version Upload date
wxutils-0.2.tar.gz (32.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page