Browse Source

make sure Python dialog is on top

Johann ELSASS 5 years ago
parent
commit
7a38fa9959

+ 4 - 0
resources/scripts/layerfx_innerlight.py

@@ -257,5 +257,9 @@ window_width = window.winfo_width()
 screen_width = window.winfo_screenwidth()
 screen_width = window.winfo_screenwidth()
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 
 
+window.lift()
+window.attributes('-topmost',True)
+window.after_idle(window.attributes,'-topmost',False)
+
 window.mainloop()
 window.mainloop()
 button_cancel_click()
 button_cancel_click()

+ 4 - 0
resources/scripts/layerfx_innershadow.py

@@ -257,5 +257,9 @@ window_width = window.winfo_width()
 screen_width = window.winfo_screenwidth()
 screen_width = window.winfo_screenwidth()
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 
 
+window.lift()
+window.attributes('-topmost',True)
+window.after_idle(window.attributes,'-topmost',False)
+
 window.mainloop()
 window.mainloop()
 button_cancel_click()
 button_cancel_click()

+ 4 - 0
resources/scripts/layerfx_shadow.py

@@ -216,5 +216,9 @@ window_width = window.winfo_width()
 screen_width = window.winfo_screenwidth()
 screen_width = window.winfo_screenwidth()
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 
 
+window.lift()
+window.attributes('-topmost',True)
+window.after_idle(window.attributes,'-topmost',False)
+
 window.mainloop()
 window.mainloop()
 button_cancel_click()
 button_cancel_click()

+ 4 - 0
resources/scripts/layerfx_stroke.py

@@ -211,5 +211,9 @@ window_width = window.winfo_width()
 screen_width = window.winfo_screenwidth()
 screen_width = window.winfo_screenwidth()
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 window.geometry('+%d+0' % (int((screen_width - window_width) / 2)))
 
 
+window.lift()
+window.attributes('-topmost',True)
+window.after_idle(window.attributes,'-topmost',False)
+
 window.mainloop()
 window.mainloop()
 button_cancel_click()
 button_cancel_click()