From: algodon c. <alg...@gm...> - 2009-03-26 14:08:20
|
Hello ! I want keyboard shortcuts to trigger checkbuttons. How do i do that ? Here's my code : self.tb1 = Fl_Check_Button(10,20,60,30,"&A") self.tb1.shortcut(97) self.tb1.callback(self.play_cb) def play_cb(self,ptr): print ptr.value() Unfortunately it only works when i use the mouse, not when i use the keyboard. Thanks in advance -- http://www.myspace.com/algodonciego http://www.myspace.com/1h2f |