my code is:
from tkinter import *
import tkinter as tk
def minimize_window():
root2.iconify()
def exit_fullscreen():
root2.destroy()
def new_root():
global root2, time_label
root2 = Tk()
root2.title("MONEY")
root2.geometry('1500x700')
# Open the window in fullscreen mode
root2.attributes('-fullscreen', True)
root2.resizable(False, False)
# Create an exit button (X)
exit_button = Button(root2, text="X", font="ar 15 bold", command=exit_fullscreen, bg='red', fg='white')
exit_button.place(x=1450, y=10) # Position in the top right corner
# Create a minimize button (-)
minimize_button = Button(root2, text="-", font="ar 15 bold", command=minimize_window, bg='gray', fg='white')
minimize_button.place(x=1400, y=10) # Position next to the exit button
root2.mainloop()
is there any thing wroge because when i run it i got what i want 1- the full screen mode 2- the 2 buttons but the buttons not lie what i want, i want it stay in the same place for it without change
root2.inconifyandroot2.destroydon't need wrappers at all.relxandanchoroptions ofplace()work.place()work, then you can achieve what you want.