Esempio n. 1
0
 def keyboardfunc(self,c,x,y):
     if self.inDialog and c=='q':
         print "Q pressed, hiding dialog"
         self.inDialog = False
         global _showwindow,_showdialog,_globalLock
         _globalLock.acquire()
         _showdialog = False
         if not _showwindow:
             glutIconifyWindow()
         _globalLock.release()
     else:
         GLPluginProgram.keyboardfunc(self,c,x,y)