当前位置:天才代写 > tutorial > Python教程 > python web小工具

python web小工具

2018-05-17 08:00 星期四 所属: Python教程 浏览:287

python"># -*- coding: utf-8 -*-
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from modules.UrlGet import UrlGet
from modules.SameSite import SameSite
import resource.resources

class Main_Window(QMainWindow):
    def __init__(self,parent=None):
        super(Main_Window,self).__init__(parent)

        self.tabWidget=QTabWidget()
        self.setCentralWidget(self.tabWidget)

        self.urlget=UrlGet()
        self.tabWidget.addTab(self.urlget, QString(u"爬网页"))
        self.tabWidget.setCurrentWidget(self.urlget)

        self.samesite=SameSite()
        self.tabWidget.addTab(self.samesite,QString(u"同站查询"))

        self.setWindowTitle(u"综合工具")
        self.setWindowIcon(QIcon(":/images/main.png"))
        backImg = QPixmap(":/images/background").scaled(self.size())
        self.palette = QPalette()
        self.palette.setBrush(self.backgroundRole(), QBrush(backImg))
        self.setPalette(self.palette)

        self.setGeometry(300,100,600,500)

if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    form = Main_Window()
    form.show()
    sys.exit(app.exec_())

标签:python

 

    关键字:

天才代写-代写联系方式