From 55659477f23a37170d7823ac17b7aed0f5e641c6 Mon Sep 17 00:00:00 2001 From: iovar Date: Mon, 18 Jun 2007 16:37:23 +0000 Subject: rmdMonitor.py: Inherits QDialog now, removed some unneeded show() calls, added wait for child proccess, removed frame and window members (window not needed as self is now the main widget, frame also unneeded since main widget is no longer a QMainWindow and can get the layout directly).Also closeEvent() is now directly reimplemented. rmdTrayIcon.py:Added exec_ call for rmdMonitor, state now doesn't change before encoding ends. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@360 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/src/rmdTrayIcon.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-recordmydesktop/src/rmdTrayIcon.py') diff --git a/qt-recordmydesktop/src/rmdTrayIcon.py b/qt-recordmydesktop/src/rmdTrayIcon.py index 1d657b6..57a7ca7 100644 --- a/qt-recordmydesktop/src/rmdTrayIcon.py +++ b/qt-recordmydesktop/src/rmdTrayIcon.py @@ -72,6 +72,7 @@ class trayIcon(object): def __buttonPress__(self,ActivationReason): + button=0 if ActivationReason==QtGui.QSystemTrayIcon.Trigger: button=1 @@ -249,6 +250,8 @@ class trayIcon(object): os.kill(self.rmdPid,signal.SIGTERM) self.state=-1 monitor=imon.rmdMonitor(self.childP.fromchild,self.rmdPid,self.parent) + monitor.exec_() + self.state=0 else: self.__exit_status_dialog(exit_ret[1]) -- cgit v1.2.3