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

Method __init__

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

Initialize the MarkovDemo instance's widgets and settings.

(self, master=None, **kw)

Source from the content-addressed store, hash-verified

35 # Initialize a MarkovDemo instance with a GUI for interaction.
36
37 def __init__(self, master=None, **kw):
38 "Initialize the MarkovDemo instance's widgets and settings."
39 super().__init__(master, **kw)
40 self.build_widgets()
41 self.place_widgets()
42 self.setup_widgets()
43 self.grid_rowconfigure(2, weight=1)
44 self.grid_rowconfigure(3, weight=1)
45 self.grid_columnconfigure(0, weight=1)
46 self.key = self.primer = None
47
48 def build_widgets(self):
49 "Build the various widgets that will be used in the program."

Callers

nothing calls this directly

Calls 3

build_widgetsMethod · 0.95
place_widgetsMethod · 0.95
setup_widgetsMethod · 0.95

Tested by

no test coverage detected