Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:40:08+00:00 2026-06-08T09:40:08+00:00

Is there a way in Tkinter that I can edit the title bar and

  • 0

Is there a way in Tkinter that I can edit the title bar and options such as background colors, foreground colors, title bar size. Here is my code for a class I am working on and I was looking for ways to make the title bar match the frame.

#CreateFile
from Tkinter import *

class CreateFile(Tk):
    def __init__(self, model):
        self.model=model
        myfont = ("Arial", 11, "bold")
        Tk.__init__(self)
        self.title('Create New File')
        
        self.resizable(0,0)
        frame = Frame(self,bg='black')
        self.lbl=Label(frame,text='Name: ',bg='black',fg='yellow')
        self.lbl.grid(row=0,column=0)
        self.file_entry=Entry(frame,width=30,font=myfont,bg='black',fg='yellow')
        self.file_entry.bind('<Control-a>',self.select_all)
        self.file_entry.grid(row=0,column=1)
        self.create_btn=Button(frame,text='Create',bg='black',fg='yellow')
        self.create_btn.grid(row=0,column=2,padx=10)    
        frame.grid()
        self.mainloop()
    
    def select_all(self,event):
        print 'd'
        
model=None
createFile = CreateFile(model)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:40:10+00:00Added an answer on June 8, 2026 at 9:40 am

    No, you can’t modify the attributes title bar.

    Your only option is to turn off the titlebar completely (using self.wm_overrideredirect(True)) and then creating your own titlebar. This will require that you add your own bindings for moving and resizing the window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to make the Tkinter Entry widget so that text can
Is there way that I can read the file from remote server using fopen
Is there any way to integrate IDLE into a Tkinter program as a widget?
I'm using Tkinter, and I'm wondering if there is a way to define one
I was wondering if there was a way to make tkinter more aesthetically pleasing.
I'm wondering how to call an external program in such a way that allows
Is there way to set an event on an InfoWindow that will notify me
is there way thats i can preselect an item when the page loads or
Is there any way to bind to all the number keys in Tkinter? It
Is there way to get file from windows xp command prompt? I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.