Merge PR #1433 to avoid conflicts as same lines affected

This commit is contained in:
Orsiris de Jong 2019-05-17 13:17:24 +02:00 committed by GitHub
parent 7aa110b1fe
commit 4d137e19c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1636,6 +1636,15 @@ class Button(Element):
self.TKCal.pack(expand=1, fill='both')
root.update()
if type(Window.user_defined_icon) is bytes:
calendar_icon = tkinter.PhotoImage(data=Window.user_defined_icon)
else:
calendar_icon = DEFAULT_BASE64_ICON
try:
root.tk.call('wm', 'iconphoto', root._w, calendar_icon)
except:
pass
if should_submit_window:
self.ParentForm.LastButtonClicked = target_element.Key
self.ParentForm.FormRemainedOpen = True