MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / _TextClickedHandler

Method _TextClickedHandler

PySimpleGUI/PySimpleGUI.py:1274–1287  ·  view source on GitHub ↗

Callback that's called when a text element is clicked on with events enabled on the Text Element. Result is that control is returned back to user (quits mainloop). :param event: :type event:

(self, event)

Source from the content-addressed store, hash-verified

1272 return None
1273
1274 def _TextClickedHandler(self, event):
1275 """
1276 Callback that's called when a text element is clicked on with events enabled on the Text Element.
1277 Result is that control is returned back to user (quits mainloop).
1278
1279 :param event:
1280 :type event:
1281
1282 """
1283 # If this is a minimize button for a custom titlebar, then minimize the window
1284 if self.Key in (TITLEBAR_MINIMIZE_KEY, TITLEBAR_MAXIMIZE_KEY, TITLEBAR_CLOSE_KEY):
1285 self.ParentForm._custom_titlebar_callback(self.Key)
1286 self._generic_callback_handler(self.DisplayText)
1287 return
1288
1289 def _ReturnKeyHandler(self, event):
1290 """

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected