There is a "dock-panel" which displays open applications. If the application is out of sight (outside or minimized), then when you press the button, it is called.

The question is how to implement hiding the window?

Link to code: dock.py

    1 answer 1

    In Gtk, any widget (including the window) can be hidden using the hide() method and, accordingly, to show the widget, the show() method.

    • I need to hide the opened application (be it a player, an office application, etc.). - CockLobster
    • Then, maybe you can use the minimize() method for a Wnck.Window object? - BoSS