View Single Post
Old 05-02-2012, 01:14 PM   #13
tuxor
Addict
tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!tuxor has a thesaurus and is not afraid to use it!
 
Posts: 320
Karma: 99999
Join Date: Oct 2011
Location: Germany
Device: Onyx Boox M92, Icarus Illumina E653
Working, but really slow, and really ugly. And still only pen input is recognized - joystick input seems to be ignored...

Here is the complete code of what I tested:
Code:
import sys
from PyQt4.QtGui import QApplication, QMessageBox
from PyQt4.QtCore import QEvent
from PyOnyxScreen import ScreenProxy, ScreenCommand

class OnyxQWidget(QMessageBox):
   def __init__(self):
      QMessageBox.__init__(self)
      self.setText("Hello, World!")
      
   def event(self, event):
        ret =  QMessageBox.event(self, event)
        if (event.type()==QEvent.UpdateRequest) and ScreenProxy.instance().isUpdateEnabled():
             ScreenProxy.instance().updateWidget(self, ScreenProxy.GU, True, ScreenCommand.WAIT_ALL)
        return ret
 
a = QApplication(sys.argv)

wid = OnyxQWidget()
print wid.exec_()
Any ideas, why the joystick input isn't working?
tuxor is offline   Reply With Quote