extern void quitMainloop(int exit_code);
extern eApplication *getApplication();
-extern PSignal1<void,int> &keyPressedSignal();
extern int getPrevAsciiCode();
%}
void runMainloop();
void quitMainloop(int exit_code);
eApplication *getApplication();
-%immutable keyPressed;
-PSignal1<void,int> &keyPressedSignal();
%{
RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
static eWidgetDesktop *wdsk, *lcddsk;
-PSignal1<void,int> keyPressed;
-
-PSignal1<void,int> &keyPressedSignal()
-{
- return keyPressed;
-}
-
static int prev_ascii_code;
int getPrevAsciiCode()
}
else
ptr->keyPressed(0, key.code, key.flags);
- if (!key.flags)
- keyPressed(key.code);
}
/************************************************/
self.execBegin()
return dlg
- def keyEvent(self, code):
- print "code " + str(code)
-
def close(self, screen, *retval):
if not self.in_exec:
print "close after exec!"
runNextScreen(session, screensToRun)
- CONNECT(keyPressedSignal(), session.keyEvent)
-
vol = VolumeControl(session)
power = PowerKey(session)