This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

TK: button background

Help for those learning Tcl or writing their own scripts.
Post Reply
r
raider2k
Op
Posts: 140
Joined: Tue Jan 01, 2008 10:42 am

TK: button background

Post by raider2k »

hi, its me again with a tk question again

i have

Code: Select all

grid [ttk::button .tabprev.bclose -text "test" -command { destroy .tabprev }]
.tabprev.bclose configure -background black
as well as

Code: Select all

grid [ttk::button .tabprev.bclose -text "test" -command { destroy .tabprev } -background black]
but none of them works, both report "unknown option -background", also tried with -bg. also have i tried to do

Code: Select all

ttk:style configure sbclose -background black
grid [ttk::button .tabprev.bclose -text "test" -command { destroy .tabprev } -style sbclose]
and

Code: Select all

ttk:style configure sbclose -background black
grid [ttk::button .tabprev.bclose -text "test" -command { destroy .tabprev }]
.tabprev.bclose configure -style sbclose
which both reject with "layout sbclose not found".
need some decent help on that one as buttons with their raised relief (not to be disabled it seems :/) and/or border dont fit in the application.

help appreciated :)
Post Reply