Display slightly too big
- alex_sar
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 7
27 Nov 2023 08:22 - 29 Nov 2023 08:28 #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
from time import strftime # needed for the clock in the GUI
replace to
from time import strftime # needed for the clock in the GUI
from threading import Timer
find lines
if start_as == "rbtn_fullscreen":
self.widgets.window1.fullscreen()
replace to
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.
Last edit: 29 Nov 2023 08:28 by alex_sar. Reason: seems 3 seconds works better
The following user(s) said Thank You: 10K, Aciera, zz912, DPFlex
Please Log in or Create an account to join the conversation.
- 10K
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 31
19 Dec 2023 14:32 #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 or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 629
- Thank you received: 182
04 Jan 2024 16:27 - 04 Jan 2024 16:33 #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.
Attachments:
Last edit: 04 Jan 2024 16:33 by HansU.
The following user(s) said Thank You: Aciera, zz912
Please Log in or Create an account to join the conversation.
- MichalHK
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 2
13 Jan 2024 15:25 #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 or Create an account to join the conversation.
- zz912
- Offline
- Platinum Member
Less
More
- Posts: 508
- Thank you received: 79
13 Jan 2024 15:44 #290560
by zz912
Replied by zz912 on topic Display slightly too big
Did you downloaded it from 2.9 Branche?
Please Log in or Create an account to join the conversation.
- MichalHK
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 2
13 Jan 2024 15:59 #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 or Create an account to join the conversation.
- zz912
- Offline
- Platinum Member
Less
More
- Posts: 508
- Thank you received: 79
13 Jan 2024 16:51 #290566
by zz912
Replied by zz912 on topic Display slightly too big
I did not test it yet. I will.
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 629
- Thank you received: 182
13 Jan 2024 20:19 - 13 Jan 2024 20:21 #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?
Last edit: 13 Jan 2024 20:21 by HansU.
Please Log in or Create an account to join the conversation.
- MichalHK
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 2
15 Jan 2024 17:20 - 15 Jan 2024 17:20 #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
Attachments:
Last edit: 15 Jan 2024 17:20 by MichalHK.
Please Log in or Create an account to join the conversation.
- HansU
- Offline
- Moderator
Less
More
- Posts: 629
- Thank you received: 182
15 Jan 2024 19:17 - 15 Jan 2024 19:20 #290783
by HansU
Replied by HansU on topic Display slightly too big
You have to copy the gmoccapy.glade file..
Last edit: 15 Jan 2024 19:20 by HansU.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.104 seconds