pygtk - How to create a Gtk combobox with the interface new_with_area? -


according gtk documentation can create combobox with:

gtkwidget * gtk_combo_box_new () gtkwidget * gtk_combo_box_new_with_entry () gtkwidget * gtk_combo_box_new_with_model () gtkwidget * gtk_combo_box_new_with_model_and_entry () gtkwidget * gtk_combo_box_new_with_area () gtkwidget * gtk_combo_box_new_with_area_and_entry () 

i have found lot of examples gtk_combo_box_new_with_model can't find related use of gtk_combo_box_new_with_area .

the langage used doesn't matter.

something (pygobject):

from gi.repository import gtk area = gtk.cellareabox() combo = gtk.combobox.new_with_area(area=area) cell = gtk.cellrenderertext() area.pack_start(cell, true, true, true) 

you can add more cellrenderers box (which gtk.box) , whatever need those.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -