def popup_dialog(self, name): if name == 'settings': self.settings_dialog() elif name == 'wallets': from uix.dialogs.wallets import WalletDialog d = WalletDialog() d.open() else: popup = Builder.load_file('gui/kivy/uix/ui_screens/'+name+'.kv') popup.open()
def popup_dialog(self, name): if name == "settings": self.settings_dialog() elif name == "wallets": from uix.dialogs.wallets import WalletDialog d = WalletDialog() d.open() else: popup = Builder.load_file("gui/kivy/uix/ui_screens/" + name + ".kv") popup.open()