def BackUp(): filewin = Toplevel(root) button1 = Button(filewin, text = "Files To Backup") button1.pack() button2 = Button(filewin, text = "Backup Location") button2.pack() def GOOGLE(): filewin = Toplevel(root) button1 = Button(filewin, text = "Backup Your Computer/Laptop", command = File_Saver_GOOGLE_DRIVE_Part) button1.pack() def InstallAntiVirus(): filewin = Toplevel(root) button1 = Button(filewin, text = "Install The Anti-Virus!") button1.pack() def HowTo(): filewin = Toplevel(root) label1 = Label(filewin, text = "How To Use This Application?") label1.pack() def AboutUs(): filewin = Toplevel(root) label2 = Label(filewin, text = "Our Jobs!") label2.pack() label3 = Label(filewin, text = "Joshua: Founder and Co-CEO") label3.pack() label4 = Label(filewin, text = "Benjamin: Co-Founder and CEO") label4.pack() label5 = Label(filewin, text = "Karley: Co-Co-Founder and Director") label5.pack() def ContactUs(): filewin = Toplevel(root) label6 = Label(filewin, text = "How to contact us!") label6.pack() label7 = Label(filewin, text = "Please choose your email provider!") label7.pack() label8 = Label(filewin, text = "This will be how you contact us.") label8.pack() button4 = Button(filewin, text = "Google/Gmail") button4.pack() button5 = Button(filewin, text = "Yahoo") button5.pack() button6 = Button(filewin, text = "Windows Live Mail") button6.pack() def FileLocate(): filewin = Toplevel(root) label9 = Label(filewin, text = "Search For Missing Files") label9.pack() button7 = Button(filewin, text = "Search!") button7.pack() def AntiVirus(): filewin = Toplevel(root) button8 = Button(filewin, text = "Look For Viruses") button8.pack() def closewindow(): exit() menubar = Menu(root) filemenu = Menu(menubar, tearoff=0) filemenu.add_radiobutton(label = "Android", command = BackUp) filemenu.add_radiobutton(label = "iDevice", command = BackUp) filemenu.add_radiobutton(label = "Personal Computer", command = GOOGLE) filemenu.add_separator() filemenu.add_radiobutton(label = "Exit", command = closewindow) menubar.add_cascade(label = "BackUp?", menu = filemenu) antimenu = Menu(menubar,tearoff = 0) antimenu.add_radiobutton(label = "Install", command = InstallAntiVirus) antimenu.add_separator() antimenu.add_radiobutton(label = "Use The Anti-Virus", command = AntiVirus) antimenu.add_radiobutton(label = "Found Files", command = FileLocate) menubar.add_cascade(label = "Anti-Virus", menu = antimenu) helpmenu = Menu(menubar, tearoff = 0) helpmenu.add_radiobutton(label = "How To Use", command = HowTo) helpmenu.add_radiobutton(label = "About Us", command = AboutUs) helpmenu.add_radiobutton(label = "Contact Us", command = ContactUs) menubar.add_cascade(label = "H.A.C.", menu = helpmenu) root.config(menu=menubar) root.mainloop()
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question