Add backbutton
This commit is contained in:
parent
cf593320bb
commit
85c997430b
1 changed files with 8 additions and 0 deletions
8
main.py
8
main.py
|
@ -43,6 +43,14 @@ class SingleBridgeScreen(Screen):
|
|||
size_hint=(1, 0.1),
|
||||
on_press=lambda button: self.press_button(button, group))
|
||||
self.layout.add_widget(button)
|
||||
backbutton = Button(
|
||||
text="Back",
|
||||
size_hint=(1, 0.1),
|
||||
on_press=lambda button: self.press_back_button(button, "back"))
|
||||
self.layout.add_widget(backbutton)
|
||||
|
||||
def press_back_button(self, button, group):
|
||||
self.sm.current = "bridge_screen"
|
||||
|
||||
def press_button(self, light, button):
|
||||
print(light)
|
||||
|
|
Loading…
Add table
Reference in a new issue