- Posts: 12
- Thank you received: 0
Display slightly too big
2 years 11 months ago #286609
by alex_sar
Replied by alex_sar on topic Display slightly too big
I've found a naive workaround, not sure if it is acceptable as common solution, but works for me.
Edit file /usr/bin/gmoccapy
find line
replace to
find lines
replace to
what does it do? it schedules a timer to enable full-screen with 3 seconds delay and it works like a charm now.
Edit file /usr/bin/gmoccapy
find line
Code:
from time import strftime # needed for the clock in the GUI
replace to
Code:
from time import strftime # needed for the clock in the GUI
from threading import Timer
find lines
Code:
if start_as == "rbtn_fullscreen":
self.widgets.window1.fullscreen()
replace to
Code:
if start_as == "rbtn_fullscreen":
__t = Timer(3, lambda : self.widgets.window1.fullscreen() )
__t.start()
what does it do? it schedules a timer to enable full-screen with 3 seconds delay and it works like a charm now.
Please Log in to join the conversation.
2 years 10 months ago #288585
by 10K
Replied by 10K on topic Display slightly too big
alex_sar-
Your suggestion worked great! I changed the file as you describe, except that I made the delay 2 seconds.
Thanks!
Your suggestion worked great! I changed the file as you describe, except that I made the delay 2 seconds.
Thanks!
Please Log in to join the conversation.
2 years 9 months ago #289791
by HansU
Replied by HansU on topic Display slightly too big
I have a fix for this. See
github.com/LinuxCNC/linuxcnc/pull/2831
.
The solution is very simple - just removing one property in the glade file, but it took me a while to get to this point.
The background:
The button "World Mode/Joint Mode" is displayed optional, so there is a placeholder label if that button is not shown. The problem is that at the time the GUI is created (started), the button and the label are active and that make the window too wide to fit 1024 px. The fix is just to have this button hidden at start.
The solution is very simple - just removing one property in the glade file, but it took me a while to get to this point.
The background:
The button "World Mode/Joint Mode" is displayed optional, so there is a placeholder label if that button is not shown. The problem is that at the time the GUI is created (started), the button and the label are active and that make the window too wide to fit 1024 px. The fix is just to have this button hidden at start.
Attachment not found
Please Log in to join the conversation.
2 years 9 months ago #290558
by MichalHK
Replied by MichalHK on topic Display slightly too big
Interesting, I'm upgrading gmoccapy.py and gmoccapy.glade as described at github. Nothing changed. Window is still too width.
Please Log in to join the conversation.
2 years 9 months ago #290560
by zz912
Replied by zz912 on topic Display slightly too big
Did you downloaded it from 2.9 Branche?
Please Log in to join the conversation.
2 years 9 months ago #290561
by MichalHK
Replied by MichalHK on topic Display slightly too big
Im dooing same changes at gmoccapy.py and gmoccapy.glade as its presented at github.
github.com/LinuxCNC/linuxcnc/pull/2831/files
I hope most interesting is rewrite glade file. But true is that I have gmoccapy 3.4.6
It helps this fix for you?
github.com/LinuxCNC/linuxcnc/pull/2831/files
I hope most interesting is rewrite glade file. But true is that I have gmoccapy 3.4.6
It helps this fix for you?
Please Log in to join the conversation.
2 years 9 months ago #290566
by zz912
Replied by zz912 on topic Display slightly too big
I did not test it yet. I will.
Please Log in to join the conversation.
2 years 9 months ago #290584
by HansU
Does it display "Gmoccapy 3.4.7.1" in the title after you copied the fixed files?
Replied by HansU on topic Display slightly too big
Im dooing same changes at gmoccapy.py and gmoccapy.glade as its presented at github.
github.com/LinuxCNC/linuxcnc/pull/2831/files
I hope most interesting is rewrite glade file. But true is that I have gmoccapy 3.4.6
It helps this fix for you?
Does it display "Gmoccapy 3.4.7.1" in the title after you copied the fixed files?
Please Log in to join the conversation.
2 years 9 months ago #290774
by MichalHK
Replied by MichalHK on topic Display slightly too big
I dont copy all files from githib. I copy changes from 3.4.7.1 into 3.4.6 and run 3.4.6
If I copy and run 3.4.7.1 linuxcnc dont start up.
Linux tell me error "dont find interpretter in #!/usr/bin/env python3"
or somethink like that.
There is my gmoccapy file
If I copy and run 3.4.7.1 linuxcnc dont start up.
Linux tell me error "dont find interpretter in #!/usr/bin/env python3"
or somethink like that.
There is my gmoccapy file
Attachment not found
Please Log in to join the conversation.
Time to create page: 2.355 seconds
