pyvcp panel always on top

More
06 Jan 2017 18:38 - 06 Jan 2017 18:47 #85354 by Wirewrap
When starting a simple pyvcp panel from halrun, how to declare it to be "always on top"?
This can be done by a right click when the panel is already active, but it would be nice to have it as default.
As an example, halmeter, is "always on top".

loadusr -Wn ttt pyvcp -g +1300+100 -c ttt panel.xml
Last edit: 06 Jan 2017 18:47 by Wirewrap.

Please Log in or Create an account to join the conversation.

More
06 Jan 2017 21:09 #85361 by cmorley
Replied by cmorley on topic pyvcp panel always on top
They is no access to this setting in pyvcp.
This would be a good add on.

A way around it if you were very interested is using the program devilspie
wiki.gnome.org/action/show/Projects/Devi...w&redirect=DevilsPie

Please Log in or Create an account to join the conversation.

More
06 Jan 2017 22:16 - 06 Jan 2017 22:18 #85363 by Wirewrap
Replied by Wirewrap on topic pyvcp panel always on top
I have never worked with python, but googling around some I was lucky to find this similar solution in StackOverflow

So in /usr/bin/pyvcp I blindly changed
    pyvcp0 = Tk()
    pyvcp0.title(component_name)
to this
    pyvcp0 = Tk()
    pyvcp0.title(component_name)
    pyvcp0.lift()
    pyvcp0.attributes('-topmost', True)

It solves my problem, if something else breaks I do not know.
Last edit: 06 Jan 2017 22:18 by Wirewrap.

Please Log in or Create an account to join the conversation.

Time to create page: 0.359 seconds
Powered by Kunena Forum