From: Joshua K. <jos...@li...> - 2002-12-05 17:49:44
|
<snip> > You should call Gtk::Notebook#set_page(num) after Gtk::Window was showed. > > window.show_all > notebook.set_page( 3 ) #After window.show_all. > Gtk.main > That seems odd to me. I understod #show to mean that you were completely done with the widget, and that GTK can now display it, but you want to set it active, you are obviously not done with the widget yet. Am I incorrect in my understanding? > > BTW, > Your tutorial is so cool! > Everyone who try Ruby/GTK2 should read your tutorial at first. > Thank you. :) I hope it helps a lot of people. > But I think your codes as follows are strange. > > window.border_width=( 10 ) > window.title=( "Notebook Example" ) > > IMO, bellow codes are more natural. > > window.border_width = 10 > window.title = "Notebook Example" > > or > > window.set_border_width(10) > window.set_title("Notebook Example") > I may change it to this. I come from a procedural background, and I find that I miss my () and ;, o I add them in Ruby whenever I can. I'm also a lazy typer, so I use the shorter methods. If you think it will be a source of confussion, I will change it in he tutorial. > > And now, I try to implement Gtk::Itemfactory again. > The APIs will be changed. > So please wait to write tutorial for a moment. > Will do. I hope to get chapter 11 done today, and to finish up some misc items in previous chapters. As usual, I will upload the changes tonight. Thanks, Joshua Keith -- ______________________________________________ http://www.linuxmail.org/ Now with POP3/IMAP access for only US$19.95/yr Powered by Outblaze |