Is there a way to set a background img or color to your root window? I would like to use a img or color to give my app a desktop like feel. Is it possible, or is this something tk is lacking?
Tyler Mace
Is there a way to set a background img or color to your root window? I would like to use a img or color to give my app a desktop like feel. Is it possible, or is this something tk is lacking?
Tyler Mace
Hi,
From: kryptik@usa.com
Subject: Ruby/Tk :: Root window backgrounds?
Date: Sun, 9 Mar 2003 17:57:02 +0900
Message-ID: 20030309085657.60426.qmail@mail.com
Is there a way to set a background img or color to your root window?
I would like to use a img or color to give my app a desktop like feel.
Is it possible, or is this something tk is lacking?
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Hmm. That doesn’t seem like a very good idea. First of all, to the
extent that this trick works it is incidental, undocumented behavior
of the current implementation, thus subject to change without notice.
And I’m surprised that it would work at all. I’m fairly new to Ruby,
but have done a lot of Tcl/Tk and Tkinter (Python) work, and in those
languages if you use two geometry managers on the same widget it will
at least freeze up your application, and sometimes your whole
desktop. Maybe Ruby handles geometry manager conflicts more
gracefully.
In any case, I think there’s another way to do this.
How well this technique works may depend on how well-behaved your
window manager is, but at least it relies on documented, intentional
features of Tk.
On 11 Mar 2003 at 13:46, nagai@ai.kyutech.ac.jp wrote:
From: kryptik@usa.com
Is there a way to set a background img or color to your root window?
I would like to use a img or color to give my app a desktop like feel.
Is it possible, or is this something tk is lacking?Well, maybe need a little tricky way.
The way is to use two geometry manager on same widget.
–
Matt Gushee
Englewood, CO, USA
Hi,
From: mgushee@havenrock.com
Subject: Re: Ruby/Tk :: Root window backgrounds?
Date: Tue, 11 Mar 2003 14:40:10 +0900
Message-ID: 3E6D1447.19436.13F4223@localhost
And I’m surprised that it would work at all. I’m fairly new to Ruby,
but have done a lot of Tcl/Tk and Tkinter (Python) work, and in those
languages if you use two geometry managers on the same widget it will
at least freeze up your application, and sometimes your whole
desktop. Maybe Ruby handles geometry manager conflicts more
gracefully.
I’m sorry but I’ve had no experiment of freezing.
Ruby/Tk calls Tcl/Tk interpreter. If your Tcl/Tk freezes on your
environment, Ruby/Tk freezes too.
BTW, I’ve forgotten the simple and better way.