[Tkinter-discuss] PanedWindow widget
Serhiy Storchaka
storchaka at gmail.com
Sun Mar 4 04:15:15 EST 2018
03.03.18 23:13, adil gourinda пише:
> print(help(tkinter.PanedWindow.paneconfigure))
print() is not needed here. help() itself prints the description.
> I have two questions:
> -Does "tagOrId" is the equivalent of "window" in TCL?
Yes, it is.
> -What is "cnf" parameter which is present in all Tkinter classes and
> methods?
A dict of options. You can specify options either as keyword arguments
paneconfigure(wnd, height=200, width=100)
or as a dict (if you have a variable set of options).
options = {}
options['height'] = 200
options['width'] = 100
paneconfigure(wnd, options)
or even combine both ways
paneconfigure(wnd, options, padx=10, pady=5)
In modern Python this parameter mostly redundant since you can pass a
variable number of keyword arguments as **options.
paneconfigure(wnd, **options, padx=10, pady=5)
> This output return the description of two Tcl commands (pathName *sash
> coord* index and pathName *sash dragto* index x y) in one Tkinter
> methods, is it an error?
This looks like a bug. Please open an issue on https://bugs.python.org/.
More information about the Tkinter-discuss
mailing list