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 4617158
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:05:06+00:00 2026-05-22T02:05:06+00:00

I know that Tkinter is just a thin layer over Tcl/Tk. Tkinter you can

  • 0

I know that Tkinter is just a thin layer over Tcl/Tk. Tkinter you can do a few things to change the windows styling. One example would be root.attributes('-toolwindow', True). This would change the window style, to that of a tool window. However, I’m looking to go a little bit lower level.

I suspect at some point Tcl/Tk refrences Windows window styles. I’m pretty sure it would have to do this in order to set the window style and by extension the Tkinter window styling. I’m trying to give a Tkinter window what I’m pretty sure is the WS_DLGFRAME style. However, I’m unsure how to approach this.

I’m wondering where in the Tcl/Tk part of Tkinter does it assign windows styles, and what I’d have to add to get this style.

The end goal is to get a Tkinter window border style that looks like the one below (note how it lacks an exit button):

enter image description here

This is in Windows 7, BTW.

  • 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-05-22T02:05:07+00:00Added an answer on May 22, 2026 at 2:05 am

    If you are familiar with C, download Tk source code.

    I’ve looked quickly, and in this file:
    ./win/tkWinWm.c at line 3072 (tk859-src.zip), you have the function static int WmAttributesCmd(), dealing with -toolwindow as you’ve said, later updated by UpdateWrapper().

    So no easy way to change it, unless you change Tk source code.

    Alternatively you might be able to use FindWindow and look for Tk’s window class TK_WIN_CHILD_CLASS_NAME defined to be TkChild, and then use SetWindowLongPtr( GWLP_STYLE, ...) to change the style (but this requires some ffi call to C or other means).

    I myself I’m not familiar with neither Tcl/Tk, so take it with a grain of salt. Why not try the Tcl/Tk community?

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

Sidebar

Related Questions

I know that I can do something like $int = (int)99; //(int) has a
I know that you can insert multiple rows at once, is there a way
I know that the MsNLB can be configured to user mulitcast with IGMP. However,
I know that just using rand() is predictable, if you know what you're doing,
It's likely that this is just a general Python Tkinter question, not necessarily a
I know that you can use exclamation sign to bind array of simple types
I know that lambda expressions within loops can cause problems if they use local
I know that we can bind the data to each control within ItemTemplate as
I know that the UIMenuController can show a popover containing Cut, Copy, Paste, Select/All,
I know that I can use RaiseEvent to raise an event, like raise a

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.