English 中文(简体)
Can 在Glade没有孩子的情况下,我是个roll子吗?
原标题:Can I make a scrolledwindow in Glade without a child?

我有一个滚动窗口,作为Glade设计的申请一号。 我不想在Glade制造儿童物品,但我想直接制造这个物品,并在法典中添加。

在我试图这样做的时候,我取得了一个令人不快的结果,整个滚动窗口只是空白。

“entergraph

在此,我添加了一View树,但如果我增加一句话,或大概是其他内容,就会出现同样的情况。 你可以看到双方的bar锁,因此,我敢肯定会增加一row。

这里,我想在Glade增加一 Tree树。

“entergraph

这里没有任何东西,因为我没有给它增加任何东西,而是像你所期望的那样。 空白窗口。

是否有人把Im失踪,以便我只能让它失去孩子吗?

最佳回答

我发现,如果在我添加一名儿童之前,我打电话scrolledwindow.hide()。 类似情况

self.scrolled_window = builder.get_object( scrolledwindow1 )
self.scrolled_window.hide()
tv = gtk.TreeView()
self.scrolled_window.add(tv)
self.scrolled_window.show_all()

工作。

问题回答

暂无回答




相关问题
Pointers in Lisp?

I ve started learning Lisp recently and wanted to write a program which uses gtk interface. I ve installed lambda-gtk bindings (on CMUCL). I want to have putpixel/getpixel ability on a pixbuf. But I ...

In Gtk, how do I make a Button with just a stock icon?

I want to create a button with the stock "Remove" icon on it, but without the text "Remove". If I use Button button = new Button(Stock.Remove);, I get the opposite: just the text, and no icon. I will ...

Using GtkMenu in Gtk+-2.14.0

I am building an application which has GtkMenu widget. I am using Glade RAD tool to develop UI and while creating project in Glade I have specified version of GTK as 2.16 which supports GtkMenu and ...

Can you set the FileFilters for a Gtk Dialog in Glade?

In my code, I have lines like this: Builder builder = new Builder(); builder.AddFromFile(gladefile); FileChooserDialog dialog = (FileChooserDialog) builder.GetObject("dialog"); FileFilter[] ...

热门标签