Re: Problems with Gtk::Text and set_pointer and Text widget questions
- From: Stephen Wilhelm <swilhelm theriver com>
- To: Mikko Lipasti <mikko lipsti mo mailnet fi>
- Cc: <gtk-perl-list gnome org>
- Subject: Re: Problems with Gtk::Text and set_pointer and Text widget questions
- Date: Fri, 17 Aug 2001 00:02:16 -0700 (MST)
On Tue, 14 Aug 2001, Mikko Lipasti wrote:
Hi everyone,
Am I just plain blind or is there something magic to this, but why don't
I see $text declared (my)? Forgetting that would produce the
'uninitialized value' error message. Perhaps you should s/widget/text/g;
(or vice versa) and try again?
I suspect that $text is a global variable, which is acceptable programming
practice in very small programs, such as my tutorials examples. :)
Of course, I'm just guessing.
mblanc erasme org wrote:
"Use of uninitialized value in subroutine entry at test2.pl line 143"
sub button_press {
my ($widget, $event) = @_;
my $len = $text->get_length()-1;
# $text->set_point($len);
# $text->set_point($text->get_point());
# $text->set_point(3);
}
--
Mikko Lipasti
mikko lipasti mo mailnet fi
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
--
Stephen Wilhelm
See my Gtk-Perl Tutorial:
http://personal.riverusers.com/~swilhelm/gtkperl-tutorial/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]