parameters: (self, block, type_block_map, **kwds)
docstring: Constructor.
          Input:
              block[BlockInfo]: The block to show.
docstring_summary: Constructor.
          Input:
              block[BlockInfo]: The block to show.
docstring_tokens: Constructor . Input : block [ BlockInfo ] : The block to show .
function: def __init__(self, block, type_block_map, **kwds):
          """
          Constructor.
          Input:
              block[BlockInfo]: The block to show.
          """
          super(ParamsByType, self).__init__(**kwds)
          self.block = block
          self.combo = QComboBox()
          self.types = []
          self.type_params_map = {}
          self.type_block_map = type_block_map
          self.table_stack = QStackedWidget()
          self.type_table_map = {}
  
          for t in sorted(self.block.types.keys()):
              self.types.append(t)
              params_list = []
              for p in self.block.parameters_list:
                  params_list.append(self.block.parameters[p])
              t_block = self.block.types[t]
              for p in t_block.parameters_list:
                  params_list.append(t_block.parameters[p])
              self.type_params_map[t] = params_list
  
          self.combo.addItems(sorted(self.block.types.keys()))
          self.combo.currentTextChanged.connect(self.setBlockType)
  
          self.top_layout = WidgetUtils.addLayout(vertical=True)
          self.top_layout.addWidget(self.combo)
          self.top_layout.addWidget(self.table_stack)
          self.setLayout(self.top_layout)
          self.user_params = []
          self.setDefaultBlockType()
  
          self.setup()
function_tokens: def __init__ ( self , block , type_block_map , * * kwds ) : super ( ParamsByType , self ) . __init__ ( * * kwds ) self . block = block self . combo = QComboBox ( ) self . types = [ ] self . type_params_map = { } self . type_block_map = type_block_map self . table_stack = QStackedWidget ( ) self . type_table_map = { } for t in sorted ( self . block . types . keys ( ) ) : self . types . append ( t ) params_list = [ ] for p in self . block . parameters_list : params_list . append ( self . block . parameters [ p ] ) t_block = self . block . types [ t ] for p in t_block . parameters_list : params_list . append ( t_block . parameters [ p ] ) self . type_params_map [ t ] = params_list self . combo . addItems ( sorted ( self . block . types . keys ( ) ) ) self . combo . currentTextChanged . connect ( self . setBlockType ) self . top_layout = WidgetUtils . addLayout ( vertical = True ) self . top_layout . addWidget ( self . combo ) self . top_layout . addWidget ( self . table_stack ) self . setLayout ( self . top_layout ) self . user_params = [ ] self . setDefaultBlockType ( ) self . setup ( )