def _setup_uiux(self): applocale = applocales.get_current_applocale() sorted_applocales = \ sorted(applocales.APP_LOCALES, key=lambda x: str(x.lang_type)) self.applocales_cb.ItemsSource = [str(x) for x in sorted_applocales] self.applocales_cb.SelectedItem = str(applocale) # colorize docs self.colordocs_cb.IsChecked = user_config.colorize_docs # tab style color themes theme = tabs.get_tabcoloring_theme(user_config) self.tab_theme = theme self.filtercolor_counter = 1 self.doc_ordercolor_lb.ItemsSource = theme.TabOrderRules self.doc_filtercolor_lb.ItemsSource = theme.TabFilterRules # tab styles (must set after the color themes) self.project_tabstyle_cb.ItemsSource = theme.AvailableStyles self.project_tabstyle_cb.SelectedItem = theme.TabStyle self.family_tabstyle_cb.ItemsSource = theme.AvailableStyles self.family_tabstyle_cb.SelectedItem = theme.FamilyTabStyle self.sortdocs_cb.IsChecked = theme.SortDocTabs # output settings self.cur_stylesheet_tb.Text = output.get_stylesheet() # pyrevit gui settings self.loadtooltipex_cb.IsChecked = user_config.tooltip_debug_info
def _setup_uiux(self): applocale = applocales.get_current_applocale() sorted_applocales = \ sorted(applocales.APP_LOCALES, key=lambda x: str(x.lang_type)) self.applocales_cb.ItemsSource = [str(x) for x in sorted_applocales] self.applocales_cb.SelectedItem = str(applocale) # colorize docs self.colordocs_cb.IsChecked = user_config.colorize_docs # output settings self.cur_stylesheet_tb.Text = output.get_stylesheet()
def _setup_outputsettings(self): # output settings self.cur_stylesheet_tb.Text = output.get_stylesheet()