summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
86b7bff)
in gui it is best to build all "static" actions on init, using the
method createActions, and attach them where needed
self.quitAction = QtGui.QAction("&Quit", self,
triggered=QtGui.qApp.quit)
self.quitAction = QtGui.QAction("&Quit", self,
triggered=QtGui.qApp.quit)
+ #profile manager component
+ self.addProfile = QtGui.QAction(" Add &Profile ", self,
+ triggered=self.addProfile, icon=QtGui.QIcon(appconf.icon))
+
def createTrayIcon(self):
""" Builds a new tray icon with a context menu and an action for the profile manager menu """
def createTrayIcon(self):
""" Builds a new tray icon with a context menu and an action for the profile manager menu """
self.menuProfiles.addAction(menuItem_Profile)
self.menuProfiles.addAction(menuItem_Profile)
- #menuItem_Profile = self.menuProfiles.addAction("")
- #self.menuProfiles.addAction(menuItem_Profile)
self.menuProfiles.addSeparator()
self.menuProfiles.addSeparator()
- menuItem_Profile = QtGui.QAction(" Add &Profile ", self,
- triggered=self.addProfile, icon=QtGui.QIcon(appconf.icon))
- self.menuProfiles.addAction(menuItem_Profile)
+ #action and menu item for adding a New Profile
+ self.menuProfiles.addAction(self.addProfile)
self.menuProfiles.activateWindow()
self.menuProfiles.popup(QtGui.QCursor.pos())
self.menuProfiles.activateWindow()
self.menuProfiles.popup(QtGui.QCursor.pos())