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
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to