Add about dialog#171
Conversation
Closes #120.
Are you using and editable installation? Does it work after reinstalling the package?
For me (Ubuntu) it shows up as |
on macOS quit, About and Preferences should always be on the Application menu (where for now it still says |
Thanks.
Now? (I don't have any macos.) |
|
Version shows now correct for me. It is now called python3.12. I tried renaming it to PEtabGUI before as well with no success. I think this is fine, as it is a byproduct of this not being an official app (as far as I understood). Would be fine to merge. |
👍
@fbergmann Any ideas on how to change the application name on macos? |
|
Any idea whether this can be done for Python package entrypoints? https://stackoverflow.com/questions/16427221/how-do-i-change-my-qt-app-name-on-the-mac-os-x-system-menu (Without pyinstaller or the like) |
|
@dweindl I've tried it on a mac now, and it does work, though it requires the --- a/src/petab_gui/app.py
+++ b/src/petab_gui/app.py
@@ -132,6 +132,14 @@ def main():
)
args = parser.parse_args()
+ if sys.platform == "darwin":
+ from Foundation import NSBundle
+ bundle = NSBundle.mainBundle()
+ info = bundle.localizedInfoDictionary() or bundle.infoDictionary()
+ info["CFBundleName"] = "PEtab GUI"
+
app = PEtabGuiApp(args.petab_yaml)
sys.exit(app.exec()) |
Cool, thanks. I added that. Someone please confirm that it works (including installing the dependencies). |
|
@dweindl i can confirm that it does work on macos as expected |
Closes #120.