Re: hopefully a simple one
Nathan smith <[email protected]> Tue, 2 Feb 2021 23:30:19 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Hi there, Sorry, I meant to include that and forgot! Python version: 3.8.6 32 bit Windows: 10, WX Version: '4.0.7.post2 msw (phoenix) wxWidgets 3.0.5' Slightly earlier version as I think 4.1.0 breaks some accessibility features to do with the naming of lists IIRC. Thanks in advance! Nathan On 02/02/2021 23:25, Transana wrote: > Hi Nathan, > > What version of wxPython are you using? What OS? What python version? > > In version 4.1.1 on Windows 10, I see these constants in the wx > package. I also see them in version 4.1.1 on macOS Catalina. (I'm > using Python 3.7 on both platforms.) > > David > > > > On 2/2/21 5:16 PM, Nathan smith wrote: >> Hello Group, >> >> >> I hope everyone is keeping safe. >> >> I have a hopefully easy question this time, something I'm sure is >> obvious and I'm just typoing somewhere. >> >> I'm trying to bind to the play, stop, next and previous media buttons >> on the keyboard, shown below: >> >> >> self.RegisterHotKey(self.mid1, None, wx.WXK_MEDIA_NEXT_TRACK) >> self.RegisterHotKey(self.mid2, None, wx.WXK_MEDIA_PREV_TRACK) >> self.RegisterHotKey(self.mid3, None, wx.WXK_MEDIA_PLAY_PAUSE) >> self.RegisterHotKey(self.mid4, None, wx.WXK_MEDIA_STOP) >> >> >> Sadly, I get AttributeError: module 'wx' has no attribute >> 'WXK_MEDIA_NEXT_TRACK' >> >> >> Did I miss something? I got these attributes from the website... >> >> Best >> >> Nathan >> -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/8eb579c8-ab5b-d4b5-1cd3-be9638b64c7f%40gmail.com.