I have raspi 3, and working on "Getting started with GUIs". I am currently on this page (https://projects.raspberrypi.org/en/projects/getting-started-with-guis/11) and having trouble at the line where it says "size = 40." My IDE doesnt seem to recognize this line, which I mean the color of "40" doesnt change on my IDE. Matter of fact it shows an error after I press enter. I have installed and updated guizero and tkinter. Does anyone spot a problem and any solutions? Thanks.
Here below is the code btw.
from guizero import App, Text, TextBox, PushButton, Slider, Picture def say_my_name(): welcome_message.value = my_name.value def change_text_size(slider_value): welcome_message.size = slider_value app = App(title="Hello world") welcome_message = Text(app, text="Welcome to my app", size=40, font="Times new roman", color="lightblue") my_name = TextBox(app, width=30) update_text = PushButton(app, command=say_my_name, text="Display my name") text_size = Slider(app, command=change_text_size, start=10, end=80) my_cat = Picture(app, image="cat.gif") app.display()