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'
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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(22.7 kB
view details)
File details
Details for the file wxutils-0.1.0.tar.gz.
File metadata
- Download URL: wxutils-0.1.0.tar.gz
- Upload date:
- Size: 22.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e87b4e3f656d26d188da9639ffb1a7bef12988af73732dde15d95b69ced9aaa7
|
|
| MD5 |
0517d1e0993adc65adf4fcf66e8de123
|
|
| BLAKE2b-256 |
92903f6a1497aff1ad5614ffc79be32ef6c12fe51c40023cbf91e78cae47f482
|