помогите с кодом в питоне пожалуйста Tkinter

помогите пж с кодом он работет, но не так как надо. Label пишется не в том окне где надо. введите сюда описание изображения

from tkinter import *
import pyglet
import pyautogui as au
from time import *
import webbrowser as web
from PIL import *
from pygame.display import update
import random

au.FAILSAFE = False

win = Tk()
win.geometry('420x480')
win.title('хз')
win.config(background='Grey')
win.resizable(width=False, height=False)
win.update()
imgVK = PhotoImage(file='vkms.png')
imgVK = imgVK.subsample(8,8)


def click_audio():
    a = pyglet.resource.media("knopka-schelchok-korotkii-zvonkii-blizkii-suhoi1.mp3")
    a.play()
    update(mainloop())

    pyglet.app.run()
    return click_audio()

def off():
    au.click(24, 1064)
    sleep(0.01)
    au.click(315, 1015, 1)

def vk_music_open():
    def open_url(url):
        web.open(url)
    open_url("https://vk.com/audio")
    return open_url

def multy_func():
    vk_music_open()
    click_audio()

    return vk_music_open() and click_audio()

def random_action():
    win1 = Tk()
    win1.geometry("300x300")
    win1.title("что делать")
    win1.config(background="grey")
    win1.resizable(width=False, height=False)
    win1.update()

    act = random.randint(1, 100)
    if act <= 50:
        label1 = Label(text="Programming", font=("Comic Sans MS", 20,'bold'), bg="black", fg='green')
        label1.place(x=100,y=50)

    elif 75 >= act > 51:
        label1 = Label(text="Fortnite", font=("Comic Sans MS", 20, 'bold'), bg="black", fg='purple')
        label1.place(x=100, y=50)

    elif 90 >= act > 76:
        label1 = Label(text="Minecraft", font=("Comic Sans MS", 20, 'bold'), bg="black", fg='blue')
        label1.place(x=100, y=50)

    else:
        label1 = Label(text="CS 2", font=("Comic Sans MS", 20, 'bold'), bg="black", fg='red')
        label1.place(x=100, y=50)

    win1.mainloop(2)

def multy_func1():
    random_action()
    click_audio()

    return random_action() and click_audio()

button = Button(text="PC OFF", height=2, width=6, command=off , font=("Comic Sans MS", 20,'bold'),activebackground="red",fg='grey', activeforeground='black')
button.place(x=308.5,y=375.5)
button.config(background="pink")

button1 = Button(text="", height=98, width=98, command=multy_func , image=imgVK, font=("Comic Sans MS", 20,'bold'))
button1.place(x=10,y=375.5)
button1.config(background="lightblue")

button2 = Button(text="random", height=2, width=6, command=multy_func1, font=("Comic Sans MS", 20,'bold'))
button2.place(x=150,y=375.5)
button2.config(background="lightgreen")

win.mainloop()

Ответы (0 шт):