Skip to content

Commit f3c7e98

Browse files
committed
1 parent e6db8d7 commit f3c7e98

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

PyPortal_Azure_Plant_Monitor/azure_gfx_helper.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def __init__(self, is_celsius=True):
3636
self._cwd = cwd
3737
self.set_icon(self._cwd+"/images/azure_splash.bmp")
3838

39+
def show_text(self):
3940
print('loading fonts...')
4041
glyphs = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-,.: '
4142
data_glyphs = b'012345678-,.:/FC'
@@ -56,7 +57,7 @@ def __init__(self, is_celsius=True):
5657
self.temp_label.y = 65
5758
self._text_group.append(self.temp_label)
5859

59-
self.temp_text = Label(self.data_font, max_glyphs=10)
60+
self.temp_text = Label(self.data_font, max_glyphs=10, text="")
6061
self.temp_text.x = 200
6162
self.temp_text.y = 85
6263
self._text_group.append(self.temp_text)
@@ -66,12 +67,12 @@ def __init__(self, is_celsius=True):
6667
self.moisture_label.y = 135
6768
self._text_group.append(self.moisture_label)
6869

69-
self.moisture_text = Label(self.data_font, max_glyphs=10)
70+
self.moisture_text = Label(self.data_font, max_glyphs=10, text="")
7071
self.moisture_text.x = 200
7172
self.moisture_text.y = 175
7273
self._text_group.append(self.moisture_text)
7374

74-
self.azure_status_text = Label(self.main_font, max_glyphs=15)
75+
self.azure_status_text = Label(self.main_font, max_glyphs=15, text="")
7576
self.azure_status_text.x = 65
7677
self.azure_status_text.y = 225
7778
self._text_group.append(self.azure_status_text)

0 commit comments

Comments
 (0)