我用 ComboBox 制作了一个用户界面。我正在使用 glade 所以我在运行时执行以下操作
combo_box.set_model(liststore)
cell = gtk.CellRendererText()
combo_box.pack_start(cell,False)
combo_box.add_attribute(cell,'text',0)
当我点击 ComboBox 时,cellrenderer 占据了屏幕的所有垂直空间。但是,如果我限制 liststore 中的项目数,并且 cellrenderer 不需要滚动,问题就会消失。
这是问题的图片:
怎么了?
感谢您的时间。