MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / _SpinChangedHandler

Method _SpinChangedHandler

PySimpleGUI/PySimpleGUI.py:3559–3575  ·  view source on GitHub ↗

Callback function. Used internally only. Called by tkinter when Spinbox Widget changes. Results in Window.Read() call returning :param event: passed in from tkinter :type event:

(self, event)

Source from the content-addressed store, hash-verified

3557 self._visible = visible
3558
3559 def _SpinChangedHandler(self, event):
3560 """
3561 Callback function. Used internally only. Called by tkinter when Spinbox Widget changes. Results in Window.Read() call returning
3562
3563 :param event: passed in from tkinter
3564 :type event:
3565 """
3566 # first, get the results table built
3567 if self.Key is not None:
3568 self.ParentForm.LastButtonClicked = self.Key
3569 else:
3570 self.ParentForm.LastButtonClicked = ''
3571 self.ParentForm.FormRemainedOpen = True
3572 _exit_mainloop(self.ParentForm, self)
3573 # if self.ParentForm.CurrentlyRunningMainloop:
3574 # Window._window_that_exited = self.ParentForm
3575 # self.ParentForm.TKroot.quit() # kick the users out of the mainloop
3576
3577
3578

Callers

nothing calls this directly

Calls 1

_exit_mainloopFunction · 0.85

Tested by

no test coverage detected