Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~18.2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for xleon

[CODE]title = 'Pmw.NoteBook demonstration' # Import Pmw from this directory tree. import sys sys.path[:0] = ['../../..'] import Tkinter import Pmw class Demo: def __init__(self, parent): # Create and pack the NoteBook. notebook = Pmw.NoteBook(parent) notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10) # Add the "Appearance" …

Member Avatar for xleon
0
338
Member Avatar for xleon

[CODE]from Tkinter import * master = Tk() def ChangeOpt1(): Options.option_clear() Options.option_add("Apple","Orange","Melon") Options.update() def ChangeOpt2(): Options.option_clear() Options.option_add("Milk","Water","Juice") Options.update() Option1=Checkbutton(text="OPTION1",indicatoron=0,command=ChangeOpt1) Option1.pack() Option2=Checkbutton(text="OPTION2",indicatoron=0,command=ChangeOpt2) Option2.pack() variable = StringVar(master) variable.set("You have to check an option") Options= OptionMenu(master, variable, "You have to check an option") Options.pack() mainloop()[/CODE] I want to do that when I clicked Option1, …

Member Avatar for xleon
0
4K
Member Avatar for xleon

from Tkinter import * import sys Root=Tk() RTitle=Root.title("Windows") RWidth=Root.winfo_screenwidth() RHeight=Root.winfo_screenheight() Root.geometry("%dx%d")%(RWidth,RHeight)) mainloop() Hello. When I run this code the window takes up the entire screen(win7).but remains below the bottom of the window portion of the taskbar. Even if the screen size is changed automatically carry out this.According to the height …

Member Avatar for xleon
0
10K
Member Avatar for xleon

i wanna check a zip file in a directory.how can do it? directory="c:\myzipfiles" listfiles="a.zip,b.zip,c.txt,d.xls" #a.zip is badfile import os import zipfile mylist=os.listdir("c:\myzipfiles") for zfile in mylist if zipfile.ZipFile.test(zfile): print"you can extract ",zfile else: print "you cant extract ",zfile and how can i use zipfile.ZipFile.testzip() thanks for answers...

Member Avatar for xleon
0
4K