def __init__(self):
QWidget.__init__(self)
self.setMinimumSize(1000,500)
self.html = QWebView()
vbox=QVBoxLayout()
toolbar=QToolBar()
toolbar.setIconSize(QSize(48, 48))
back = QAction(QIcon_load("go-previous.png"), _("back"), self)
back.triggered.connect(self.html.back)
toolbar.addAction(back)
home = QAction(QIcon_load("user-home.png"), _("home"), self)
home.triggered.connect(self.home)
toolbar.addAction(home)
self.tb_url=QLineEdit()
self.tb_url.returnPressed.connect(self.browse)
toolbar.addWidget(self.tb_url)
vbox.addWidget(toolbar)
self.default_url = "http://www.gpvdm.com/welcome.html"
self.tb_url.setText(self.default_url)
self.browse()
vbox.addWidget(self.html)
self.setLayout(vbox)
return
评论列表
文章目录