diff options
author | brenda-br | 2023-01-31 23:38:58 +0530 |
---|---|---|
committer | brenda-br | 2023-01-31 23:38:58 +0530 |
commit | f53af896c241d0628625452ef66f4a7255ec2846 (patch) | |
tree | 26a78391fbd38db78e4f3f2a242c7639c3081c56 | |
parent | 52b559776a910a6b5db67d89f70002fc51229c06 (diff) | |
download | Chemical-Simulator-GUI-f53af896c241d0628625452ef66f4a7255ec2846.tar.gz Chemical-Simulator-GUI-f53af896c241d0628625452ef66f4a7255ec2846.tar.bz2 Chemical-Simulator-GUI-f53af896c241d0628625452ef66f4a7255ec2846.zip |
Fix #31 Resize some node socket
-rw-r--r-- | Graphics.py | 4 | ||||
-rw-r--r-- | Undo.dat | bin | 0 -> 5449 bytes |
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics.py b/Graphics.py index 8977ac3..862845b 100644 --- a/Graphics.py +++ b/Graphics.py @@ -559,8 +559,8 @@ class NodeItem(QtWidgets.QGraphicsItem): output = [NodeSocket(QtCore.QRect(self.rect.width()-6.5,-5.5,4*3,4*3), self, 'op', x) for x in range(1,self.nop+1)] return input,output elif(self.type=="DistillationColumn" or self.type=="ShortcutColumn"): - input = [NodeSocket(QtCore.QRect(-6.5,(self.rect.height()*x/(self.nin+1)-4),5*3,5*3), self, 'in', x) for x in range(1,self.nin+1) ] - output = [NodeSocket(QtCore.QRect(self.rect.width()-9.5,(self.rect.height()*1.44*x/(self.nop+1))-59,5*2,5*2), self, 'op', x) for x in range(1,self.nop+1)] + input = [NodeSocket(QtCore.QRect(-6.5,(self.rect.height()*x/(self.nin+1)-4),4*3,4*3), self, 'in', x) for x in range(1,self.nin+1) ] + output = [NodeSocket(QtCore.QRect(self.rect.width()-9.5,(self.rect.height()*1.44*x/(self.nop+1))-59,4*3,4*3), self, 'op', x) for x in range(1,self.nop+1)] return input,output elif(self.type=="MaterialStream"): input = [NodeSocket(QtCore.QRect(-6.5,(self.rect.height()*x/(self.nin+1)-6),4*3,4*3), self, 'in', x) for x in range(1,self.nin+1) ] Binary files differ |