0

I'm trying to do a game based on Mario, and I wanna first, print 2 images on the screen with the code:

from tkinter import *
import time
janela = Tk()

janela.geometry("1920x1080")
janela.title("Mario")

mario = PhotoImage(file = "cenario.png")

label = Label(janela, image = mario).place(x=0,y=0)
photo = PhotoImage(file = "mario.png")
label = Label(janela, image = photo).place(x=3,y=600)

janela.mainloop()

And what I get was: Mario's image is transparent, but the background is displayed gray

How can I display without this grey background?

Thank you

Hemerson Tacon
  • 2,419
  • 1
  • 16
  • 28
Enzo Dtz
  • 361
  • 1
  • 16

0 Answers0