【发布时间】:2016-02-28 15:07:02
【问题描述】:
我正在为 ubuntu 做一个小型 RSS 新闻应用程序。我使用
创建了一个笔记本notebook=gtk.Notebook()
win.add(notebook)
label1=gtk.Label()
label1.set_text("one")
notebook.append_page(label1,label1)
我有这个带有 hbox、vbox 和滚动条的 codee。
box1=gtk.VBox()
win.add(box1)
box2=gtk.HBox()
box1.pack_start(box2)
addressbar=gtk.Entry()
box2.pack_start(addressbar)
gobutton=gtk.Button("GO")
box2.pack_start(gobutton)
gobutton.connect('clicked',gob)
scroller=gtk.ScrolledWindow()
box1.pack_start(scroller)
web=webkit.WebView()
scroller.add(web)
如何在第一个代码中将第二个代码添加到笔记本选项卡中?
【问题讨论】: