Add identity_list variable
This commit is contained in:
parent
d15e12b724
commit
eaf4bb3ed0
|
@ -15,7 +15,8 @@ from kivy.clock import Clock
|
||||||
from kivy.properties import (
|
from kivy.properties import (
|
||||||
BooleanProperty,
|
BooleanProperty,
|
||||||
NumericProperty,
|
NumericProperty,
|
||||||
StringProperty
|
StringProperty,
|
||||||
|
ListProperty
|
||||||
)
|
)
|
||||||
from kivy.metrics import dp
|
from kivy.metrics import dp
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
|
@ -133,11 +134,15 @@ class CustomSpinner(Spinner):
|
||||||
|
|
||||||
class NavigateApp(MDApp):
|
class NavigateApp(MDApp):
|
||||||
"""Navigation Layout of class"""
|
"""Navigation Layout of class"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(NavigateApp, self).__init__()
|
super(NavigateApp, self).__init__()
|
||||||
self.kivy_state_obj = KivyStateVariables()
|
self.kivy_state_obj = KivyStateVariables()
|
||||||
|
|
||||||
title = "PyBitmessage"
|
title = "PyBitmessage"
|
||||||
|
identity_list = ListProperty(
|
||||||
|
addr for addr in config.addresses() if config.get(str(addr), 'enabled') == 'true'
|
||||||
|
)
|
||||||
image_path = KivyStateVariables().image_dir
|
image_path = KivyStateVariables().image_dir
|
||||||
tr = Lang("en") # for changing in franch replace en with fr
|
tr = Lang("en") # for changing in franch replace en with fr
|
||||||
|
|
||||||
|
@ -168,3 +173,8 @@ class NavigateApp(MDApp):
|
||||||
self.root.ids.id_myaddress.children[0].active = action
|
self.root.ids.id_myaddress.children[0].active = action
|
||||||
else:
|
else:
|
||||||
self.root.ids.id_myaddress.children[1].active = action
|
self.root.ids.id_myaddress.children[1].active = action
|
||||||
|
|
||||||
|
def reset_login_screen(self):
|
||||||
|
"""This method is used for clearing the widgets of random screen"""
|
||||||
|
if self.root.ids.id_newidentity.ids.add_random_bx.children:
|
||||||
|
self.root.ids.id_newidentity.ids.add_random_bx.clear_widgets()
|
||||||
|
|
Reference in New Issue
Block a user