jchanvfx / NodeGraphQt

Node graph framework that can be re-implemented into applications that supports PySide2
http://chantonic.com/NodeGraphQt/
MIT License
1.3k stars 266 forks source link

Bug with vertical GroupNode #413

Open AakashTiwari1027 opened 8 months ago

AakashTiwari1027 commented 8 months ago

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

EssenOH commented 7 months ago

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