Skip to content

Commit

Permalink
Fix GUI size on restore
Browse files Browse the repository at this point in the history
  • Loading branch information
raphendyr committed Feb 17, 2018
1 parent 0ff3f87 commit 9f0efec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simple_gui/roman_tki.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ def restore(self):
# position
geo = st['window/geometry']
if 'x' in geo and '+' in geo:
self.master.geometry(geo)
saved_size, saved_pos = geo.split('+', 1)
cur_size, cur_pos = self.master.geometry().split('+', 1)
self.master.geometry("%s+%s" % (cur_size, saved_pos))

# active course
try:
Expand Down

0 comments on commit 9f0efec

Please sign in to comment.