MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / create_widgets

Method create_widgets

gui-apps/app_tkinter.py:11–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 self.create_widgets()
10
11 def create_widgets(self):
12 self.hi_there = tk.Button(self)
13 self.hi_there["text"] = "Hello World\n(click me)"
14 self.hi_there["command"] = self.say_hi
15 self.hi_there.pack(side="top")
16
17 self.quit = tk.Button(self,
18 text="QUIT",
19 fg="red",
20 command=self.master.destroy)
21 self.quit.pack(side="bottom")
22
23 def say_hi(self):
24 print("hi there, everyone!")

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected