pyvcp panel always on top

More
9 years 9 months ago #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

Please Log in to join the conversation.

More
9 years 9 months ago #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 to join the conversation.

More
9 years 9 months ago #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
Code:
pyvcp0 = Tk() pyvcp0.title(component_name)
to this
Code:
pyvcp0 = Tk() pyvcp0.title(component_name) pyvcp0.lift() pyvcp0.attributes('-topmost', True)

It solves my problem, if something else breaks I do not know.

Please Log in to join the conversation.

Time to create page: 0.130 seconds
Powered by Kunena Forum