-
Notifications
You must be signed in to change notification settings - Fork 0
/
RefilterPage.py
31 lines (24 loc) · 1023 Bytes
/
RefilterPage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
class RefilterPage(FloatLayout):
def __init__(self,config, **kwargs):
super().__init__(**kwargs)
self.config = config
@staticmethod
def page_index(*args):
App.get_running_app().screen_manager.current = "Index_page"
App.get_running_app().screen_manager.transition.direction = 'right'
@staticmethod
def page_database(*args):
App.get_running_app().screen_manager.current = "Database_page"
App.get_running_app().screen_manager.transition.direction = 'right'
def update_box(self, text):
self.ids.box1.opacity = 0
self.ids.box2.opacity = 0
self.ids.box3.opacity = 0
if text == 'Define positions and numbers':
self.ids.box1.opacity = 1
elif text == 'Define positions and range of numbers':
self.ids.box2.opacity = 1
elif text == 'Select positions with fixed numbers':
self.ids.box3.opacity = 1