New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimize to system tray menu icon for desktop applications. #3846
Comments
Is this possible using Kivy for OSX and/or Windows? |
+1 for this!! |
Is anybody working on this? |
We're not aware of anyone working on it. |
@AliGhahraei See this answer for Windows implementation. For the rest of platforms you'll need to find your own way, e.g. for linux there should be some Xserver/X11 api, probably even callable from console via |
@dessant I understand. Thank you. I'll post a comment if I find a nice way to implement this that is worth sharing. |
+1 for this feature, I'm currently working on a few utility apps that would benefit from this. Those types of apps really shouldn't be hanging out in the task bar. Kivy-Garden > HotKeyBehavior seems like a good way to attain similar functionality, although a tray icon would still be nice to have since it provides a definite point of access. |
If the only problem for you is only a taskbar icon, look at garden.notification, the code for hiding works on win and linux. This behavior would make your app a "service"-like. Regarding tray icon, I think the best guess might be checking sdl2 source first as I've seen some requests for this feature, though I'm not sure if the answer wasn't just using OS functions. If that's the case, the source code for WX python package could have the tray OS functions hopefully for all tray supporting platforms. |
The wxWidgets is what i did (empty wx app wrapping) but mixing both GUI frameworks sounded a bit weird. I found the pystray (based on Gtk and/or X) and seems ok, cross-platform. Btw, tried a example following the docs but the icon won't show. This is the snipped i used https://pastebin.com/SjW8zsPp |
Who said to use wx directly? I said to use their code :P |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This functionality is possible for Windows with:
|
I found the pystray (https://pypi.python.org/pypi/pystray/) python module working (seems it works for both Windows and Linux). We don't need to extract anything, let python do it. It supports menu with actions, so it becomes really handy. |
@erm3nda I tried pystray and it's exactly what I need. It also works on macOS, so that's what I'll use from now on. |
|
Will pystray work as we close the window, it minimizes the window to the system tray just like utorrent. |
I dont know about utorrent but pystray works perfectly for me: https://stackoverflow.com/a/77016681/15822465 |
It would be great if there was a way to minimize desktop applicants to the system task tray.
The text was updated successfully, but these errors were encountered: