When I run the demo for PlateButton, several of the buttons appear to be supposed to show a menu, but no amount of clicking will make the menu appear.
The menu is evidently supposed to hit due to this binding:
tbtn.Bind(platebtn.EVT_PLATEBTN_DROPARROW_PRESSED, self.OnDropArrowPressed)
But in my code using a platebutton that particular event can't be made to happen under any circumstances. Only the wx.EVT_BUTTON event happens no matter how or where on the button I click.
Is this a bug in the Demo or in wxPy or am I just doing something wrong?
When I run the demo for PlateButton, several of the buttons appear to be
supposed to show a menu, but no amount of clicking will make the menu
appear.
The menu is evidently supposed to hit due to this binding:
tbtn.Bind(platebtn.EVT_PLATEBTN_DROPARROW_PRESSED, self.OnDropArrowPressed)
But in my code using a platebutton that particular event can't be made to
happen under any circumstances. Only the wx.EVT_BUTTON event happens no
matter how or where on the button I click.
Is this a bug in the Demo or in wxPy or am I just doing something wrong?
If you click on the far right of the button space (past the down
arrow) the menu will show or if you use the PB_STYLE_NOBG style flag
it will cause the button to get drawn differently and the arrow will
be in the right place. The other option is to get the current platebtn
module from SVN and use it instead.
Cody
···
On Fri, Dec 2, 2011 at 10:24 AM, Michael Hipp <michael@redmule.com> wrote:
On Fri, Dec 2, 2011 at 10:24 AM, Michael Hipp<michael@redmule.com> wrote:
When I run the demo for PlateButton, several of the buttons appear to be
supposed to show a menu, but no amount of clicking will make the menu
appear.
The menu is evidently supposed to hit due to this binding:
tbtn.Bind(platebtn.EVT_PLATEBTN_DROPARROW_PRESSED, self.OnDropArrowPressed)
But in my code using a platebutton that particular event can't be made to
happen under any circumstances. Only the wx.EVT_BUTTON event happens no
matter how or where on the button I click.
Is this a bug in the Demo or in wxPy or am I just doing something wrong?
If you click on the far right of the button space (past the down
arrow) the menu will show or if you use the PB_STYLE_NOBG style flag
it will cause the button to get drawn differently and the arrow will
be in the right place. The other option is to get the current platebtn
module from SVN and use it instead.