python如何在初始化一个类时 知道参数的属性
例如我要初始化Scrollbarhbar=Scrollbar(orient='horizontal')怎么知道orient这个参数有什么属性help也没有列出参数的属性啊...
例如 我要初始化Scrollbar
hbar = Scrollbar(orient='horizontal')
怎么知道orient这个参数有什么属性
help也没有列出参数的属性啊 只列出了参数
help(Scrollbar.__init__)
Help on function __init__ in module tkinter:
__init__(self, master=None, cnf={}, **kw)
Construct a scrollbar widget with the parent MASTER.
Valid resource names: activebackground, activerelief,
background, bd, bg, borderwidth, command, cursor,
elementborderwidth, highlightbackground,
highlightcolor, highlightthickness, jump, orient,
relief, repeatdelay, repeatinterval, takefocus,
troughcolor, width.
如何 call the method keys.
help(Scrollbar.config)
Help on function configure in module tkinter:
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. 展开
hbar = Scrollbar(orient='horizontal')
怎么知道orient这个参数有什么属性
help也没有列出参数的属性啊 只列出了参数
help(Scrollbar.__init__)
Help on function __init__ in module tkinter:
__init__(self, master=None, cnf={}, **kw)
Construct a scrollbar widget with the parent MASTER.
Valid resource names: activebackground, activerelief,
background, bd, bg, borderwidth, command, cursor,
elementborderwidth, highlightbackground,
highlightcolor, highlightthickness, jump, orient,
relief, repeatdelay, repeatinterval, takefocus,
troughcolor, width.
如何 call the method keys.
help(Scrollbar.config)
Help on function configure in module tkinter:
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. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询