> How might I name a block and then use it the widget.bind and > widget.DoWhenIdle, i.e. > > aProc = proc{|e| aCallback(e)} > <more> > widget.bind('Key-Up') &aProc > <more> > widget.DoWhenIdle(&aProc) > <more> > widget.idleTasks > > I have tried several variations, but can't get past the > widget.bind. I must have a really wrong model of this in my > head. widget.bind('Key-Up') { |e| aCallback(e) } doing it with aProc is a bit cumbersome: aProc = proc { aCallback(e) } widget.bind('Key-Up') { |e| aProc.call(e) } PS: what's with idle? idle means doing nothing, yet you seem to let the widget do something... +--- Kero ------------------------------ kero / chello.nl ---+ | Don't split your mentality without thinking twice | | Proud like a God -- Guano Apes | +--- M38c ------- http://members.chello.nl/~k.vangelder ---+