Called when a config event happens for the window :param event: From tkinter and is not used :type event: Any
(self, event)
| 11394 | print('Focus event = {} window = {}'.format(event, self.Title)) |
| 11395 | |
| 11396 | def _config_callback(self, event): |
| 11397 | """ |
| 11398 | Called when a config event happens for the window |
| 11399 | |
| 11400 | :param event: From tkinter and is not used |
| 11401 | :type event: Any |
| 11402 | """ |
| 11403 | # do the location auto-save stuff. If the location changes, then the location is written to the settings file |
| 11404 | if self.auto_save_location: |
| 11405 | try: |
| 11406 | cur_location = self.current_location() |
| 11407 | old_location = self._last_location |
| 11408 | if None not in cur_location: |
| 11409 | self._last_location= cur_location |
| 11410 | if old_location != cur_location: |
| 11411 | self._auto_save_location() |
| 11412 | except Exception as e: |
| 11413 | pass |
| 11414 | |
| 11415 | if self.enable_window_config_events is True: |
| 11416 | self.LastButtonClicked = WINDOW_CONFIG_EVENT |
| 11417 | self.FormRemainedOpen = True |
| 11418 | self.user_bind_event = event |
| 11419 | _exit_mainloop(self, None) |
| 11420 | |
| 11421 | def _move_callback(self, event): |
| 11422 | """ |
nothing calls this directly
no test coverage detected