Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue creating compound by collapsing #54

Closed
looooo opened this issue Aug 2, 2019 · 4 comments
Closed

issue creating compound by collapsing #54

looooo opened this issue Aug 2, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@looooo
Copy link
Contributor

looooo commented Aug 2, 2019

  1. I had to click ctrl to show the corresponding menu on right click. Not sure if this is wanted.
  2. There is a traceback printed and the collapsed node is missing the pins.
[ERROR 16:37:55]: 'NoneType' object has no attribute 'description'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/App.py", line 352, in mainLoop
self.graphManager.get().Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphManager.py", line 141, in Tick
graph.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphBase.py", line 278, in Tick
node.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 97, in Tick
self.syncPins()
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 71, in syncPins
self.onGraphInputPinCreated(outPin)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 158, in onGraphInputPinCreated
self.pinExposed.send(subgraphInputPin)
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in 
for receiver in self.receivers_for(sender)]
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UINodeBase.py", line 1386, in _createUIPinWrapper
grpItem = PinGroup(self, rawPin.direction, rawPin.group)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 434, in __init__
super(PinGroup, self).__init__(owningNode, None)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 120, in __init__
self.setToolTip(self._rawPin.description)
AttributeError: 'NoneType' object has no attribute 'description'
[ERROR 16:37:55]: 'PinGroup' object has no attribute 'expanded'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 555, in paint
if not self.expanded:
AttributeError: 'PinGroup' object has no attribute 'expanded'
[ERROR 16:37:55]: 'NoneType' object has no attribute 'description'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/App.py", line 352, in mainLoop
self.graphManager.get().Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphManager.py", line 141, in Tick
graph.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphBase.py", line 278, in Tick
node.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 97, in Tick
self.syncPins()
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 71, in syncPins
self.onGraphInputPinCreated(outPin)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 158, in onGraphInputPinCreated
self.pinExposed.send(subgraphInputPin)
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in 
for receiver in self.receivers_for(sender)]
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UINodeBase.py", line 1386, in _createUIPinWrapper
grpItem = PinGroup(self, rawPin.direction, rawPin.group)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 434, in __init__
super(PinGroup, self).__init__(owningNode, None)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 120, in __init__
self.setToolTip(self._rawPin.description)
AttributeError: 'NoneType' object has no attribute 'description'
[ERROR 16:37:55]: 'PinGroup' object has no attribute 'expanded'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 555, in paint
if not self.expanded:
AttributeError: 'PinGroup' object has no attribute 'expanded'
[ERROR 16:37:55]: 'NoneType' object has no attribute 'description'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/App.py", line 352, in mainLoop
self.graphManager.get().Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphManager.py", line 141, in Tick
graph.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Core/GraphBase.py", line 278, in Tick
node.Tick(deltaTime)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 97, in Tick
self.syncPins()
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 80, in syncPins
self.onGraphOutputPinCreated(inPin)
File "/home/k/projects/PyFlow/PyFlow/Packages/PyFlowBase/Nodes/compound.py", line 197, in onGraphOutputPinCreated
self.pinExposed.send(subgraphOutputPin)
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in send
for receiver in self.receivers_for(sender)]
File "/home/k/conda/envs/pyflow3/lib/python3.7/site-packages/blinker/base.py", line 267, in 
for receiver in self.receivers_for(sender)]
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UINodeBase.py", line 1392, in _createUIPinWrapper
grpItem = PinGroup(self, rawPin.direction, rawPin.group)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 434, in __init__
super(PinGroup, self).__init__(owningNode, None)
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 120, in __init__
self.setToolTip(self._rawPin.description)
AttributeError: 'NoneType' object has no attribute 'description'
[ERROR 16:37:55]: 'PinGroup' object has no attribute 'expanded'
Traceback (most recent call last):
File "/home/k/projects/PyFlow/PyFlow/UI/Canvas/UIPinBase.py", line 555, in paint
if not self.expanded:
AttributeError: 'PinGroup' object has no attribute 'expanded'
@looooo looooo changed the title issue creating compund by collapsing issue creating combound by collapsing Aug 2, 2019
@looooo looooo changed the title issue creating combound by collapsing issue creating compound by collapsing Aug 2, 2019
@looooo
Copy link
Contributor Author

looooo commented Aug 2, 2019

similar on windows, but without traceback:
before
after

@IlgarLunin
Copy link
Collaborator

IlgarLunin commented Aug 2, 2019

Ok, will check it also. Thanks

@IlgarLunin IlgarLunin added the bug Something isn't working label Aug 2, 2019
@looooo
Copy link
Contributor Author

looooo commented Aug 3, 2019

thanks, works:
Bildschirmfoto von 2019-08-03 10-51-14

@IlgarLunin
Copy link
Collaborator

Problem was because of GroupPin. it has no underlined raw pin as well as description. I'll improve this section of program later, for not it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants