You are here


Rewrapping wx.StaticText

Per this thread (see the _Rewrap function in Robin's example code), you need to set the Label Text again in order for it to update properly:

Setting a wxPython Global Hotkey with a Regular Character

If you're trying to set up a global hotkey in Windows, you can use the win32con.VK_* codes to set a hotkey that uses a regular character (e.g. Control-Alt-B), but on OSX it's not as clear. However, a quick look at the patch reveals that all you need to do is pass the ASCII character code for the character you want by using ord() like so:

result = self.RegisterHotKey(hkid,

And now, when you hit Control-Shift-R, the event will fire.