Gapp::Gtk2::OComboBox - A ComboBox to use with objects
use Gapp::Gtk2::OComboBox; $combo = Gapp::Gtk2::OComboBox->new; $model = $combo->get_model; $model->set($model->append, 0 => $object); $combo->set_value($object); $object = $combo->get_value;
Glib::Object +----Gtk2::ComboBox +----Gapp::Gtk2::OComboBox
Gapp::Gtk2::OComboBox allows you to display and select objects.
Returns an $iter pointing to the location of the object in the model. Returns undef if the object is not in the model.
Returns the function used to determine if
Returns the currently selected object.
Sets the currently selectd objected. You may pass undef for no selection.
The object is selected, being added to the model first if necessary.
Jeffrey Ray Hallock, <jhallock.hallock at gmail dot com>
1;
To install Gapp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp
CPAN shell
perl -MCPAN -e shell install Gapp
For more information on module installation, please visit the detailed CPAN module installation guide.