Re: How to set a Gtk::Adjustment?
- From: Paolo Molaro <lupus ximian com>
- To: "gtk-perl-list gnome org" <gtk-perl-list gnome org>
- Subject: Re: How to set a Gtk::Adjustment?
- Date: Thu, 22 Mar 2001 19:08:36 +0100
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]