Skip to content

Add defaults for ttk __init__ methods#11405

Merged
Akuli merged 8 commits intopython:mainfrom
MarcellPerger1:add-ttk-defaults
Feb 12, 2024
Merged

Add defaults for ttk __init__ methods#11405
Akuli merged 8 commits intopython:mainfrom
MarcellPerger1:add-ttk-defaults

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

@github-actions
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