From: John Maclean Date: 2006-01-25T11:38:57+09:00 Subject: Re: ruby and Tk:- Menu's calling other widgets Thank you Chaps, I've managed to get it going with proc{load 'fo.rb'}. I know that it may be "bad practice" but I'd like to cut my teeth into a certain project. On Wed, 25 Jan 2006 11:16:34 +0900 Hidetoshi NAGAI wrote: > From: John Maclean > Subject: ruby and Tk:- Menu's calling other widgets > Date: Wed, 25 Jan 2006 03:13:34 +0900 > Message-ID: <20060125181233.5f308f41@localhost.localdomain> > > that I can call another file. The idea is to have each type of > > widget organised into many smaller files. > > > > It the proc{require 'another_widget'} way possible or recommended? > > It must be possible, but I don't recommend it. > If your each type of widget is a class, > 'autoload' may be a good solution. > Please see some libraries in '/tkextlib/' directory > (e.g. 'tkextlib/iwidgets.rb' and files in 'textlib/iwidgets/'). -- John Maclean MSc (DIC) 07739 171 531