|
Size: 994
Comment:
|
← Revision 3 as of 2008-03-11 10:50:22 ⇥
Size: 998
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 23: | Line 23: |
| http://sigmacore.net/andrea/images/shapedbutton.jpg | {{http://sigmacore.net/andrea/images/shapedbutton.jpg}} |
ShapedButton tries to fill the lack of "custom" shaped controls in wxPython. With this class, you will be able to create rounded and elliptical buttons, with optional images and/or text labels. This control acts quite similarly to the ones present in wx.lib.buttons.
With ShapedButton you can:
- Create rounded/elliptical buttons/togglebuttons;
- Set images for the enabled/disabled/focused/selected state of the button;
- Draw the focus indicator (or disable it);
- Set label colour and font;
- Apply a rotation to the shapedbutton label;
- Change shapedbutton shape and text orientation in runtime.
NOTE: ShapedButton requires PIL (Python Imaging Library). You can find it at: http://www.pythonware.com/products/pil/
Downloads, screenshots, demo and more info can be found at:
http://xoomer.virgilio.it/infinity77/eng/freeware.html#shapedbutton
OR:
http://sigmacore.net/andrea/?page_id=2
Andrea.
