Re: EuGTK - fonts
- Posted by Jerry_Story Sep 29, 2010
- 1374 views
set(txtFilter1,"font",fonts[TEXT]) -- no property named 'font' set(txtFilter1,"font_name",fonts[TEXT]) -- no property named 'font_name' set(txtFilter1,"font name",fonts[TEXT]) -- no property named 'font name'
How do you do it?
Depends - what is txtFilter1? If it is indeed some kind of filter, i.e. GtkTreeModelFilter ,GtkRecentFilter, or GtkFileFilter - it doesn't have a font, and in fact, isn't ever visible. It just selects items to be displayed, e.g. all *.jpg files in "recent files", or all text files, etc.
txtFilter1 = create(GtkLabel)
The reason why it's called a filter is the user types something in it and the list of foods is filtered by it. For example the user types "al" and all the food names must start with "al".
ALMONDS,DRY RSTD,W/SALT
ALMONDS,DRY RSTD,WO/SALT
ALMONDS,BLANCHED
ALMONDS,OIL RSTD,W/SALT
ALMONDS,OIL RSTD,WO/SALT
ALMONDS
ALMONDS,HONEY RSTD,UNBLANCHED
ALMOND BUTTER,PLN,WO/SALT
ALMOND BUTTER,PLN,W/SALT
ALMOND PASTE
ALFALFA SEEDS,SPROUTED,RAW