From: Gary Watson Date: 2005-12-04T01:02:45+09:00 Subject: Re: what to do, what to do.. Joe Van Dyk wrote: > On 11/29/05, ara.t.howard@noaa.gov wrote: > >>On Tue, 29 Nov 2005, Dirk Meijer wrote: >> >> >>>i'd like people to use the programs i create, the average windows user will >>>not like using a console... anyway, i really like programming, but i'm >>>still in highschool, and i never now what to program next. i just think >>>that gui's would give me more options.. anyway, it looks to me like tk is >>>still the best gui to learn, any really good tutorials out there? (i once >>>found one written especially Ruby, but it asumed you already had tk >>>knowledge, so that didn't work...) >>> >>>greetings, Dirk >> >>tk is indeed the most easily learned gui for ruby. if really are intent on >>coding gui apps try something simple and post your questions here - i would >>imagine you'll be up and running after stumbling over a few hurdles. > > > Personally, I had a lot easier time learning ruby-gnome2. The > documentation is a lot better, and I could use the standard gtk2 docs > as well. I never quite got the hang of Tk. > > when I was learning ruby/tk, I used three sources that worked well for me. The first was a book called "Ruby Developer's Guide". It had a nice chapter on GUI development and covered TK with a little more depth than in the PickAxe. This was enough to get me going. The next source I used was a ruby/tk reference which can be found on the Ruby Application Archive which is a translation of the Japanese Ruby/TK Reference. This Reference is far from perfect, but it's enough to allow you to do most things. The last place I was able to find good information was from reading the ruby/tk demos. These can be a bit tricky to find as the original maintainer seems to have removed them from his site. However the windows one click installer comes with this example code, as well as some extra example code which was really useful. In particular the One click installers demo code comes with an example of how to construct a TK menubar that allows you to use ALT- combinations correctly. here's a link to the rubytk_en ref on the RAA http://raa.ruby-lang.org/project/rubytk_en/ I hope this information helps.