Default values in tkinter stubs #10947
Labels
help wanted
An actionable problem of low to medium complexity where a PR would be very welcome
topic: tkinter
tkinter-related issues
Tkinter is very dynamic. Most keyword arguments are passed to Tcl, and their behavior is described best in manual pages written for Tcl users. This means that when we ran stubdefaulter to figure out default values for most functions in typeshed, it didn't do much for tkinter, and most of tkinter's default values are still
= ...
.I (or someone else) should go through the
= ...
occurrences and fill in whatever can be filled. Often the default values are platform-specific, and hard-coding something into the stubs doesn't make sense.Most defaults in tkinter are widget options (
__init__
andconfigure()
methods). To see their default values on your system, you can instantiate the widget and convert it to a dict. For example:The text was updated successfully, but these errors were encountered: