Hi i'm new to this and i'm learning from an ebook i tried this code but it didn't work i've been unable to find and fix the problem.
No errors are displayed it just doesn't run when i double click it. This happened right after i tried displaying text on the screen.
from livewires import games, color SCREEN_WIDTH = 640 SCREEN_HEIGHT = 480 my_screen = games.Screen(SCREEN_WIDTH, SCREEN_WIDTH) back_image = games.load_image("fireworks5.jpg", transparent = False) my_screen.set_background(back_image) games.Text(screen = my_screen, x = 500, y = 30, text = "Score: 1273693", size = 50, color = color.white) my_screen.mainloop()
No errors are displayed it just doesn't run when i double click it. This happened right after i tried displaying text on the screen.