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

Method refresh

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

Refresh the output based on the value of the input.

(self)

Source from the content-addressed store, hash-verified

153 # Handle interface's updates when either encoding or decoding.
154
155 def refresh(self):
156 "Refresh the output based on the value of the input."
157 text = self.input_text.get(1.0, END + '-1c')
158 if not text:
159 self.output = text
160 elif self.encrypting:
161 self.encode(text)
162 else:
163 self.decode(text)
164
165 def output(self, value):
166 "Set the text in the output area to the string value."

Callers 3

mainFunction · 0.45
getStatsFunction · 0.45
getStatsFunction · 0.45

Calls 3

encodeMethod · 0.95
decodeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected