From: Hidetoshi NAGAI Date: 2005-08-09T12:13:21+09:00 Subject: Re: Ruby/Tk core library desing question (TkCanvas#create) From: David Tran Subject: Ruby/Tk core library desing question (TkCanvas#create) Date: Tue, 9 Aug 2005 06:53:28 +0900 Message-ID: <91b08b8a050808145333ff26be@mail.gmail.com> > For TkCanvas#create method, it returns "1" seems useless ... > ( Does "1" means successful ? ) No. That is the identifier of the canvas item. TkCanvas#create method is used when you don't want to create a ruby object for a canvas item (for example, you worry about memory costs for many items). And then, to configure the item, you have to use the identifier (if you don't give canvas tags to the item). You shouldn't assume that the return value is a number. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)