Hello,
I'm writing an application for linux that should be notified when the user ends the X session.
As far as I've understood, it should suffice to register a couple of callback functions with EVT_SESSION_END and/or EVT_QUERY_SESSION_END, but the registered functions are never called.
My code is something like:
class MyApp(wxApp):
def OnInit(self):
. . .
EVT_END_SESSION(self, self.OnEndSession)
EVT_QUERY_END_SESSION(self, self.OnQueryEndSession)
return true
def OnQueryEndSession(self, event):
syslog.syslog("OnQueryEndSession")
return true
def OnEndSession(self, event):
syslog.syslog("OnEndSession")
self.frame.Close(true)
Am I missing something?. Is there any "clear" documentation of what should be done?. Maybe an example of code?
Thank you
Atinar
···
_________________________________________________________________
Descarga gratis la Barra de Herramientas de MSN http://www.msn.es/usuario/busqueda/barra?XAPID=2031&DI=1055&SU=http%3A//www.hotmail.com&HL=LINKTAG1OPENINGTEXT_MSNBH