This repository was archived by the owner on Aug 20, 2024. It is now read-only.
File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import pyblish .util
6
6
import pyblish .api
7
- import PyQt5_stylesheets
8
7
9
8
10
9
class Ui_Form (QtWidgets .QDialog ):
@@ -14,7 +13,14 @@ def __init__(self, parent=None):
14
13
self .populate_ui ()
15
14
16
15
def create_ui (self ):
17
- self .setStyleSheet (PyQt5_stylesheets .load_stylesheet_pyqt5 (style = "style_Dark" ))
16
+
17
+ # optional stylesheet
18
+ try :
19
+ import PyQt5_stylesheets
20
+ self .setStyleSheet (PyQt5_stylesheets .load_stylesheet_pyqt5 (style = "style_Dark" ))
21
+ except ImportError :
22
+ pass
23
+
18
24
self .dropdown_families = QtWidgets .QComboBox ()
19
25
# self.dropdown_validators = QtWidgets.QComboBox()
20
26
self .list_instance = QtWidgets .QListWidget ()
@@ -80,7 +86,6 @@ def clicked_check(self):
80
86
self .populate_families_dropdown ()
81
87
self .populate_instances_list ()
82
88
# rerun validation plugins
83
- pass
84
89
85
90
def clicked_fix (self ):
86
91
# TODO run fix action on plugins that failed/warning
@@ -98,7 +103,6 @@ def clicked_fix(self):
98
103
# TODO rerun validation
99
104
# TODO update UI
100
105
self .clicked_check ()
101
- pass
102
106
103
107
# TODO make actions feel less hacky
104
108
def eventFilter (self , source , event ):
Original file line number Diff line number Diff line change 1
1
Qt.py
2
- https://github.com/RedFalsh/PyQt5_stylesheets
You can’t perform that action at this time.
0 commit comments