I'm trying to port my PyQt program to Mac OS. I developed it on Linux.
PyQt (4) is installed on the 2 computers, with python 3.4. Everything seems to work. The program works perfectly on the Linux computer. I simply transfered it to the mac computer, and tried to run it. And it runs, except for only ONE thing:
I have a menu entry (in the menu bar), for the settings of the program:
# Action to show a settings window
self.settingsAction = QtGui.QAction('Settings', self)
self.settingsAction.triggered.connect(lambda: Settings(self))
...Some code...
# Menu entry for the settings
self.menubar.addAction(self.settingsAction)
On Linux, the 'Settings' entry is perfectly displayed in the menu bar, and opens the settings window. On Mac OS however, the Settings entry is not displayed. Simply not displayed. All the other entries (Files, Edit, View, etc) are displayed correctly, but not Settings. And there is no exception raised.
I'm stuck here, I never used Mac OS, so I don't even know where to start for debugging.
Do you have any suggestion ?
EDIT:
I also tried
# Action to show a settings window self.settingsAction = QtGui.QAction('Preferences', self) self.settingsAction.triggered.connect(lambda: Settings(self))
...Some code...
# Menu entry for the settings
self.menubar.addAction(self.settingsAction)
cmd
+,
? – Thomas Ayoub Feb 17 '15 at 10:28Application name
menu. (This shortcut will call the settings if present) – Thomas Ayoub Feb 17 '15 at 10:34