mi problema es este, estoy haciendo el programa que es una especie de launcher de unos juegos y cuando con la ventana presiono el boton para que me mande al launcher y:
- no se elimino con root.destroy()
- en el launcher no aparece mi imagen Archivo _ _ main _ _.py
from tkinter import *
import webbrowser
import codes
def sks(arguments):
import sk
exec("sk")
root.destroy()
def __initapp__():
root=Tk()
root.title("SaDro Launcher")
root.geometry("800x600")
principal=Button(root,text="Pagina Principal",bg="red")
principal.place(x=0,y=0)
about=Button(root,text="Sobre nosotros")
about.place(x=94,y=0)
fontvar=("TkFixedFont",24)
fontvarnormal=("TkFixedFont",10)
fontvarsmall=("TkFixedFont", 7)
playto=Label(root,text="Jugar a",font=fontvar)
playto.place(x=0,y=26)
StrikerKilleImage=PhotoImage(file="H:/BIND.D/APPS/ENPROCESO/GAME_PETER/APP/125x125.png")
StrikerKilleImageLabel=Label(root,image=StrikerKilleImage)
StrikerKilleImageLabel.place(x=0,y=25)
Strikerkillshot=Label(root,text="S͟t͟ʀ͟ɩ͟ĸ͟ɘ͟ʀ͟K͟ɩ͟ɭ͟ɭ͟s͟ʜ͟o͟t͟™",font=fontvarnormal,fg="blue")
Strikerkillshot.bind("<Button-1>",sks)#Si se toca el label Strikerkillshot, se ejecuta sks()
Strikerkillshot.place(x=0,y=172)
Strikerkillshotimagetext=Label(root,text="Imagen de StʀɩĸɘʀKɩɭɭsʜot™",font=fontvarsmall)
Strikerkillshotimagetext.place(x=0,y=149)
root.mainloop()
def submit():
serialcode=serial.get()
if serialcode in codes.KeyCodes:
root.destroy()
__initapp__()
root=Tk()
root.geometry("300x200")
serial=Entry(root)
serial.place(x=90,y=30)
submitb=Button(root,text="Enviar",command=submit)
submitb.place(x=90,y=50)
root.mainloop()
Archivo sk.py
from tkinter import *
root=Tk()
root.title("StrikerKillerShot")
root.config(bg="white")
root.geometry("800x600")
root.resizable(0,0)
SksLabel=Label(root,text="StrikerKillerShot",bg="white",font=("TkFixedFont",24))
SksLabel.place(x=285,y=260)
SksLaunch=Button(root,text="Jugar",width=35,height=2,bg="white",font=("TkFixedFont"))
SksLaunch.place(x=280,y=300)
SksImage=PhotoImage(file="H:/bind.d/apps/enproceso/game_peter/app/250x250.png")#Esta imagen no aparece
SksImageLabel=Label(root,image=SksImage)#Esta imagen no aparece
SksImageLabel.place(x=280,y=0)
root.mainloop()
por favor, Que sucede en mi programa En el visual studio code no aparecen errores y el directorio de la imagen esta escrito correctamente