Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from tkinter import messagebox
- root=Tk()
- def infoAbout():
- messagebox.showinfo("VaporBot", "Built on 2019 by Mr. Wagecuck")
- def warningLicense():
- messagebox.showwarning("VaporBot License", "Free-License, Non registered")
- def exitBot():
- value=messagebox.askquestion("Exit", "Do you want to exit this program?")
- if value=="yes":
- root.destroy()
- menuBar=Menu(root)
- root.config(menu=menuBar)
- fileFile=Menu(menuBar, tearoff=0)
- fileFile.add_separator()
- fileFile.add_command(label="Quit", command=exitBot)
- fileEdit=Menu(menuBar, tearoff=0)
- fileTools=Menu(menuBar, tearoff=0)
- fileHelp=Menu(menuBar, tearoff=0)
- fileHelp.add_command(label="License", command=warningLicense)
- fileHelp.add_separator()
- fileHelp.add_command(label="About", command=infoAbout)
- menuBar.add_cascade(label="File", menu=fileFile)
- menuBar.add_cascade(label="Edit", menu=fileEdit)
- menuBar.add_cascade(label="Tools", menu=fileTools)
- menuBar.add_cascade(label="Help", menu=fileHelp)
- root.title("VaporBot")
- miFrame=Frame(root, width=800, height=400)
- miFrame.pack()
- #___________PANTALLA_______________
- pantalla=Entry(miFrame)
- pantalla.config()
- #____________FILA1__________________
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement