Загрузка данных
import random
import tkinter
okno=tkinter.Tk()
okno.geometry("1200x900+660+225")
okno.title("не машеники.com")
okno.resizable(True,True)
okno.configure(bg="#9fb9c9",cursor="mouse")
okno.wm_attributes("-alpha",1)
okno.attributes("-fullscreen", False)
def shans ():
go=text.get()+"\n"
text.delete(0,"end")
textDP.insert("end",go)
text.focus_set()
with open("мои_третии_акаунты.txt", "a", encoding="utf-8") as file:
if go!="\n":
file.write(go)
def tema():
themes = [
{"bg": "#1a1a2e", "entry_bg": "#16213e", "entry_fg": "#e94560", "btn_bg": "#0f3460", "btn_fg": "#e94560", "text_bg": "#16213e", "text_fg": "#e94560", "active_bg": "#533483", "active_fg": "#ffffff"},
{"bg": "#2d4059", "entry_bg": "#f5f5f5", "entry_fg": "#222831", "btn_bg": "#eeeeee", "btn_fg": "#222831", "text_bg": "#f5f5f5", "text_fg": "#222831", "active_bg": "#00adb5", "active_fg": "#ffffff"},
{"bg": "#f9ed69", "entry_bg": "#f38181", "entry_fg": "#fce38a", "btn_bg": "#f38181", "btn_fg": "#fce38a", "text_bg": "#f38181", "text_fg": "#fce38a", "active_bg": "#95e1d3", "active_fg": "#252525"},
{"bg": "#264653", "entry_bg": "#2a9d8f", "entry_fg": "#e9c46a", "btn_bg": "#2a9d8f", "btn_fg": "#e9c46a", "text_bg": "#2a9d8f", "text_fg": "#e9c46a", "active_bg": "#f4a261", "active_fg": "#ffffff"},
{"bg": "#0b0c10", "entry_bg": "#45a29e", "entry_fg": "#66fcf1", "btn_bg": "#45a29e", "btn_fg": "#66fcf1", "text_bg": "#45a29e", "text_fg": "#66fcf1", "active_bg": "#c5c6c7", "active_fg": "#0b0c10"},
{"bg": "#2c2c54", "entry_bg": "#706fd3", "entry_fg": "#33d9b2", "btn_bg": "#706fd3", "btn_fg": "#33d9b2", "text_bg": "#706fd3", "text_fg": "#33d9b2", "active_bg": "#ff5252", "active_fg": "#ffffff"},
{"bg": "#3d3d3d", "entry_bg": "#ff6b6b", "entry_fg": "#ffd93d", "btn_bg": "#ff6b6b", "btn_fg": "#ffd93d", "text_bg": "#ff6b6b", "text_fg": "#ffd93d", "active_bg": "#6bcb77", "active_fg": "#ffffff"},
{"bg": "#1b1b2f", "entry_bg": "#e43f5a", "entry_fg": "#1b1b2f", "btn_bg": "#e43f5a", "btn_fg": "#1b1b2f", "text_bg": "#e43f5a", "text_fg": "#1b1b2f", "active_bg": "#e2e2e2", "active_fg": "#1b1b2f"},
{"bg": "#ffedd3", "entry_bg": "#8b5cf6", "entry_fg": "#f5f3ff", "btn_bg": "#8b5cf6", "btn_fg": "#f5f3ff", "text_bg": "#8b5cf6", "text_fg": "#f5f3ff", "active_bg": "#f59e0b", "active_fg": "#ffffff"},
{"bg": "#0f0f0f", "entry_bg": "#00ff7f", "entry_fg": "#0f0f0f", "btn_bg": "#00ff7f", "btn_fg": "#0f0f0f", "text_bg": "#00ff7f", "text_fg": "#0f0f0f", "active_bg": "#ff4444", "active_fg": "#ffffff"}
]
theme = random.choice(themes)
okno.configure(bg=theme["bg"])
text.configure(bg=theme["entry_bg"], fg=theme["entry_fg"])
textDP.configure(bg=theme["text_bg"], fg=theme["text_fg"])
onlain.configure(bg=theme["text_bg"], fg=theme["text_fg"])
_B_pytu_coo.configure(bg=theme["btn_bg"], fg=theme["btn_fg"], activebackground=theme["active_bg"], activeforeground=theme["active_fg"])
smena.configure(bg=theme["btn_bg"], fg=theme["btn_fg"], activebackground=theme["active_bg"], activeforeground=theme["active_fg"])
text=tkinter.Entry(okno,bg="#c9a19f",width=25,fg="white",font="Consolas 30")
text.place(x=180,y=775)
text.focus_set()
_B_pytu_coo=tkinter.Button(okno,bg="#c9a19f",text="отправить",fg="white",font="Consolas 30",activebackground="green",activeforeground="white",bd=9,command=shans)
_B_pytu_coo.place(x=750,y=750)
textDP=tkinter.Text(okno,bg="#c9a19f",width=40,fg="white",font="Consolas 30")
textDP.place(x=20,y=17,width=950,height=700)
# textDP.configure(state="disabled")
with open("мои_третии_акаунты.txt",encoding="utf-8") as file:
textDP.insert(tkinter.END,file.read())
onlain=tkinter.Text(okno,bg="#c9a19f",width=40,fg="white",font="Consolas 30")
onlain.place(x=1000,y=17,width=175,height=700)
onlain.insert("end","fa4er")
#onlain.configure(state="disabled")
smena=tkinter.Button(okno,bg="#c9a19f",text="сменить тему",fg="white",font="Consolas 15",activebackground="green",activeforeground="white",bd=9,command=tema)
smena.place(x=1025,y=775)
with open("мои_вторые_акаунты.txt",encoding="utf-8") as file:
onlain.insert(tkinter.END,file.read())
okno.mainloop()
import tkinter
okno=tkinter.Tk()
okno.geometry("1200x900+660+225")
okno.title("не машеники.com")
okno.resizable(True,True)
okno.configure(bg="#9fb9c9",cursor="mouse")
okno.wm_attributes("-alpha",1)
okno.attributes("-fullscreen", False)
def IP():
Login = text2.get()
Password = text.get()
address = text3.get()
if Login == "" or Password == "" or address == "":
print("Не все данные введены в поля")
return
print(Login,Password,address)
with open("мои_вторые_акаунты.txt", "a", encoding="utf-8") as file:
file.write(Login+"\n")
okno.destroy()
import Шанс
tl=tkinter.Label(okno,bg="#9fb9c9",width=25,fg="white",font="Consolas 30",text="Логин")
tl.place(x=300,y=25)
tl2=tkinter.Label(okno,bg="#9fb9c9",width=25,fg="white",font="Consolas 30",text="Пароль")
tl2.place(x=300,y=225)
tl3=tkinter.Label(okno,bg="#9fb9c9",width=25,fg="white",font="Consolas 30",text="IP/Port")
tl3.place(x=300,y=425)
text=tkinter.Entry(okno,bg="#c9a19f",width=25,fg="white",font="Consolas 30")
text.place(x=300,y=300)
_B_pytu_coo=tkinter.Button(okno,bg="#9fb9c9",text="создать аккаунт",fg="white",font="Consolas 30",activebackground="#9fb9c9",activeforeground="white",bd=9,command=IP)
_B_pytu_coo.place(x=400,y=800)
text2=tkinter.Entry(okno,bg="#c9a19f",width=25,fg="white",font="Consolas 30")
text2.place(x=300,y=100)
text2.focus_set()
text3=tkinter.Entry(okno,bg="#c9a19f",width=25,fg="white",font="Consolas 30")
text3.place(x=300,y=500)
# _B_pytu=tkinter.Checkbutton(
# okno,
# bg="#9fb9c9",
# text="заходить в аккаунт без пароля",
# fg="white",
# font="Consolas 30",
# activeforeground="white",
# bd=9,
# width=20,
# height=2,
# activebackground="green",
# padx=10,
# pady=10
# )
# _B_pytu.place(x=400,y=700)
okno.mainloop()