mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Merge pull request #1729 from dishb/fix-cancel-event
Fix incorrect event in input dialog
This commit is contained in:
commit
9bd6d7bdde
@ -86,7 +86,7 @@ class CTkInputDialog(CTkToplevel):
|
|||||||
hover_color=self._button_hover_color,
|
hover_color=self._button_hover_color,
|
||||||
text_color=self._button_text_color,
|
text_color=self._button_text_color,
|
||||||
text='Cancel',
|
text='Cancel',
|
||||||
command=self._ok_event)
|
command=self._cancel_event)
|
||||||
self._cancel_button.grid(row=2, column=1, columnspan=1, padx=(10, 20), pady=(0, 20), sticky="ew")
|
self._cancel_button.grid(row=2, column=1, columnspan=1, padx=(10, 20), pady=(0, 20), sticky="ew")
|
||||||
|
|
||||||
self.after(150, lambda: self._entry.focus()) # set focus to entry with slight delay, otherwise it won't work
|
self.after(150, lambda: self._entry.focus()) # set focus to entry with slight delay, otherwise it won't work
|
||||||
|
Loading…
Reference in New Issue
Block a user