bug fixes and improvements
This commit is contained in:
parent
ad4a63355d
commit
557f5ef5fc
1 changed files with 19 additions and 9 deletions
12
main.py
12
main.py
|
|
@ -110,6 +110,8 @@ def focus_results():
|
|||
# bring results window forward
|
||||
if results is not None and 'normal' == results.state():
|
||||
results.focus_set()
|
||||
results.geometry("")
|
||||
|
||||
return
|
||||
|
||||
|
||||
|
|
@ -254,7 +256,13 @@ def export():
|
|||
|
||||
|
||||
def checkPrepared(args=None):
|
||||
if float(exportWidthEntry.get()) != lastW or float(exportHeightEntry.get()) != lastH or float(exportKerfEntry.get()) != lastK:
|
||||
shouldRemove = False
|
||||
try:
|
||||
shouldRemove = float(exportWidthEntry.get()) != lastW or float(exportHeightEntry.get()) != lastH or float(exportKerfEntry.get()) != lastK
|
||||
except ValueError:
|
||||
shouldRemove = True
|
||||
finally:
|
||||
if shouldRemove:
|
||||
saveBinsButton.pack_forget()
|
||||
showKeyButton.pack_forget()
|
||||
|
||||
|
|
@ -406,6 +414,8 @@ def exportFile(h, w, k):
|
|||
exportHeightEntry.bind('<KeyRelease>', checkPrepared)
|
||||
exportKerfEntry.bind('<KeyRelease>', checkPrepared)
|
||||
|
||||
focus_results()
|
||||
|
||||
blocked = False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue