I’m assuming you wanted the code below.
I commented out the WakeCall Screen, there is nothing defined for it yet.
WindowManager is the root widget. It is in the far left column. <SleepOn> is a rule.
#:kivy 1.10.1
WindowManager:
# WakeCall:
# name: "wake_call"
SleepOn:
name: "sleep_on"
<SleepOn>:
BoxLayout:
orientation: "vertical"
size: root.width, root.height
cols: 1
GridLayout:
pos_hint: {'center_x':.5}
cols: 3
rows: 1
ImageButton:
size_hint_x: 1
size_hint_y: 0.8
source: "./sleepy.jpg"
on_release:
h_clock.cancel_time()
self.source = './awake.jpg'
h_clock.text = "BEEP"
clockLabel:
id: h_clock
size_hint_x: 1
size_hint_y: 0.2
font_size: 85
color: 0, 1, 1, 1
bold: True
text: self.current_time
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/bc215115-7a55-4bb9-aa3b-057af49faa2c%40googlegroups.com.