Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Pyform动态样式不起作用_Python_Python 3.x_Pyforms - Fatal编程技术网

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')