Demo 2.9.2.4 : No drop menu on PlateButton

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?

I'm on MSWin7 using wxPy 2.9.2.4 and Py2.7.

Thanks,
Michael

Hi,

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?

I'm on MSWin7 using wxPy 2.9.2.4 and Py2.7.

Hi,this is caused by an issue that has been fixed already in current
svn. There is an issue where the Cairo GraphicsContext is getting used
unexpectedly (see:
http://groups.google.com/group/wxPython-dev/browse_thread/thread/cc12d0b0c5106a91)
which exposed a bug in the PlateButton's drawing code.

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:

Yes, it does work. Thanks, Cody.

Michael

···

On 2011-12-02 11:55 AM, Cody wrote:

Hi,

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?

I'm on MSWin7 using wxPy 2.9.2.4 and Py2.7.

Hi,this is caused by an issue that has been fixed already in current
svn. There is an issue where the Cairo GraphicsContext is getting used
unexpectedly (see:
http://groups.google.com/group/wxPython-dev/browse_thread/thread/cc12d0b0c5106a91)
which exposed a bug in the PlateButton's drawing code.

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.