[Glade-users] ComboBoxEntry validation
- From: ashats at hotmail.com (Arthur Shats)
- Subject: [Glade-users] ComboBoxEntry validation
- Date: Mon, 8 Nov 2010 18:01:13 +0000
But my drop down list is built with gtk.ListStore and I use .set_model. Doesn't ListStore have any methods
that would help in validation? I found this on the web:
"The tree models derived from gtk.GenericTreeModel are protected from problems with out of date gtk.TreeIter
objects because gtk.TreeIter objects are automatically checked for validity with the tree model."
But I don't know how to make use of it. Whould this help in validation comboBoxEntry entries agains the drop
down list?
Thanks,
Arthur.
Date: Sat, 6 Nov 2010 11:57:17 +0900
Subject: Re: [Glade-users] ComboBoxEntry validation
From: tristan.van.berkom at gmail.com
To: ashats at hotmail.com
CC: glade-users at lists.ximian.com
You need to catch the signal fired when the user types the ENTER key
("activate" I believe) and do the check yourself.
Cheers,
-Tristan
On Sat, Nov 6, 2010 at 1:58 AM, Arthur Shats <ashats at hotmail.com> wrote:
For comboBoxEntry fields that have a drop down list, is there a built-in
functionality to validate the input against the drop down list (so only
items from the list could be typed in) or I have to write my own validation
check. I don't want to use comboBox instead of comboBoxEntry because I want
the user to be able to start typing and then use EntryCompletion.
Thanks much,
Arthur.
_______________________________________________
Glade-users maillist - Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20101108/92a76059/attachment-0001.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]