I'm trying to get the help text from my menubar menus to *not* mess with
the statusbar. (By default, selecting a menu item in the menubar puts
it's help text in the first statusbar field.) I'm doing this:
def OnMenuHighlight(self, evt):
print "Don't stomp on my statusbar!"
This works as expected in Linux(statusbar is untouched) but on Windows,
the help text still appears in the statusbar. How do I tell the menubar
to not touch the statusbar? Should I file this as a bug in wxPython
on Windows?
On Wed, May 20, 2009 at 4:34 PM, Ryan Nowakowski <tubaman@fattuba.com> wrote:
I'm trying to get the help text from my menubar menus to *not* mess with
the statusbar. (By default, selecting a menu item in the menubar puts
it's help text in the first statusbar field.) I'm doing this:
class MyFrame\(wx\.Frame\):
def \_\_init\_\_\(self, parent, id, title\):
\.\.\.
self\.Bind\(wx\.EVT\_MENU\_HIGHLIGHT, self\.OnMenuHighlight\)
\.\.\.
def OnMenuHighlight\(self, evt\):
print "Don't stomp on my statusbar\!"
This works as expected in Linux(statusbar is untouched) but on Windows,
the help text still appears in the statusbar. How do I tell the menubar
to not touch the statusbar? Should I file this as a bug in wxPython
on Windows?
Doing exactly as you have above work fine for me on windws xp /
wxPython 2.8.9.2.
On Wed, May 20, 2009 at 04:53:20PM -0500, Cody Precord wrote:
Hello,
On Wed, May 20, 2009 at 4:34 PM, Ryan Nowakowski <tubaman@fattuba.com> wrote:
> I'm trying to get the help text from my menubar menus to *not* mess with
> the statusbar. (By default, selecting a menu item in the menubar puts
> it's help text in the first statusbar field.) I'm doing this:
>
> class MyFrame(wx.Frame):
> def __init__(self, parent, id, title):
> ...
> self.Bind(wx.EVT_MENU_HIGHLIGHT, self.OnMenuHighlight)
> ...
>
> def OnMenuHighlight(self, evt):
> print "Don't stomp on my statusbar!"
>
>
>
> This works as expected in Linux(statusbar is untouched) but on Windows,
> the help text still appears in the statusbar. How do I tell the menubar
> to not touch the statusbar? Should I file this as a bug in wxPython
> on Windows?
Doing exactly as you have above work fine for me on windws xp /
wxPython 2.8.9.2.
On Wed, May 20, 2009 at 04:53:20PM -0500, Cody Precord wrote:
Hello,
On Wed, May 20, 2009 at 4:34 PM, Ryan Nowakowski <tubaman@fattuba.com> wrote:
> I'm trying to get the help text from my menubar menus to *not* mess with
> the statusbar. (By default, selecting a menu item in the menubar puts
> it's help text in the first statusbar field.) I'm doing this:
>
> class MyFrame(wx.Frame):
> def __init__(self, parent, id, title):
> ...
> self.Bind(wx.EVT_MENU_HIGHLIGHT, self.OnMenuHighlight)
> ...
>
> def OnMenuHighlight(self, evt):
> print "Don't stomp on my statusbar!"
>
>
>
> This works as expected in Linux(statusbar is untouched) but on Windows,
> the help text still appears in the statusbar. How do I tell the menubar
> to not touch the statusbar? Should I file this as a bug in wxPython
> on Windows?
Doing exactly as you have above work fine for me on windws xp /
wxPython 2.8.9.2.
Here's a sample that doesn't mess with my statusbar text on Linux but
causes the statusbar to go blank on Windows:
It seems to be blanking before the EVT_MENU_HIGHLIGHT event, and perhaps even before the EVT_MENU_OPEN event. I think this is a regression, please enter a trac ticket about it. In the meantime you can restore the text in your OnMenuHighlight event handler as a workaround.
On Wed, May 20, 2009 at 08:07:18PM -0700, Robin Dunn wrote:
Ryan Nowakowski wrote:
Here's a sample that doesn't mess with my statusbar text on Linux but
causes the statusbar to go blank on Windows:
It seems to be blanking before the EVT_MENU_HIGHLIGHT event, and perhaps
even before the EVT_MENU_OPEN event. I think this is a regression,
please enter a trac ticket about it. In the meantime you can restore
the text in your OnMenuHighlight event handler as a workaround.