Hal_manualtoolchange did you know a way for popup allways on top

More
28 Sep 2021 21:28 - 28 Sep 2021 22:39 #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

 
Last edit: 28 Sep 2021 22:39 by alkabal.

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

More
29 Sep 2021 23:59 #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
The following user(s) said Thank You: alkabal

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

More
02 Oct 2021 23:14 #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 or Create an account to join the conversation.

More
03 Oct 2021 21:52 #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 or Create an account to join the conversation.

More
03 Oct 2021 23:26 #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 or Create an account to join the conversation.

More
03 Oct 2021 23:36 #222158 by cakeslob
try setting it manually
something like this
root_window.tk.call("wm","geometry",".","1024x768")
 

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

More
04 Oct 2021 01:28 - 04 Oct 2021 01:29 #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.
maxgeo=root_window.tk.call("wm","maxsize",".")
fullsize=maxgeo.split(' ')[0] + 'x' + maxgeo.split(' ')[1]
root_window.tk.call("wm","geometry",".",fullsize)

 
Last edit: 04 Oct 2021 01:29 by phillc54.

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

More
04 Oct 2021 21:07 - 04 Oct 2021 21:09 #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
Last edit: 04 Oct 2021 21:09 by alkabal.

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

Time to create page: 0.091 seconds
Powered by Kunena Forum