小编T.C*_*kij的帖子

如何在Python 3中调用方法键

我现在正在学习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)

但当然它们不起作用,因为它不是字典的功能.

python tkinter python-3.x

3
推荐指数
1
解决办法
698
查看次数

标签 统计

python ×1

python-3.x ×1

tkinter ×1