Getting a value from a Gtk2::ComboBoxEntry
- From: Daniel Flemming <danflemming mac com>
- To: gtk-perl-list gnome org
- Subject: Getting a value from a Gtk2::ComboBoxEntry
- Date: Tue, 12 Oct 2004 12:43:56 -0700
The Gtk2::ComboBoxEntry widget is just like a Gtk2::ComboBox, except it allows the user to type in a blank
space like a Gtk2::Entry.
If the user doesn't type in that space, but just selects from the dropdown list, you can read the
Gtk2::ComboBoxEntry the same you can a Gtk2::ComboBox, by using the get_active method.
However, if the user does type, get_active just returns a -1. How do you find out what the text the user
typed was? You can't just use a get_text method like you can with a Gtk2::Entry, and while the
Gtk2::ComboBoxEntry widget is a container, it doesn't seem to have any children set up by default.
Anyway. I'm just asking :)
Dan Flemming
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]