How can I change the background from a tile button with xpnative theme?
Regards
Manfred
Hmmmm... I'm not sure I understand. So, you want to change *from* a
Tile-based button to... a standard Tk button? Or, do you have a
standard Tk button that you want to change to a Tile-based button?
Either way, does this help?
package require tile
ttk::button .b1 -text "My Tile Button"
button .b2 -text "My Tk Button"
pack .b1 .b2
Jeff
> "Manfred Stelzhammer" <stelz...@antispam.at> wrote in message
> news:dm85ne$4hm$1...@newsreader1.utanet.at...
>> Hi
>> How can I change the background from a tile button with xpnative theme?
>
> Hmmmm... I'm not sure I understand. So, you want to change *from* a
> Tile-based button to... a standard Tk button? Or, do you have a
> standard Tk button that you want to change to a Tile-based button?
I'd say OP wants both, [::ttk::button] configure -background
That won't be a snap.
--
-Kaitzschu
s="TCL ";while true;do echo -en "\r$s";s=${s:1:${#s}}${s:0:1};sleep .1;done
package require tile
::ttk::button .bu -text test
pack .bu
how can I change the background from the button to red??
Regards
Manfred
Ahhhh... I misunderstood the original request. I think you're likely
to get several different responses here. The first, likely, may be
"don't do that". That is, Tile was created specifically to give you
widgets with the *real* look and feel of the target WM. Changing the
widgets to have non-standard anything (including backgrounds) isn't
really what Tile's all about.
That being said, what you want can be done with Tile, just not in the
manner you might think. While I can't give you the specifics (because
I don't do it), I believe you'll have to create a new "style" (I think
that's the proper term) for your red button. Perhaps Joe or someone
more in the know will respond soon.
Jeff
Regards
Manfred