Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window background

Status
Not open for further replies.

bellecombe

Instructor
Oct 15, 2003
7
IT
Hi
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:

[pre] 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
...

[/pre]
why ttk::frame can't accept -background color while frame accepts it?

Thanks
John Rossati

 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top