Re: PanedWindow widget

Serhiy Storchaka <[email protected]> Sun, 4 Mar 2018 11:15:15 +0200
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
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/.

_______________________________________________
Tkinter-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss