Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. from tkinter import *
  2. from tkinter import messagebox
  3.  
  4. root=Tk()
  5.  
  6. def infoAbout():
  7. messagebox.showinfo("VaporBot", "Built on 2019 by Mr. Wagecuck")
  8.  
  9. def warningLicense():
  10. messagebox.showwarning("VaporBot License", "Free-License, Non registered")
  11.  
  12. def exitBot():
  13. value=messagebox.askquestion("Exit", "Do you want to exit this program?")
  14.  
  15. if value=="yes":
  16. root.destroy()
  17.  
  18.  
  19. menuBar=Menu(root)
  20. root.config(menu=menuBar)
  21.  
  22. fileFile=Menu(menuBar, tearoff=0)
  23. fileFile.add_separator()
  24. fileFile.add_command(label="Quit", command=exitBot)
  25.  
  26. fileEdit=Menu(menuBar, tearoff=0)
  27.  
  28.  
  29.  
  30. fileTools=Menu(menuBar, tearoff=0)
  31.  
  32.  
  33.  
  34. fileHelp=Menu(menuBar, tearoff=0)
  35. fileHelp.add_command(label="License", command=warningLicense)
  36. fileHelp.add_separator()
  37. fileHelp.add_command(label="About", command=infoAbout)
  38.  
  39.  
  40. menuBar.add_cascade(label="File", menu=fileFile)
  41. menuBar.add_cascade(label="Edit", menu=fileEdit)
  42. menuBar.add_cascade(label="Tools", menu=fileTools)
  43. menuBar.add_cascade(label="Help", menu=fileHelp)
  44.  
  45.  
  46.  
  47. root.title("VaporBot")
  48. miFrame=Frame(root, width=800, height=400)
  49. miFrame.pack()
  50.  
  51.  
  52.  
  53.  
  54. #___________PANTALLA_______________
  55.  
  56. pantalla=Entry(miFrame)
  57. pantalla.config()
  58.  
  59.  
  60. #____________FILA1__________________
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement