Akuli
7710191cf4
tkinter.font.Font: make __getitem__ and cget behave the same ( #4899 )
2021-01-04 15:58:44 +01:00
Akuli
bc1fe548b9
Don't use Literal for tkinter widget options ( #4891 )
2021-01-03 16:07:47 -08:00
Akuli
c45a879b1f
add types to winfo methods that return coordinates or sizes ( #4894 )
2021-01-03 16:47:31 +01:00
Akuli
eb7381a3c1
use bool for tkinter.FALSE and its friends ( #4853 )
...
Fixes #4669
2020-12-25 16:07:55 +01:00
Akuli
e3e395b28c
fix assigning to tkinter.Tk().report_callback_exception ( #4484 )
2020-08-26 13:56:07 +02:00
Akuli
27e0ea0199
use Any for ignored callback return types in tkinter ( #4485 )
2020-08-26 13:54:44 +02:00
Akuli
910ecd1f56
add types to tkinter after methods ( #4479 )
2020-08-26 12:06:40 +02:00
Akuli
770fe90b0b
add types to tkinter.Text methods ( #4460 )
2020-08-24 13:09:07 +02:00
Akuli
ff35f99d44
fix tkinter config methods ( #4459 )
2020-08-24 13:06:36 +02:00
Akuli
c065982b7a
support anything with .keys() and __getitem__ in dict.__init__ ( #4470 )
2020-08-24 13:03:38 +02:00
Akuli
39ddef28bf
make tkinter.font.Font behave similarly to tkinter widgets ( #4469 )
2020-08-24 13:00:20 +02:00
Akuli
7d1abc962d
fix master attributes ( #4468 )
2020-08-20 11:55:49 +02:00
Akuli
6a06ff53f0
make canvas offset option optional ( #4458 )
2020-08-18 16:50:09 +02:00
Akuli
e9ecea0033
Add options to tkinter widgets ( #4363 )
...
In tkinter, `widget['foo'] = bar` and `widget.config(foo=bar)` do the same thing, but they will now type-check differently: the `widget['foo'] = bar` syntax allows 'foo' to be any string (e.g. a variable, not necessarily a Literal) and bar to be any object, while `widget.config(foo=bar)` checks the existence of the option and the type of bar. Similarly, cget takes a Literal argument but __getitem__ takes a string.
Testing script can still be found at https://github.com/python/typeshed/pull/4363/commits/c42a72c53e552ab501455def07017181f0158e80
2020-08-17 13:59:51 -07:00
Akuli
e1c4d2a713
more permissive type for tkinter fonts ( #4453 )
2020-08-17 15:52:16 +02:00
Akuli
0ebe4c2b65
fix eval and call return types ( #4451 )
2020-08-16 12:30:04 -07:00
Akuli
954ce8c703
create _tkinter stub ( #4372 )
2020-08-08 14:14:52 +02:00
Akuli
8bf7efe94e
add types for tkinter geometry manager (aka pack,grid,place) methods ( #4379 )
2020-07-31 14:34:47 +02:00
Akuli
09c91a00ac
add type hints for tkinter.Variable and its subclasses ( #4378 )
2020-07-31 10:53:57 +02:00
Akuli
2c37551fd1
make tkinter.Event generic and add missing type hints to bind methods ( #4347 )
2020-07-25 14:23:26 +02:00
Akuli
9efc9d8818
add tkinter.font stub ( #4350 )
2020-07-22 11:46:04 -07:00