In my application I use TipWindow to show a message on a LeftDown event.
self.tip = wx.TipWindow(self, msg, maxLength = len(msg))
This works fine, i.e. pressing esc or clicking on the window or outside it will close it, left clicking on another cell will bring up a new TipWindow with new content etc etc.
However when I press Ctrl, or Alt when the TipWindow is shown I get an un-handled exception
I am trying to create a minimal example, but no success so far.
The LeftDown event is in a Grid (with PyGridTableBase).
Does anyone have some ideas what might cause this.
Werner
Werner F. Bruhin wrote:
Werner F. Bruhin wrote:
In my application I use TipWindow to show a message on a LeftDown event.
self.tip = wx.TipWindow(self, msg, maxLength = len(msg))
This works fine, i.e. pressing esc or clicking on the window or outside it will close it, left clicking on another cell will bring up a new TipWindow with new content etc etc.
However when I press Ctrl, or Alt when the TipWindow is shown I get an un-handled exception
I am trying to create a minimal example, but no success so far.
The LeftDown event is in a Grid (with PyGridTableBase).
Does anyone have some ideas what might cause this.
Werner
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Changed my code to:
self.tip = wx.TipWindow(self, msg, maxLength = len(msg))
self.tip.Bind(wx.EVT_KEY_DOWN, self.OnTipKeyDown)
def OnTipKeyDown(self, event):
self.tip.Dismiss()
Just calling Dismiss on any key being pressed prevents the un-handled exception.
Don't understand why this is needed in this particular case, but I can not figure out what in my grid setup disturbs the wx.TipWindow.
Werner