import sys
import os
from PyQt4 import QtGui
+from PyQt4.QtCore import SIGNAL
from apperror import AppError
from settings import appconf
self.trayIcon.show()
self.setWindowTitle("Profile manager / Dboxswitch - dropbox profile switcher")
- self.resize(400, 300)
+ self.resize(200, 200)
self.profileManager = prManager
def createTrayIcon(self):
+ #context menu build, right click
self.trayIconMenu = QtGui.QMenu(self)
self.trayIconMenu.addAction(self.manageprofiles)
self.trayIconMenu.addSeparator()
self.trayIcon.setContextMenu(self.trayIconMenu)
#baloon on hover
self.trayIcon.setToolTip(appconf.appname+" "+appconf.appversion+"\nRight Click to manage profiles.")
+ def showError(self, err):
+ """ Display an error message """
+ self.setWindowTitle("Error - Dboxswitch - dropbox profile switcher")
+ self.resize(200, 100)
+ err = QtGui.QErrorMessage.showMessage(QtGui.QErrorMessage.qtHandler(), "Error: "+err)
+
+
+