1

My Code:

from tkinter import *
import tkinter as tk
root=Tk()
root.title("Program")
root.geometry('500x300')
root.mainloop()

My Window

This is my window and I want to add new button like here: enter image description here

Thanks for help!

j_4321
  • 15,431
  • 3
  • 34
  • 61
Block
  • 159
  • 1
  • 6
  • 1
    If you want to edit the title bar, the way you want with Tkinter, you will have to turn off the title bar and rebuild all those methods from scratch. [Refer this question](https://stackoverflow.com/questions/23836000/can-i-change-the-title-bar-in-tkinter) – Kartikeya Sep 08 '21 at 09:26
  • Thanks for this comment! – Block Sep 08 '21 at 11:34

1 Answers1

2

Actually, You can't add a button to the title bar in Tkinter. if you want to do that you have to build your own title bar using Tkinter widgets.