def show_theme_picker(self): theme_dialog = MDThemePicker() # todo: remove accent tab before drawing theme_tab = theme_dialog.children[0] theme_tab_bar = theme_tab.children[0] theme_tab_box = theme_tab_bar.children[0].children[0] accent_picker = theme_tab_box.children[1] theme_tab_box.remove_widget(accent_picker) theme_dialog.open() theme_dialog.bind(on_dismiss=self.save_theme)
def show_themepicker(self, *args): picker = MDThemePicker() picker.open() picker.bind(on_dismiss=self.themepicker_dismiss)