v.licheni.net
/
stack
/
code
/
dboxswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c25f331
)
wait some time for systray to appear
author
stack
<stack@inventati.org>
Mon, 4 Mar 2013 17:13:36 +0000
(18:13 +0100)
committer
stack
<stack@inventati.org>
Mon, 4 Mar 2013 17:13:36 +0000
(18:13 +0100)
gui.py
patch
|
blob
|
history
diff --git
a/gui.py
b/gui.py
index
363904d
..
bb156a0
100644
(file)
--- a/
gui.py
+++ b/
gui.py
@@
-33,6
+33,7
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
import sys
import os
"""
import sys
import os
+from time import sleep
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import SIGNAL
from qmenutooltip import QMenuToolTip
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import SIGNAL
from qmenutooltip import QMenuToolTip
@@
-47,7
+48,11
@@
class Gui(QtGui.QDialog):
Default actions are builded and profile manager stored from argument (instance of ProfHandler """
self.app = QtGui.QApplication(sys.argv)
Default actions are builded and profile manager stored from argument (instance of ProfHandler """
self.app = QtGui.QApplication(sys.argv)
-
+ for i in range(3):
+ if not QtGui.QSystemTrayIcon.isSystemTrayAvailable():
+ sleep(4)
+ else:
+ break
#check if system tray is avaiable on the system
if not QtGui.QSystemTrayIcon.isSystemTrayAvailable():
QtGui.QMessageBox.critical(None, "Systray",
#check if system tray is avaiable on the system
if not QtGui.QSystemTrayIcon.isSystemTrayAvailable():
QtGui.QMessageBox.critical(None, "Systray",