Hal_manualtoolchange did you know a way for popup allways on top

More
5 years 1 month ago #221781 by alkabal
Hi

Did you know a way for ensure the popup for tool change and remove tool can keep above (allways on top, topmost) ?

I have try to edit the bin file and to add "app.wm_attributes("-topmost", True)" at different location without success.

Best regards

 

Please Log in to join the conversation.

More
5 years 1 month ago #221862 by cakeslob
I tried for a bit last night, no luck. its calling up a custom dialog widget, so I dont think wm.attributes will work here, but the whole window id thing is confusing to me still
github.com/LinuxCNC/linuxcnc/blob/master.../axis/tcl/dialog.tcl
maybe here
github.com/LinuxCNC/linuxcnc/blob/master.../tcl/dialog.tcl#L108

Please Log in to join the conversation.

More
5 years 4 weeks ago #222059 by alkabal
A lot of thanks that work like a charm with your suggestion ! 

Adding this line 220 :
wm attribute $w -topmost 1

github.com/LinuxCNC/linuxcnc/blob/8a18ca.../tcl/dialog.tcl#L220

But now mode difficult, is there a way for do the same things but using a command for set as full screen inside axisrc : 
root_window.attributes('-fullscreen', True)

Another thanks !

Please Log in to join the conversation.

More
5 years 3 weeks ago #222148 by cakeslob
do you mean a button inside axis to make the toolchange dialog fullscreen? or do you mean make axis full screen?

Please Log in to join the conversation.

More
5 years 3 weeks ago #222156 by alkabal
Oh sorry for unprecision.

My axis wndow is set as full screen using in .axisrc the option :
root_window.attributes('-fullscreen', True)

With this setting the patch "wm attribute $w -topmost 1" does not work.

I can get it work only using axis gui as regular windows.

Thanks for interest

Please Log in to join the conversation.

More
5 years 3 weeks ago #222158 by cakeslob
try setting it manually
something like this
root_window.tk.call("wm","geometry",".","1024x768")
 

Please Log in to join the conversation.

More
5 years 3 weeks ago #222161 by phillc54
In the past I used the following in .axisrc to set the size of Axis, whether it is still valid I don't know.
Code:
maxgeo=root_window.tk.call("wm","maxsize",".") fullsize=maxgeo.split(' ')[0] + 'x' + maxgeo.split(' ')[1] root_window.tk.call("wm","geometry",".",fullsize)  

Please Log in to join the conversation.

More
5 years 3 weeks ago #222219 by alkabal
Thanks for exemple but unfortunatly that does not do the same things.

You config allow window to be maximised.

What i like is window as full screen (task bar masked), i know how to do the screen config but i like to have popup allways on top (in this situation the working patch for popup topmost does not apply)

Br, thanks again

Please Log in to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum