
 
       wx.lib.agw.flatmenu.FlatMenuButton¶
  wx.lib.agw.flatmenu.FlatMenuButton¶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.
 Methods Summary¶
 Methods Summary¶| __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 FlatMenuButtonto the specified position. | 
| ProcessLeftDown | Handles left down mouse events. | 
| ProcessLeftUp | Handles left up mouse events. | 
| ProcessMouseMove | Handles mouse motion events. This is called any time the mouse moves in the parent menu, | 
| SetSize | Sets the size for FlatMenuButton. | 
 Class API¶
 Class API¶FlatMenuButton(object)¶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__(self, menu, up, normalBmp, disabledBmp=wx.NullBitmap, scrollOnHover=False)¶Default class constructor.
| Parameters: | 
|---|
Contains(self, pt)¶Used internally.
GetClientRect(self)¶Returns the client rectangle for FlatMenuButton.
GetTimer(self)¶Returns the timer object.
GetTimerId(self)¶Returns the timer object identifier.
Move(self, input1, input2=None)¶Moves FlatMenuButton to the specified position.
| Parameters: | 
 | 
|---|
ProcessLeftDown(self, pt)¶Handles left down mouse events.
| Parameters: | pt – an instance of wx.Pointwhere the left mouse button was pressed. | 
|---|
ProcessLeftUp(self, pt)¶Handles left up mouse events.
| Parameters: | pt – an instance of wx.Pointwhere the left mouse button was released. | 
|---|
ProcessMouseMove(self, pt)¶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.Pointwhere the mouse pointer was moved. | 
|---|
SetSize(self, input1, input2=None)¶Sets the size for FlatMenuButton.
| Parameters: | 
 | 
|---|