Skip to content

Commit 6afa1ab

Browse files
authored
Merge pull request #2831 from hansu/fix-gmoccapy-fullscreen-window-size
Gmoccapy: fix fullscreen with 1024x768 screen
2 parents 1cd6dad + e1438a7 commit 6afa1ab

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.glade

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6206,7 +6206,6 @@ Mode</property>
62066206
<property name="use-action-appearance">False</property>
62076207
<property name="width-request">90</property>
62086208
<property name="height-request">56</property>
6209-
<property name="visible">True</property>
62106209
<property name="can-focus">True</property>
62116210
<property name="receives-default">True</property>
62126211
<property name="tooltip-text" translatable="yes">Switch motion mode between Joint and World mode

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def excepthook(exc_type, exc_obj, exc_tb):
7676

7777
# constants
7878
# # gmoccapy #"
79-
_RELEASE = " 3.4.7"
79+
_RELEASE = " 3.4.7.1"
8080
_INCH = 0 # imperial units are active
8181
_MM = 1 # metric units are active
8282

@@ -220,7 +220,7 @@ def __init__(self, argv):
220220

221221
self.xpos = 40 # The X Position of the main Window
222222
self.ypos = 30 # The Y Position of the main Window
223-
self.width = 979 # The width of the main Window
223+
self.width = 980 # The width of the main Window
224224
self.height = 750 # The height of the main Window
225225

226226
self.gcodeerror = "" # we need this to avoid multiple messages of the same error
@@ -2913,20 +2913,20 @@ def on_window1_show(self, widget, data=None):
29132913
self.widgets[start_as].set_active(True)
29142914
self.widgets.window1.set_decorated(not self.prefs.getpref("hide_titlebar", False, bool))
29152915
self.widgets.chkbtn_hide_titlebar.set_active(not self.widgets.window1.get_decorated())
2916+
self.xpos = int(self.prefs.getpref("x_pos", self.xpos, float))
2917+
self.ypos = int(self.prefs.getpref("y_pos", self.ypos, float))
2918+
self.width = int(self.prefs.getpref("width", self.width, float))
2919+
self.height = int(self.prefs.getpref("height", self.height, float))
2920+
# set the adjustments according to Window position and size
2921+
self.widgets.adj_x_pos.set_value(self.xpos)
2922+
self.widgets.adj_y_pos.set_value(self.ypos)
2923+
self.widgets.adj_width.set_value(self.width)
2924+
self.widgets.adj_height.set_value(self.height)
29162925
if start_as == "rbtn_fullscreen":
29172926
self.widgets.window1.fullscreen()
29182927
elif start_as == "rbtn_maximized":
29192928
self.widgets.window1.maximize()
29202929
else:
2921-
self.xpos = int(self.prefs.getpref("x_pos", 40, float))
2922-
self.ypos = int(self.prefs.getpref("y_pos", 30, float))
2923-
self.width = int(self.prefs.getpref("width", 979, float))
2924-
self.height = int(self.prefs.getpref("height", 750, float))
2925-
# set the adjustments according to Window position and size
2926-
self.widgets.adj_x_pos.set_value(self.xpos)
2927-
self.widgets.adj_y_pos.set_value(self.ypos)
2928-
self.widgets.adj_width.set_value(self.width)
2929-
self.widgets.adj_height.set_value(self.height)
29302930
# move and resize the window
29312931
self.widgets.window1.move(self.xpos, self.ypos)
29322932
self.widgets.window1.resize(self.width, self.height)

src/emc/usr_intf/gmoccapy/release_notes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
ver 3.4.7.1
2+
- Remember window size and position when switching back from fullscreen/maximized
3+
- Fix "window does not fit 1024x768 in fullscreen"
4+
15
ver 3.4.7
26
- Added setting to allow smaller width of virtual keyboard (for widescreens)
37
- Fixed box_dro_side is displayed in the G-code editor (#2627)

0 commit comments

Comments
 (0)