Commit Graph
53 Commits
Author SHA1 Message Date
Akuli e98f398abc allow bytes in tkinter.PhotoImage (#5171) 2021-04-01 12:54:49 +02:00
Akuli dec1396d51 don't require isort[pyproject] (#5165) 2021-03-31 11:36:55 -07:00
Akuli 00da323113 sort contributor list by last name (#5158) 2021-03-30 20:27:09 +03:00
Akuli c9b1f988a5 CONTRIBUTING.md: core developer --> maintainer (#5157)
* CONTRIBUTING.md: core developer --> maintainer
2021-03-30 20:02:32 +03:00
Akuli 507ca60ff8 relax call argument type (#5056) 2021-02-23 11:26:27 +01:00
Akuli 64575f4ec2 make WindowsError available only on windows (#5036) 2021-02-20 13:36:21 +01:00
Akuli 1184e6e42b make WindowsError an alias of OSError (new in Python 3.3) (#5032)
make WindowsError an alias of OSError (new in Python 3.3)
2021-02-19 15:45:40 +01:00
Akuli 4de7b82e31 fix tkinter.ttk.Treeview.selection return type (#5024) 2021-02-15 08:00:31 -08:00
Akuli 367700e03d relax tkinter.font._FontDescription (#5026) 2021-02-15 07:59:53 -08:00
Akuli 003694ddd3 relax tkinter bind callback return types (#5025)
Fixes #5010
2021-02-15 07:54:13 -08:00
Akuli 903f74a68e tkinter.Tk.eval self fix (#5023)
Fixes #5019
2021-02-15 07:52:06 -08:00
Akuli 310c4d3b34 Add return type for tkinter.Text.mark_previous (#4986) 2021-01-29 00:02:15 -08:00
Akuli ac0e2a6fe8 allow intvar (#4967) 2021-01-23 13:04:33 +01:00
Akuli 8f7ce5be26 use str for ttk states (#4955) 2021-01-19 17:02:22 -08:00
Akuli 886a6c407c support widgets in _TextIndex (#4954)
fixes #4953
2021-01-19 17:41:39 +01:00
Akuli 09f400ab4a add _SupportsIndex to py2 xrange and py3 range (#4929) 2021-01-15 10:14:42 -08:00
Akuli c5ed22a24e don't care about return type in SupportsWrite (#4928) 2021-01-11 10:30:31 -08:00
Akuli fe07a522b7 don't allow _TextIndex in last argument of tkinter.Text.replace() or insert() (#4927)
Fixes #4919
2021-01-11 15:34:46 +01:00
Akuli 4c50d7d266 http.cookies._{quote,unquote} allow None (#4915) 2021-01-10 13:11:00 -08:00
Akuli 206da3280e make BitmapImage keyword arguments optional (#4926) 2021-01-09 21:26:49 +01:00
Akuli 41ba271160 tkinter: add type hints to Wm methods (#4925) 2021-01-09 19:26:30 +01:00
Akuli a5f0761161 tkinter: add PhotoImage and BitmapImage type hints (#4923) 2021-01-09 19:24:36 +01:00
Akuli 4145873604 tkinter: add types to register and deletecommand methods (#4924) 2021-01-09 19:23:25 +01:00
Akuli 21547df35b tkinter: add types to clipboard methods (#4922) 2021-01-09 19:21:24 +01:00
Akuli 64c6ef77c7 more tkinter types (#4921) 2021-01-09 19:20:52 +01:00
Akuli 599ce2969b add types for tkinter focus methods (#4920) 2021-01-09 19:19:45 +01:00
Akuli 804281c547 tkinter nametowidget() type (#4904)
* nametowidget type

* return Any to prevent having to check return type
2021-01-08 15:04:38 +01:00
Akuli eaf29453fc tkinter: type hints for Menu add_foo and insert_foo methods (#4903) 2021-01-06 12:15:25 +01:00
Akuli effd7c53fa tkinter: more winfo_foo methods (#4911) 2021-01-06 11:54:16 +01:00
Akuli 916a3a0392 add types to destroy methods (#4902) 2021-01-05 16:55:01 +01:00
Akuli 2691d74796 tkinter: use bool instead of Literal[0, 1] (#4901) 2021-01-05 13:21:35 +01:00
Akuli 930de94c30 tkinter: event_foo method type hints (#4900) 2021-01-05 13:04:43 +01:00
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