Re: How to set a Gtk::Adjustment?



On 03/21/01 ws wrote:
Is there a better idea to set a Gtk::Adjustment then edit the
Glade-generated ApplicUI.pm file and the use of a global value
($::modDbSeqAnaAdj=...) ?
See snipped:

#Part of applicUI.pm (THIS FILE WILL BE OVERWRITTEN BY THE NEXT RUN OF
Glade::PerlGenerate):
                       # Construct a GtkHScale 'newDbSeqAnaScale'
     $::modDbSeqAnaAdj=$work->{'newDbSeqAnaScale-adj'} = new
Gtk::Adjustment(3, 1, 8, 1, 0, 0 );
                       $widgets->{'newDbSeqAnaScale'} = new
Gtk::HScale($work->{'newDbSeqAnaScale-adj'} );

#Application sets a new value:
     $::modDbSeqAnaAdj->set_value(8);

There should be a way to retreive a widget by name: look
in the FAQ at http://www.glade.perl.connectfree.co.uk/FAQ
the  "How do I access widgets to set or get their data/text?"
question for examples.

lupus

-- 
-----------------------------------------------------------------
lupus debian org                                     debian/rules
lupus ximian com                             Monkeys do it better




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]