- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
Latest commit
19 lines (15 loc) · 388 Bytes
/
Copy pathmain.py
File metadata and controls
19 lines (15 loc) · 388 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python3
importtkinterastk
importos
classApplication(tk.Frame):
def__init__(self, master=None):
super().__init__(master)
self.master=master
self.pack()
self.create_widgets()
defcreate_widgets(self):
w=tk.Label(self.master, text="hello")
w.pack()
root=tk.Tk()
app=Application(master=root)
app.mainloop()