robertobucher / pysimCoder

Block diagram editor and real time code generator for Python
GNU General Public License v3.0
150 stars 32 forks source link

Clone block command crashes PysimCoder editor #32

Closed beqirdio closed 3 years ago

beqirdio commented 3 years ago

Every time 'Clone block' is invoked using GUI in editor, the program crashes completely.

Traceback shown below:

Traceback (most recent call last):
  File "/home.nfs/beqirdio/Documents/PYTHON/toolbox/supsisim/editor.py", line 165, in cloneBlock
    item.clone(QPointF(DP, DP))
  File "/home.nfs/beqirdio/Documents/PYTHON/toolbox/supsisim/block.py", line 141, in clone
    b = Block(None, self.scene, self.name, self.inp, self.outp,
  File "/home.nfs/beqirdio/Documents/PYTHON/toolbox/supsisim/block.py", line 36, in __init__
    raise ValueError('Needs 12 or 3 arguments; received %i.' % len(args))
ValueError: Needs 12 or 3 arguments; received 11.
Aborted
beqirdio commented 3 years ago

Clone block now works as expected. Issue will be closed.