Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tile

2 views
Skip to first unread message

Manfred Stelzhammer

unread,
Nov 25, 2005, 6:11:42 PM11/25/05
to
Hi

How can I change the background from a tile button with xpnative theme?

Regards
Manfred

Jeff Godfrey

unread,
Nov 25, 2005, 10:50:09 PM11/25/05
to

"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?

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


Kaitzschu

unread,
Nov 26, 2005, 5:18:41 AM11/26/05
to
On Sat, 26 Nov 2005, Jeff Godfrey wrote:

> "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

Manfred Stelzhammer

unread,
Nov 26, 2005, 6:59:23 AM11/26/05
to
Kaitzschu wrote:
> On Sat, 26 Nov 2005, Jeff Godfrey wrote:
>
>> "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.
>
The option -background doesn't work with tile 0.7

package require tile

::ttk::button .bu -text test
pack .bu

how can I change the background from the button to red??

Regards
Manfred

Jeff Godfrey

unread,
Nov 26, 2005, 9:39:25 AM11/26/05
to

"Manfred Stelzhammer" <stelz...@antispam.at> wrote in message
news:dm9imt$q6v$1...@newsreader1.utanet.at...


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


Manfred Stelzhammer

unread,
Nov 26, 2005, 10:24:42 AM11/26/05
to
Yes, you are right. I'll create a new style.
I read the docu, but I didn't understand, so I need an example.


Regards
Manfred

0 new messages