Why wxframe isn't raised from a function called with global gtk binder?
问题 Ok, why this simple app dosn't work. I've spent one day investigating this and got nothing. import wx, os import gtk import keybinder class FrameWithHotKey(wx.Frame): def __init__(self, *args, **kwargs): wx.Frame.__init__(self, *args, **kwargs) keybinder.bind("<Ctrl>period", self.toggle_shown) def toggle_shown(self): # windowNow id if self.IsShown(): self.Hide() else: self.Show() self.Raise() if __name__ == '__main__': app = wx.PySimpleApp() frame = FrameWithHotKey(None) app.MainLoop() I don