Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Window background

Window background

Window background

I'm writing a module generator in TCL / TK and I'm fighting hard with the language I'm new to.
Among other things I would like to impose a color on the background.
My application use the grid for insert the widgets:

	grid [ttk::frame .fg -padding "3 3 12 12" -relief ridge] -column 0 -row 0 -sticky nwes	
	grid columnconfigure . 0 -weight 1; grid rowconfigure . 0 -weight 1
	grid [ttk::entry .fg.$name -width $length] -column 2 -row $row -sticky w
why ttk::frame can't accept -background color while frame accepts it?

John Rossati

RE: Window background

They are two separate variants that do the same thing. It is like iostream and cstdio in C++. It is not advisable to mix and match. Either keep to ttk widgets or tk widgets. Note that when you do internet searches, both examples will appear.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close