hopefully a simple one

Nathan smith <[email protected]> Tue, 2 Feb 2021 23:16:17 +0000
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
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/64355e7a-55b2-5120-54e1-9a22b889cf2f%40gmail.com.