A rather annoying feature of Qtopia applications is that they are
terminated whenever the user presses the Esc key. On the Zaurus
developer list, I got the tip that this feature could only be disabled
by reimplementing QPEAppliction.notify, as no lower level ever gets to
see the key press event. So I tried
class MyApplication(QPEApplication):
def notify(self, receiver, event):
if event.type() == QEvent.KeyPress and event.key() == Qt.Key_Escape:
pass
else:
return receiver.event(event)
app = MyApplication(sys.argv)
but got nothing but the error message
RuntimeError: No access to protected functions or signals for object
not created from Python
for the call to receiver.event(event).
Is there any way around this?
Konrad.
_______________________________________________
PyKDE mailing list [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde