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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

Entity Framework - The property cannot be configured as a navigation property -