if self.get_key() == 'id' and self.get_parent().get_key() not in (
'variable', 'variable_slider', 'variable_chooser', 'variable_text_box', 'parameter', 'options'
): return 'part'
- #hide port controllers
+ #hide port controllers for type and nports
if self.get_key() in ' '.join(map(
- lambda p: ' '.join([p._type, p._vlen, p._nports]), self.get_parent().get_ports())
+ lambda p: ' '.join([p._type, p._nports]), self.get_parent().get_ports())
): return 'part'
+ #hide port controllers for vlen, when == 1
+ if self.get_key() in ' '.join(map(
+ lambda p: p._vlen, self.get_parent().get_ports())
+ ):
+ try:
+ assert int(self.evaluate()) == 1
+ return 'part'
+ except: pass
#hide empty grid positions
if self.get_key() == 'grid_pos' and not self.get_value(): return 'part'
return hide
-change param dialog to panel within main window
-command line option for additional block wrappers
-log slider gui control
--icons for certain blocks, + for add
-zoom in/out (cairo vector graphics) (use scroll wheel as control)
-search for blocks
-click and drag on whitespace to scroll
-auto generate hier library
-auto clean hier library
-add hier blocks to tree without restart?
--dont hide vlen controller when vlen > 1
-dont generate py files in .grc file dir
-save/restore cwd
-special connection validation rules for disabled blocks