Re: EuGTK - fonts
- Posted by Jerry_Story Sep 29, 2010
- 1307 views
set(mylabel,"modify font","Courier 12")
I can't remember all these things either, but try changing to the directory with the EuGTK demos, and typing grep font * In most cases, something like that will pull up several instances to look at.
Thanks for the tip. That works very well.
BTW, I am not at all sure a label is the correct thing to use display a lot of items. Suppose the user types A - he's going to get a very long list, and labels are for short things. You'll find the label extends off the bottom of the screen, and there's no way to see the bottom part.
The label (or text or whatever) is used to filter the list. The food names are shown in the ListView. That scrolls.
The foods list has a bunch of filters. Unfiltered, it has 7500+ foods. That's 7.5 thousand foods. To cut down on the number of foods in the list, there are a bunch of what I call 'filters'.
Raw only, checked or unchecked
No salt, checked or unchecked
No dried, checked or unchecked
Favorites only, checked or unchecked - foods marked with '*', saved in favorite_foods.ini
Reject rejected foods, checked or unchecked - foods marked with '#', saved in rejected_foods.ini
Food groups, each checked or unchecked
txtFilter1 - must start with this string
txtFilter2 - must include this string
txtFilter3 - must exclude this string
chkLimit, checked or unchecked - limits the list to 300