mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-21 15:04:25 +01:00
Update color to work with pyqtgraph=0.13+
This commit is contained in:
@@ -21,7 +21,7 @@ class TopTreeItem(QTreeWidgetItem):
|
|||||||
class ObjectTreeItem(QTreeWidgetItem):
|
class ObjectTreeItem(QTreeWidgetItem):
|
||||||
|
|
||||||
props = [{'name': 'Name', 'type': 'str', 'value': ''},
|
props = [{'name': 'Name', 'type': 'str', 'value': ''},
|
||||||
{'name': 'Color', 'type': 'color', 'value': "f4a824"},
|
{'name': 'Color', 'type': 'color', 'value': "#f4a824"},
|
||||||
{'name': 'Alpha', 'type': 'float', 'value': 0, 'limits': (0,1), 'step': 1e-1},
|
{'name': 'Alpha', 'type': 'float', 'value': 0, 'limits': (0,1), 'step': 1e-1},
|
||||||
{'name': 'Visible', 'type': 'bool','value': True}]
|
{'name': 'Visible', 'type': 'bool','value': True}]
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ class ObjectTreeItem(QTreeWidgetItem):
|
|||||||
shape_display=None,
|
shape_display=None,
|
||||||
sig=None,
|
sig=None,
|
||||||
alpha=0.,
|
alpha=0.,
|
||||||
color='f4a824',
|
color='#f4a824',
|
||||||
**kwargs):
|
**kwargs):
|
||||||
|
|
||||||
super(ObjectTreeItem,self).__init__([name],**kwargs)
|
super(ObjectTreeItem,self).__init__([name],**kwargs)
|
||||||
|
|||||||
Reference in New Issue
Block a user