Merge pull request #885 from MikeTheWatchGuy/Dev-latest

Dev latest
This commit is contained in:
MikeTheWatchGuy 2018-12-09 13:39:56 -05:00 committed by GitHub
commit 50b9469206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 109 additions and 7 deletions

View file

@ -962,6 +962,9 @@ class Spin(Element):
if self.ParentForm.CurrentlyRunningMainloop:
self.ParentForm.TKroot.quit() # kick the users out of the mainloop
def Get(self):
return self.TKStringVar.get()
def __del__(self):
try:
self.TKSpinBox.__del__()
@ -5234,13 +5237,11 @@ def StartupTK(my_flex_form):
# ow = _my_windows.NumOpenWindows
ow = Window.NumOpenWindows
print(ow)
# print('Starting TK open Windows = {}'.format(ow))
if not ow and not my_flex_form.ForceTopLevel:
# if first window being created, make a throwaway, hidden master root. This stops one user
# window from becoming the child of another user window. All windows are children of this
# hidden window
print("******")
Window.IncrementOpenCount()
Window.hidden_master_root = tk.Tk()
Window.hidden_master_root.attributes('-alpha', 0) # HIDE this window really really really