A nice small class that functions like wx.BitmapButton, the reason I did not used wx.BitmapButton is that on Linux, it has some extra margins that I can’t seem to be able to remove.
__init__ | Default class constructor. |
Contains | Used internally. |
Draw | Draws self at rect using dc. |
GetClientRect | Returns the client rectangle for FlatMenuButton. |
GetTimer | Returns the timer object. |
GetTimerId | Returns the timer object identifier. |
Move | Moves FlatMenuButton to the specified position. |
ProcessLeftDown | Handles left down mouse events. |
ProcessLeftUp | Handles left up mouse events. |
ProcessMouseMove | Handles mouse motion events. |
SetSize | Sets the size for FlatMenuButton. |
__del__ | Used internally. |
A nice small class that functions like wx.BitmapButton, the reason I did not used wx.BitmapButton is that on Linux, it has some extra margins that I can’t seem to be able to remove.
Default class constructor.
Parameters: |
---|
Returns the client rectangle for FlatMenuButton.
Moves FlatMenuButton to the specified position.
Parameters: |
|
---|
Handles left down mouse events.
Parameters: | pt – an instance of wx.Point where the left mouse button was pressed. |
---|
Handles left up mouse events.
Parameters: | pt – an instance of wx.Point where the left mouse button was released. |
---|
Handles mouse motion events. This is called any time the mouse moves in the parent menu, so we must check to see if the mouse is over the button.
Parameters: | pt – an instance of wx.Point where the mouse pointer was moved. |
---|
Sets the size for FlatMenuButton.
Parameters: |
|
---|
Enter search terms or a module, class or function name.