Python | Tkinter полное окно
Не работают как это исправить, а так же сделать что-бы окно можно было переносить
import tkinter
from tkinter import Tk
from tkinter import *
import os
clear = ' '
root = Tk()
root.overrideredirect(1)
root.geometry("1290x720")
root.wm_attributes('-alpha', 0.9)
root['bg'] = 'black'
class gg():
bg = 'black'
fg = 'green'
version = Label(root, text = 'Version: 1.0.0', bg = 'black', fg = 'cyan').place(relx=0, rely=0.950)
import requests
import json
def exit():
quit()
def sver():
root.wm_state('iconic')
def fool():
root.attributes("-fullscreen", True)
def ip():
cmd = message.get()
response = requests.get(f'http://ipinfo.io/{ cmd }/json' )
user_ip = response.json()[ "ip" ]
user_city = response.json()[ 'city' ]
user_region = response.json()[ 'region' ]
user_country = response.json()[ 'country' ]
user_location = response.json()[ 'loc' ]
user_org = response.json()[ 'org' ]
user_timezone = response.json()[ 'timezone' ]
text1 = '$ -- Ip -- ' + str(user_ip)
text2 = '$ -- City -- ' + str(user_city)
text3 = '$ -- Region -- ' + str(user_region)
text4 = '$ -- Country -- ' + str(user_country)
text5 = '$ -- Organisation -- ' + str(user_org)
text6 = '$ -- TimeZone --' + str(user_timezone)
text7 = '$ -- Location IP -- ' + str(user_location)
text8 = '$ -- Info --'
str1 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0)
str2 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.06)
str3 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.09)
str4 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.12)
str5 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.15)
str6 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.18)
str7 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.21)
str8 = Label(root, text = clear, bg = 'black', fg = 'red').place(relx=0, rely=0.24)
str1 = Label(root, text = text1, bg = 'black', fg = 'red').place(relx=0)
str2 = Label(root, text = text2, bg = 'black', fg = 'red').place(relx=0, rely=0.06)
str3 = Label(root, text = text3, bg = 'black', fg = 'red').place(relx=0, rely=0.09)
str4 = Label(root, text = text4, bg = 'black', fg = 'red').place(relx=0, rely=0.12)
str5 = Label(root, text = text5, bg = 'black', fg = 'red').place(relx=0, rely=0.15)
str6 = Label(root, text = text6, bg = 'black', fg = 'red').place(relx=0, rely=0.18)
str7 = Label(root, text = text7, bg = 'black', fg = 'red').place(relx=0, rely=0.21)
str8 = Label(root, text = text8, bg = 'black', fg = 'red').place(relx=0, rely=0.24)
logo = Label(root, text = 'Terminal L1meek', bg = 'black', fg = 'red').place(relx=0, rely=0.929)
telegram = Label(root, text = 'Telegram: @L1meek', bg = 'black', fg = 'red').place(relx=0.2, rely=0.929)
btnX = Button(text='X',bg = 'black', fg = 'red',command=exit, relief='flat').place(relx=0, rely=0)
btns = Button(text='–',bg = 'black', fg = 'red',command=sver, relief='flat').place(relx=0.015, rely=0)
btnfull = Button(text='▢',bg = 'black', fg = 'red',command=fool, relief='flat').place(relx=0.03, rely=0)
str1 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.06)
str2 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.09)
str3 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.12)
str4 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.15)
str5 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.18)
str6 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.21)
str7 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.24)
str8 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.27)
str9 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.30)
str10 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.33)
str11 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.36)
str12 = Label(root, text = '$ -- ', bg = 'black', fg = 'red').place(relx=0, rely=0.39)
btnEnter = Button(text = '↵', bg = 'black', fg = 'red',command=ip, relief='flat').place(relx=0.13, rely = 0.43)
message = StringVar()
cmd = Entry(textvariable=message, width=25, bg = 'black', fg = 'red', relief='flat').place(relx=0, rely = 0.43)
root.mainloop()