Used when user binds a tkinter event directly to an element :param bind_string: The event that was bound so can lookup the key modifier :type bind_string: (str) :param event: Event data passed in by tkinter (not used) :type event: :param propa
(self, bind_string, event, propagate=True)
| 12000 | self.TKroot.unbind("<B1-Motion>") |
| 12001 | |
| 12002 | def _user_bind_callback(self, bind_string, event, propagate=True): |
| 12003 | """ |
| 12004 | Used when user binds a tkinter event directly to an element |
| 12005 | |
| 12006 | :param bind_string: The event that was bound so can lookup the key modifier |
| 12007 | :type bind_string: (str) |
| 12008 | :param event: Event data passed in by tkinter (not used) |
| 12009 | :type event: |
| 12010 | :param propagate: If True then tkinter will be told to propagate the event |
| 12011 | :type propagate: (bool) |
| 12012 | """ |
| 12013 | # print('bind callback', bind_string, event) |
| 12014 | key = self.user_bind_dict.get(bind_string, '') |
| 12015 | self.user_bind_event = event |
| 12016 | if key is not None: |
| 12017 | self.LastButtonClicked = key |
| 12018 | else: |
| 12019 | self.LastButtonClicked = bind_string |
| 12020 | self.FormRemainedOpen = True |
| 12021 | # if self.CurrentlyRunningMainloop: |
| 12022 | # self.TKroot.quit() |
| 12023 | _exit_mainloop(self, None) |
| 12024 | return 'break' if propagate is not True else None |
| 12025 | |
| 12026 | def bind(self, bind_string, key, propagate=True): |
| 12027 | """ |
no test coverage detected