Win32gui.ShowWindow(Minimize, win32con.SW_MINIMIZE) Minimize = win32gui.GetForegroundWindow() # bind title bar motion to the move window function Window = Canvas(root, bg='#2e2e2e',highlightthickness=0) # a canvas for the main area of the window Title_bar = Frame(root, bg='#2e2e2e', relief='raised', bd=2,highlightthickness=0)Ĭlose_button = Button(title_bar, text='X', command= stroy,bg = "#2e2e2e",padx = 2,pady = 2,activebackground='red',bd = 0,font="bold",fg='white',highlightthickness=0) Root.overrideredirect(True) # turns off title bar, geometry These are the modifications that I have made using python 3.7.2 from tkinter import *
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |