Nathan smith
unread,Feb 2, 2021, 6:16:22 PM2/2/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wxpytho...@googlegroups.com
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