What are the complete list of tkroot options (title, minsize. resizable
etc). How do I set the background/foreground color of the root window?
Thanks in advance,
Joe
···
--
Posted via http://www.ruby-forum.com/.
What are the complete list of tkroot options (title, minsize. resizable
etc). How do I set the background/foreground color of the root window?
Thanks in advance,
Joe
--
Posted via http://www.ruby-forum.com/.
What are the complete list of tkroot options (title, minsize. resizable
etc). How do I set the background/foreground color of the root window?Thanks in advance,
consider using pry to inspect the methods available on tkroot.
Andrew McElroy
tryruby.org
On Sat, Sep 17, 2011 at 6:50 PM, Joe Collins <joec_49@hotmail.com> wrote:
Joe
--
Posted via http://www.ruby-forum.com/\.
I know these options....
root=TkRoot.new {
title "StocksQuote";\
minsize(200,250);\
maxsize(200,250);\
geometry('200x250');\
resizable(0,0)}
#root.withdraw
Are there others, namely to set the color of the root window?
Joe
--
Posted via http://www.ruby-forum.com/.
Look also at roow.withdraw which is comment out here. there must be
other options also, i.e. configure as one example
Joe
--
Posted via http://www.ruby-forum.com/.
Message-ID: <472b3e92822f1746f7af293d22a9af49@ruby-forum.com>
What are the complete list of tkroot options (title, minsize. resizable
etc). How do I set the background/foreground color of the root window?
See the keys of the result of "Tk.root.current_configinfo".
Some of the options are Tcl/Tk's wm subcommands (which is the methods
of Tk::Wm module). There is a trick to treat such methods as options
of toplevel widgets. If you are interested in it, please check how to
use "__methodcall_optkeys" method on the sources of Ruby/Tk.
From: Joe Collins <joec_49@hotmail.com>
Subject: tkroot options
Date: Sun, 18 Sep 2011 08:50:55 +0900
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
Department of Artificial Intelligence, Kyushu Institute of Technology