Python Pyform动态样式不起作用
我昨天开始使用Python Pyform动态样式不起作用,python,python-3.x,pyforms,Python,Python 3.x,Pyforms,我昨天开始使用pyforms,看起来框架的许多部分还没有文档化 我编写了一个应用程序,需要根据需要更改样式。我坚持使用ControlButton.style而不是CSS文件。未提供如何使用style属性,因此我的尝试失败。这没有任何效果 注: 将样式用作方法失败,并出现错误 self._directory.style('background-color:green') AttributeError:“ControlText”对象没有属性“style” self._directory.sty
pyforms
,看起来框架的许多部分还没有文档化
我编写了一个应用程序,需要根据需要更改样式。我坚持使用ControlButton.style
而不是CSS
文件。未提供如何使用style
属性,因此我的尝试失败。这没有任何效果
注: 将样式用作方法失败,并出现错误
self._directory.style('background-color:green')
AttributeError:“ControlText”对象没有属性“style”
self._directory.style('background-color:green')