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

Method run

DemoPrograms/Demo_Touch_Keyboard.py:84–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 self.focus = None
83
84 def run(self):
85 while True:
86 cur_focus = self.mainWindow.find_element_with_focus()
87 if cur_focus is not None:
88 self.focus = cur_focus
89 event, values = self.mainWindow.read(
90 timeout=200, timeout_key='timeout')
91 if self.focus is not None:
92 self.keyboard.update(self.focus)
93 if event == 'keyboard':
94 self.keyboard.togglevis()
95 elif event == 'close' or event == sg.WIN_CLOSED:
96 break
97 self.keyboard.close()
98 self.mainWindow.Close()
99
100
101if __name__ == '__main__':

Callers 3

process_threadFunction · 0.45
_process_threadFunction · 0.45

Calls 6

togglevisMethod · 0.80
CloseMethod · 0.80
readMethod · 0.45
updateMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected