forked from seven6306/Python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI_Frame.py
More file actions
Latest commit
28 lines (27 loc) · 1.13 KB
/
Copy pathGUI_Frame.py
File metadata and controls
28 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
fromtkinter.filedialogimportaskopenfilename
fromtkinterimportttk, Tk, Label, Frame
fromtkinter.messageboximportshowinfo, showerror, askokcancel
classWindows(Frame):
def__init__(self, master=None):
ttk.Frame.__init__(self, master)
self.master.title('ProgramName Support Ver : Python3.5 (less)')
self.master.geometry('400x160')
self.master.resizable(0, 0)
self.master.iconbitmap(default='')
self.createWidgets()
defcreateWidgets(self):
self.master.LB=Label(self.master, text="Specified file : ", fg="blue")
self.master.LB.place(x=10, y=18)
self.master.Run=ttk.Button(self.master, text='GO', command=self.method)
self.master.Run.config(state="disabled")
self.master.Run.place(x=310, y=120)
self.master.LB=Label(self.master, text="Message box : ", fg="blue")
self.master.LB.place(x=10, y=120)
self.master.displayText=Label(self.master, text="Execution message", fg="brown")
self.master.displayText.place(x=90, y=120)
defmethod(self):
self.master.displayText["text"] ='Commant here'
if__name__=='__main__':
root=Tk()
app=Windows(master=root)
app.mainloop()