Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module speedmeter |
|
Description:
SpeedMeter tries to reproduce the behavior of some car controls (but not only), by creating an "angular" control (actually, circular). I remember to have seen it somewhere, and i decided to implement it in wxPython.
SpeedMeter starts its construction from an empty bitmap, and it uses some functions of the wx.DC class to create the rounded effects. everything is processed in the draw() method of SpeedMeter class.
This implementation allows you to use either directly the wx.PaintDC, or the better (for me) double buffered style with wx.BufferedPaintDC. the double buffered implementation has been adapted from the wxPython wiki example:
http://wiki.wxpython.org/index.cgi/doublebuffereddrawing
Usage:
None of the options (a part of parent class) are strictly required, if you use the defaults you get a very simple SpeedMeter. For the full listing of the input parameters, see the SpeedMeter __init__() method.
Methods and Settings:
SpeedMeter is highly customizable, and in particular you can set:
For more info on methods and initial styles, please refer to the __init__() method for SpeedMeter or to the specific functions.
SpeedMeter control is freeware and distributed under the wxPython license.
Latest revision: Andrea Gavana @ 15 oct 2008, 10.00 GMT Version 0.1
Classes | |
---|---|
BufferedWindow |
A Buffered window class. |
SpeedMeter |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:55:21 2009 | http://epydoc.sf.net |