MCPcopy Create free account
hub / github.com/ActiveState/code / setup_widgets

Method setup_widgets

recipes/Python/578076_Markov/recipe-578076.py:108–115  ·  view source on GitHub ↗

Setup each widget's configuration for the events they handle.

(self)

Source from the content-addressed store, hash-verified

106 self.output_frame.grid_columnconfigure(0, weight=1)
107
108 def setup_widgets(self):
109 "Setup each widget's configuration for the events they handle."
110 self.input_text.bind('<Key>', self.handle_key_events)
111 self.input_text.bind('<Control-Key-a>', self.handle_control_a)
112 self.input_text.bind('<Control-Key-/>', lambda event: 'break')
113 self.output_text['state'] = DISABLED
114 self.output_text.bind('<Control-Key-a>', self.handle_control_a)
115 self.output_text.bind('<Control-Key-/>', lambda event: 'break')
116
117 ########################################################################
118

Callers 1

__init__Method · 0.95

Calls 1

bindMethod · 0.45

Tested by

no test coverage detected