我现在正在学习Tkinter.要获得有关这些方法的更多信息,请阅读pydocs.
问题是我打电话的时候:
>>>help(Text.configure)
Run Code Online (Sandbox Code Playgroud)
我明白了:
configure(self, cnf=None, **kw)
Configure resources of a widget.
The values for resources are specified as keyword
arguments. To get an overview about
the allowed keyword arguments call the method keys.
Run Code Online (Sandbox Code Playgroud)
那么我如何调用或列出所有方法键?
我试过了:
>>>Text.configure.keys()
Run Code Online (Sandbox Code Playgroud)
和
>>>Text.configure().keys()
Run Code Online (Sandbox Code Playgroud)
但当然它们不起作用,因为它不是字典的功能.