File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
PyPortal_Titano_Weather_Station Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -147,15 +147,15 @@ def update_date(self):
147
147
holiday_date_str = month + shortened_date_format_str % (date )
148
148
print (date_str )
149
149
self .date_text .text = date_str
150
- if not self .holiday_text :
151
- self .holiday_text = Label (self .medium_font , max_glyphs = 60 )
152
- self .holiday_text .x = 10
153
- self .holiday_text .y = 45
154
- self .holiday_text .color = 0xf2f89d
155
- self ._text_group .append (self .holiday_text )
156
150
for i in holiday_checks :
157
151
h = holiday_checks .index (i )
158
152
if holiday_date_str == holiday_checks [h ]:
153
+ if not self .holiday_text :
154
+ self .holiday_text = Label (self .medium_font , max_glyphs = 60 )
155
+ self .holiday_text .x = 10
156
+ self .holiday_text .y = 45
157
+ self .holiday_text .color = 0xf2f89d
158
+ self ._text_group .append (self .holiday_text )
159
159
self .holiday_text .text = holiday_greetings [h ]
160
160
161
161
def set_icon (self , filename ):
You can’t perform that action at this time.
0 commit comments