python-3.xpyqtpyqt5openbox

Writing panels/docks with pyQt


I want to write something like a taskbar/dock/panel(like tint2,...) with pyQt5.

I know how to write regular GUI applications with it, but my tiling window manager(herbstluftwm) maximizes my panels and openbox makes them resizable etc. My question : How can I make pyQt show my application as a panel instead of a window? I haven't found anything about that in the documentation.

Thank you.


Solution

  • Thanks to musicamente's help, i could find that the function setWindowFlags() is what I need. It allows to change the behavior of a window.

    A website explaining this function is https://pythonprogramminglanguage.com/pyqt5-window-flags/