shrinking top pane of axis on low res monitor

More
05 Jun 2024 01:31 #302353 by colt
I just updated to newest version from wheezy. Looks like now the active gcodes has been moved out of the mdi tab view  , but now contributing to top pane height increase? The result is axis hangs below the bottom of the screen.

 

Could someone give me a hint as to what command would let me reduce the height of the top pane?
I am able to increase its height using the .axisrc file by using
root_window.tk.call('.pane.top','configure','-minsize',5000)
but it seems something inside stops its height from being reduced any further and this has no effect
root_window.tk.call('.pane.top','configure','-minsize',250)

For now I am going to scale my resolution until I have more time to look through the code.
Attachments:

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

More
05 Jun 2024 03:38 #302358 by phillc54
Try this:
root_window.tk.call('.pane', 'paneconfigure', '.pane.top', '-minsize', 250)

You may also need to play with these for the bottom pane:
root_window.tk.call('.pane', 'paneconfigure', '.pane.bottom', '-minsize', 250)
root_window.tk.call('.pane', 'paneconfigure', '.pane.bottom', '-height', 250)
The following user(s) said Thank You: colt

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

More
05 Jun 2024 18:16 - 06 Jun 2024 00:14 #302404 by cakeslob
yeah there are a few things you need to adjust, i dont remember it being as simple as just changing pane.top

dont remember exactly what I did, but you can refer to my 2 other files to play with, i did these specifically for small screens

www.forum.linuxcnc.org/21-axis/38188-sol...screen-w-usercommand

www.forum.linuxcnc.org/21-axis/49372-reg...od-based-on-plasmac2


edit, ok i went back to double check, because i remember it took me a long time to bruteforce the winning combo
########## resize bottom pane #######
root_window.tk.call('.pane','paneconfigure','.pane.bottom',"-stretch","always","-height","200");

######### resize top pane ########
#root_window.tk.call('.pane','paneconfigure','.pane.top',"-stretch","never","-minsize","300");

########### window resize ######### 
root_window.tk.call(".pane","configure","-height","350");

i think .pane configures its min height for all the widgets, then hides them after, because just trying to change the height never worked
Last edit: 06 Jun 2024 00:14 by cakeslob.
The following user(s) said Thank You: colt

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

More
06 Jun 2024 23:34 #302497 by colt
That did the trick, I am up and running. Not sure I would've ever figured that out.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum