Eric Traut
17f1c4628a
Add precise values for enum members where possible ( #11299 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <alex.waygood@gmail.com >
2024-04-22 15:10:59 +01:00
Sebastian Rittau
027115e624
Remove bare incompletes ( #11670 )
2024-03-30 18:35:57 -07:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Akuli
0ad004a776
tkinter: Simplify wm_iconphoto() ( #11508 )
2024-02-29 13:45:45 +02:00
Nikita Sobolev
7b4c751abb
Fix pos-only params in tkinter module ( #11506 )
2024-02-29 09:02:02 +00:00
Akuli
d5ff34e049
Add types to tkinter.Canvas.scale() ( #11369 )
2024-02-16 21:10:14 -08:00
Akuli
41245698e0
Delete a few simple type aliases in tkinter ( #11415 )
2024-02-13 11:37:32 +01:00
Akuli
b44d22e81d
Use bool | Literal[0, 1] instead of int in some tkinter bool parameters ( #11412 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-13 02:06:00 +02:00
Marcell Perger
4585c714d9
Add annotations and defaults for tkinter.ttk.OptionMenu ( #11404 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-02-12 21:33:42 +02:00
Marcell Perger
13aed8a1c2
Add defaults for tkinter.ttk __init__ methods ( #11405 )
...
NOTE: I've ignored things marked as undocumented or where the type of the default didn't match the annotation.
2024-02-12 12:54:12 +02:00
Marcell Perger
49d5827141
Add annotations for tkinter.ttk.LabeledScale ( #11402 )
2024-02-11 20:05:27 +02:00
Marcell Perger
5eb040b1e6
Fix tkinter.ttk's compound argument ( #11393 )
...
Allow the empty string (`""`).
2024-02-10 20:55:08 +02:00
Marcell Perger
187928d8ce
Add defaults for tkinter __init__ methods ( #11391 )
...
Add defaults for `tkinter`'s `__init__` methods, see #10947
Some notes about specific arguments:
- `variable` and `textvariable`: The default value (using `dict`) is consistently `""` but this doesn't match the annotated `Variable` type so I didn't fill these in
- `Message(padx, pady)`: The default value is `-1` which is not allowed according to the documentation so I didn't fill this in
- `Toplevel(use)`: The default value is always `""` but this doesn't match the annotated `int` type so I didn't fill this in
2024-02-10 20:51:27 +02:00
Akuli
e6e2f22e6c
Annotate tkinter.Canvas.type() ( #11366 )
2024-02-06 07:31:59 +01:00
Marcell Perger
2c29505765
Fix tkinter overrelief argument ( #11360 )
2024-02-05 14:40:22 +02:00
Akuli
02e19d6e2d
tkinter: font size must be integer ( #11295 )
2024-01-21 02:10:29 +01:00
Romain d'Esparbès
db804846a4
Fix "state" type annotations for tkinter "Canvas.create_*" methods ( #11257 )
2024-01-08 18:53:18 +02:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Akuli
51ec2f0900
tkinter: Use a TypeVarTuple in .after() and .after_idle() methods ( #11014 )
2023-12-08 23:00:13 +00:00
tungol
fd7ff19577
Use StrEnum as base class, when available ( #11100 )
2023-12-05 13:27:10 +01:00
Alex Waygood
10febc4fe0
stdlib: remove unused type: ignore comments ( #11061 )
2023-11-23 14:00:07 +01:00
Alex Waygood
83964a4dc5
stdlib: add many missing __del__ methods ( #11042 )
2023-11-18 11:32:12 -08:00
Akuli
cad0c04ec0
tkinter: Require passing in a callback function to .after() ( #11013 )
2023-11-10 20:18:25 +02:00
Akuli
99563a2e6e
Use @deprecated in tkinter.Variable tracing methods ( #11011 )
2023-11-10 19:38:20 +02:00
Jelle Zijlstra
3229b36644
stdlib: More pos-only parameters to Protocols ( #10987 )
2023-11-06 23:45:12 +01:00
Spencer Brown
3c872ca8fd
Add types to some tkinter.Text methods. ( #10946 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-10-31 18:44:39 +02:00
Aditya Paul
2ce9dcd5fb
Allow str for tkinter.Scrollbar.set() ( #10926 )
2023-10-25 20:48:08 +03:00
Akuli
fbd7963fd6
Delete tkinter._ExceptionReportingCallback ( #10689 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-12 20:16:47 +03:00
Bruno Cabral
4088b8425f
tkinter: Treeview identifiers can be int ( #10468 )
2023-07-17 23:45:59 +03:00
Bruno Cabral
1d7f0d087b
tkinter: accept Iterable[int] for grid_columnconfigure, grid_rowconfigure ( #10455 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-07-13 23:38:47 +01:00
Bruno Cabral
eba3a4903d
Accept ints for tkinter.ttk.Treeview columns ( #10456 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2023-07-14 01:29:06 +03:00
Simão Afonso @ Powertools Tech
7646d38302
tkinter: Add missing "angle" argument to Canvas.create_text ( #10404 )
2023-07-04 22:00:48 +03:00
Akuli
f20cb4ed45
Accept int in tkinter.Canvas dash arguments ( #10004 )
2023-04-03 20:58:27 +02:00
Akuli
87c1b949cd
Delete some unnecessary type aliases in tkinter ( #9970 )
2023-03-28 20:37:29 +03:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
1d2ae2598b
Fix some typos in comments ( #9802 )
2023-02-23 22:11:24 +00:00
Spencer Brown
f5b761d465
Add types for PIL.ImageTk ( #9733 )
2023-02-18 21:50:28 +02:00
Alex Waygood
0ef9c3f8e8
Enable flake8-pyi's Y037 ( #9686 )
2023-02-06 19:01:02 -08:00
Alex Waygood
1e3d762a12
stdlib: use bool for annotations where the default is False ( #9672 )
2023-02-04 11:58:18 +00:00
Alex Waygood
7cd7ae46c0
Improve a few version-dependent tkinter functions ( #9637 )
2023-02-01 15:02:26 +02:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Nikita Sobolev
7ed599e848
Remove parts of tkinter from pyright exclude ( #8958 )
2022-10-21 19:18:04 +03:00
Alex Waygood
601700d1a5
Improve some tkinter unions ( #8655 )
2022-08-31 13:05:51 +03:00
Akuli
5ea1b1e6de
Add types to tkinter.colorchooser.askcolor ( #8588 )
2022-08-22 18:15:37 +02:00
Alex Waygood
892796a794
Remove, move or # noqa more TypeAlias declarations ( #8450 )
2022-08-05 13:03:19 +01:00
Akuli
57179d4080
tkinter: get rid of unnecessary Incomplete ( #8471 )
2022-08-02 15:03:24 -07:00
Akuli
5e5f3b4ecc
Use typeshed.Incomplete and object instead of Any in tkinter stubs ( #8458 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-02 22:10:25 +03:00
Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
Spencer Brown
29c17ffb47
Improve tkinter.simpledialog ( #8243 )
2022-07-10 19:52:16 +03:00