MCPcopy Create free account
hub / github.com/PyQt5/PyQt / readCSS

Method readCSS

Test/partner_625781186/5.hoverMenu/Main.py:96–102  ·  view source on GitHub ↗

用于设置样式,SingeleWidget类中也需要用到。

(self, obj)

Source from the content-addressed store, hash-verified

94 self.toggleButton.clicked.connect(self.start_animation)
95
96 def readCSS(self, obj):
97 '''
98 用于设置样式,SingeleWidget类中也需要用到。
99 '''
100 styleFile = './Tools/style.css'
101 qssStyle = CommonHelper.readQss( styleFile )
102 obj.setStyleSheet( qssStyle )
103
104 def start_animation(self, checked):
105

Callers 2

__initUIMethod · 0.95
__initUIMethod · 0.80

Calls 1

readQssMethod · 0.80

Tested by

no test coverage detected