Skip to content

Commit 9f6e0ac

Browse files
authored
Merge pull request #1738 from lesamouraipourpre/google-calendar
PyPortal Google Calendar: Update for CP7
2 parents e6ac026 + 17c9575 commit 9f6e0ac

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

PyPortal_Google_Calendar/authenticator.py

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@
5353
font_small.load_glyphs(glyphs)
5454
font_large.load_glyphs(glyphs)
5555

56-
group_verification = displayio.Group(max_size=25)
56+
group_verification = displayio.Group()
5757
label_overview_text = Label(
5858
font_large, x=0, y=45, text="To authorize this device with Google:"
5959
)
6060
group_verification.append(label_overview_text)
6161

62-
label_verification_url = Label(font_small, x=0, y=100, line_spacing=1, max_glyphs=90)
62+
label_verification_url = Label(font_small, x=0, y=100, line_spacing=1)
6363
group_verification.append(label_verification_url)
6464

65-
label_user_code = Label(font_small, x=0, y=150, max_glyphs=50)
65+
label_user_code = Label(font_small, x=0, y=150)
6666
group_verification.append(label_user_code)
6767

6868
label_qr_code = Label(font_small, x=0, y=190, text="Or scan the QR code:")

PyPortal_Google_Calendar/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def display_calendar_events(resp_events):
231231
pyportal.splash.append(line_header)
232232

233233
font_h1 = bitmap_font.load_font("fonts/Arial-18.pcf")
234-
label_header = label.Label(font_h1, x=10, y=30, color=0x000000, max_glyphs=30)
234+
label_header = label.Label(font_h1, x=10, y=30, color=0x000000)
235235
pyportal.splash.append(label_header)
236236

237237
# Set up calendar event fonts

PyPortal_Google_Calendar/fonts/Arial-18.pcf

100755100644
File mode changed.

0 commit comments

Comments
 (0)