+ 2

tkinter in Python

In " Tk(screenName=None, baseName=None, className=’Tk’, useTk=1) " what does each attribute means and its use ?

24th Jun 2019, 2:48 PM
harshit
harshit - avatar
2 ответов
+ 2
Diego please see this.
25th Jun 2019, 2:06 AM
harshit
harshit - avatar
+ 1
>>> help(tkinter.Tk.__init__) __init__(self, screenName=None, baseName=None, className='Tk', useTk=, sync=0, use=None) Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME is the name of the widget class. >>> help(tkinter.Tk.readprofile) readprofile(self, baseName, className) Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into the Tcl Interpreter and calls exec on the contents of BASENAME.py and CLASSNAME.py if such file exists in the home directory.
25th Jun 2019, 3:38 AM
Diego
Diego - avatar