NodeGraphQt icon indicating copy to clipboard operation
NodeGraphQt copied to clipboard

Bug with vertical GroupNode

Open AakashTiwari1027 opened this issue 1 year ago • 1 comments

When trying to create a GroupNode with NodeGraph.set_layout_direction(1) it throws the following error:

Traceback (most recent call last): File "C:\Users\awant\AppData\Local\Programs\Python\Python311\Lib\site-packages\NodeGraphQt\qgraphics\node_base.py", line 197, in paint self._paint_vertical(painter, option, widget) File "C:\Users\awant\AppData\Local\Programs\Python\Python311\Lib\site-packages\NodeGraphQt\qgraphics\node_group.py", line 125, in _paint_vertical painter.setBrush(QtGui.QColor(*self.color).dark(180)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'QColor' object has no attribute 'dark'. Did you mean: 'darker'?

Side Note: Would be greatly appreciated if the name of vertical nodes appeared on the node instead of to the right :)

AakashTiwari1027 avatar Mar 17 '24 00:03 AakashTiwari1027

It might be a no good idea putting the name on the node because there is no an appropriate place. image

EssenOH avatar Apr 03 '24 11:04 EssenOH