MCPcopy Create free account
hub / github.com/ipython/ipython / MyApp

Class MyApp

examples/IPython Kernel/gui/gui-tk.py:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class MyApp:
15
16 def __init__(self, root):
17 frame = Frame(root)
18 frame.pack()
19
20 self.button = Button(frame, text="Hello", command=self.hello_world)
21 self.button.pack(side=LEFT)
22
23 def hello_world(self):
24 print("Hello World!")
25
26root = Tk()
27

Callers 1

gui-tk.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected