Commit Graph
10 Commits
Author SHA1 Message Date
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