Save address when saving settings + change length of hands to match colored circles
This commit is contained in:
parent
0f5b2d914e
commit
e0aa06c7ba
6
clock.py
6
clock.py
|
@ -185,6 +185,8 @@ class ClockSettings():
|
|||
j["alarm_activated"] = self.alarm_activated
|
||||
j["alarm_time_hour"] = self.alarm_time.hour
|
||||
j["alarm_time_minute"] = self.alarm_time.minute
|
||||
if hasattr(self, "address"):
|
||||
j["address"] = self.address
|
||||
|
||||
with open("settings.json", "w") as f:
|
||||
json.dump(j, f, indent=4)
|
||||
|
@ -948,8 +950,8 @@ class MyClockWidget(FloatLayout):
|
|||
|
||||
hands = self.ids["hands"]
|
||||
seconds_hand = self.position_on_clock(t.second/60, length=0.45*hands.size[0])
|
||||
minutes_hand = self.position_on_clock(t.minute/60+t.second/3600, length=0.40*hands.size[0])
|
||||
hours_hand = self.position_on_clock(t.hour/12 + t.minute/720, length=0.35*hands.size[0])
|
||||
minutes_hand = self.position_on_clock(t.minute/60+t.second/3600, length=0.38*hands.size[0])
|
||||
hours_hand = self.position_on_clock(t.hour/12 + t.minute/720, length=0.32*hands.size[0])
|
||||
|
||||
self.draw_list_curr_frame.append(["canvas.clear()", hands])
|
||||
update_rate = App.get_running_app().update_rate
|
||||
|
|
Loading…
Reference in New Issue