You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want my application to be able to minimize to the system tray using pystray library.
Describe the solution you'd like
To do this, I need to hide the viewport in some way.
It would be nice to have a function dpg.set_viewport_visible(bool)
Describe alternatives you've considered PySide6 has a .hide() method.
The text was updated successfully, but these errors were encountered:
The application I was making a few weeks ago had a dependency on the AutoHotKey Python library, and that library has a window.hide() method that can hide arbitrary windows if you're looking for a workaround. There are probably simpler solutions, but since I already had the package imported it was easy to include. Something like this:
fromahkimportAHKfromahk.directivesimportNoTrayIconahk=AHK(directives=[NoTrayIcon()])
... # Set up your window and such# Fetch the windowtitle=dpg.get_viewport_title()
window=ahk.find_window_by_class(title)
# Hiding completely hides the window and the taskbar item, but it is still running.dpg.add_button(label="Hide", callback=window.hide)
dpg.add_button(label="Show", callback=window.show)
The application I was making a few weeks ago had a dependency on the AutoHotKey Python library, and that library has a window.hide() method that can hide arbitrary windows if you're looking for a workaround. There are probably simpler solutions, but since I already had the package imported it was easy to include. Something like this:
Thanks, I'll look into it. It's a pretty interesting solution, by the way 😁
Is your feature request related to a problem? Please describe.
I want my application to be able to minimize to the system tray using pystray library.
Describe the solution you'd like
To do this, I need to hide the viewport in some way.
It would be nice to have a function dpg.set_viewport_visible(bool)
Describe alternatives you've considered
PySide6 has a .hide() method.
The text was updated successfully, but these errors were encountered: