Пример #1
0
 def combobox_add_text_types(self):
     """Function to add all TextNoteTypes to ComboBox(self.UI_text_type)."""
     for n, type in enumerate(all_text_types):
         item = ComboBoxItem()
         item.Content    = type.get_Parameter(BuiltInParameter.ALL_MODEL_TYPE_NAME).AsString()
         item.IsSelected = True if n==0 else False
         self.UI_text_type.Items.Add(item)
Пример #2
0
 def combobox_add_parameters(self):
     """Function to add all TextNoteTypes to ComboBox(self.UI_text_type)."""
     for n, p_name in enumerate(sorted(dict_sheet_parameters.keys())):
         item = ComboBoxItem()
         item.Content = p_name
         item.IsSelected = True if p_name == 'Sheet Number' else False
         self.UI_parameters.Items.Add(item)