Skip to content

Add defaults for ttk __init__ methods #11405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 12, 2024

Conversation

MarcellPerger1
Copy link
Contributor

@MarcellPerger1 MarcellPerger1 commented Feb 11, 2024

Add defaults for ttk __init__ methods, this is like #11391 but for tkinter.ttk (issue #10947).

As with #11391, the defaults I filled in are consistent across:

  • My local Windows 11 machine
  • All available github actions runners:
    • ubuntu-20.04, ubuntu-22.04
    • windows-2019, windows-2022
    • macos-11, macos-12, macos-13

I put the defaults for ttk.OptionMenu in #11404 as I was already modifying OptionMenu there so I thought it made more sense to put all the OptionMenu changes into one PR.

Some notes about specific arguments:

  • padding: The default for this was always "" but this doesn't really match the _Padding type so I didn't fill this in
  • takefocus: Sometimes this was "ttk::takefocus" but this doesn't match the _TakeFocusValue type so I didn't fill this in
  • I've ignored things marked as undocumented

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Akuli Akuli merged commit 13aed8a into python:main Feb 12, 2024
@MarcellPerger1 MarcellPerger1 deleted the add-ttk-defaults branch February 12, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants