chore: scroll added to back up seed phrase popups
This commit is contained in:
parent
45fc6ec608
commit
2a4adb344b
|
@ -8,6 +8,7 @@ from gui.components.base_popup import BasePopup
|
||||||
from gui.elements.button import Button
|
from gui.elements.button import Button
|
||||||
from gui.elements.check_box import CheckBox
|
from gui.elements.check_box import CheckBox
|
||||||
from gui.elements.object import QObject
|
from gui.elements.object import QObject
|
||||||
|
from gui.elements.scroll import Scroll
|
||||||
from gui.elements.text_edit import TextEdit
|
from gui.elements.text_edit import TextEdit
|
||||||
from gui.objects_map import names
|
from gui.objects_map import names
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ class BackUpYourSeedPhrasePopUp(BasePopup):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(BackUpYourSeedPhrasePopUp, self).__init__()
|
super(BackUpYourSeedPhrasePopUp, self).__init__()
|
||||||
|
self._scroll = Scroll(names.o_Flickable)
|
||||||
self._i_have_a_pen_and_paper_check_box = CheckBox(names.i_have_a_pen_and_paper_StatusCheckBox)
|
self._i_have_a_pen_and_paper_check_box = CheckBox(names.i_have_a_pen_and_paper_StatusCheckBox)
|
||||||
self._i_know_where_i_ll_store_it_check_box = CheckBox(names.i_know_where_I_ll_store_it_StatusCheckBox)
|
self._i_know_where_i_ll_store_it_check_box = CheckBox(names.i_know_where_I_ll_store_it_StatusCheckBox)
|
||||||
self._i_am_ready_to_write_down_seed_phrase_check_box = CheckBox(names.i_am_ready_to_write_down_StatusCheckBox)
|
self._i_am_ready_to_write_down_seed_phrase_check_box = CheckBox(names.i_am_ready_to_write_down_StatusCheckBox)
|
||||||
|
@ -43,6 +45,7 @@ class BackUpYourSeedPhrasePopUp(BasePopup):
|
||||||
|
|
||||||
@allure.step('Set know where will store it checkbox')
|
@allure.step('Set know where will store it checkbox')
|
||||||
def set_know_where_store_it(self, value: bool):
|
def set_know_where_store_it(self, value: bool):
|
||||||
|
self._scroll.vertical_scroll_to(self._i_know_where_i_ll_store_it_check_box)
|
||||||
self._i_know_where_i_ll_store_it_check_box.set(value)
|
self._i_know_where_i_ll_store_it_check_box.set(value)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ from gui.components.base_popup import BasePopup
|
||||||
from gui.elements.button import Button
|
from gui.elements.button import Button
|
||||||
from gui.elements.check_box import CheckBox
|
from gui.elements.check_box import CheckBox
|
||||||
from gui.elements.object import QObject
|
from gui.elements.object import QObject
|
||||||
|
from gui.elements.scroll import Scroll
|
||||||
from gui.elements.text_edit import TextEdit
|
from gui.elements.text_edit import TextEdit
|
||||||
from gui.objects_map import names
|
from gui.objects_map import names
|
||||||
|
|
||||||
|
@ -15,6 +16,7 @@ class BackUpYourSeedPhrasePopUp(BasePopup):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(BackUpYourSeedPhrasePopUp, self).__init__()
|
super(BackUpYourSeedPhrasePopUp, self).__init__()
|
||||||
|
self._scroll = Scroll(names.o_Flickable)
|
||||||
self._i_have_a_pen_and_paper_check_box = CheckBox(names.mainWallet_AddEditAccountPopup_HavePenAndPaperCheckBox)
|
self._i_have_a_pen_and_paper_check_box = CheckBox(names.mainWallet_AddEditAccountPopup_HavePenAndPaperCheckBox)
|
||||||
self._i_know_where_i_ll_store_it_check_box = CheckBox(
|
self._i_know_where_i_ll_store_it_check_box = CheckBox(
|
||||||
names.mainWallet_AddEditAccountPopup_StoringSeedPhraseConfirmedCheckBox)
|
names.mainWallet_AddEditAccountPopup_StoringSeedPhraseConfirmedCheckBox)
|
||||||
|
@ -41,6 +43,7 @@ class BackUpYourSeedPhrasePopUp(BasePopup):
|
||||||
|
|
||||||
@allure.step('Set know where will store it checkbox')
|
@allure.step('Set know where will store it checkbox')
|
||||||
def set_know_where_store_it(self, value: bool):
|
def set_know_where_store_it(self, value: bool):
|
||||||
|
self._scroll.vertical_down_to(self._i_know_where_i_ll_store_it_check_box)
|
||||||
self._i_know_where_i_ll_store_it_check_box.set(value)
|
self._i_know_where_i_ll_store_it_check_box.set(value)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue