Brian Schubert
3157273331
Allow any number of trailing font options in tkinter font description ( #13240 )
2024-12-19 01:39:57 +02:00
Stephen Morton
ebe2558c2c
add tkinter differences for 3.13 ( #13156 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-12-04 22:39:49 +02:00
Stephen Morton
2ccc53bb67
Add a couple missing tkinter things ( #13149 )
2024-11-29 03:04:31 +02:00
Konstantin Baikov
b815bfaf3c
Fix tkinter ImageSpec #11721 ( #13049 )
2024-11-25 20:45:58 +02:00
Stephen Morton
0521fce9f9
Avoid using _typeshed.StrEnum ( #13062 )
2024-11-25 18:35:32 +01:00
Stephen Morton
32f48a5eae
add several NamedTuple base classes ( #12987 )
2024-11-21 10:52:31 +01:00
Oleh Prypin
b2f68ec2fe
Use MaybeNone (alias to Any) when applicable ( #12855 )
2024-10-18 14:07:52 -07:00
Akuli
13a74a5211
Update tkinter.Text.count() for Python 3.13 (Akuli's version) ( #12629 )
2024-09-24 23:08:11 -07:00
Avasam
937270df0c
Forbid extremely long line lengths in non-autogenerated stubs ( #12537 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-08-18 16:03:34 -04:00
Max Muoto
82da1e19a7
Use Final in tkinter ( #12545 )
2024-08-17 22:34:16 +02:00
Akuli
c04a752e24
Create overloads for tkinter.Text.count ( #12395 )
2024-08-11 00:08:24 +03:00
Gilbert Bishop-White
67db06b3a1
tkinter: add suggested Listbox selectmodes (#12499 )
2024-08-09 23:40:44 +03:00
sobolevn
6f248dfa37
Bump mypy to 1.11.1 ( #12463 )
2024-08-04 23:19:28 -07:00
Max Muoto
0df6028dc8
Use Final for Constant Literals in the stdlib ( #12332 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-07-15 18:07:34 +01:00
Max Muoto
f863db6bc5
Update tkinter.PhotoImage ( #12342 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2024-07-15 00:42:27 +03:00
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