예제 #1
0
    def __init__(self, parent=None):
        QtGui.QWidget.__init__(self, parent)
        self.ui = Ui_Dialog()
        self.ui.setupUi(self)

        palette2 = QtGui.QPalette()
        palette2.setBrush(self.backgroundRole(), QBrush(QImage("./pics/genback.png")))

        icon = QtGui.QIcon()
        b = QtGui.QPixmap("./pics/logo.png")
        icon.addPixmap(b)
        self.setWindowIcon(icon)

        self.setPalette(palette2)
        self.setStyleSheet('color: rgb(85, 0, 0);')
        self.ui.close.setStyleSheet('background-color: rgb(0, 147, 203); color: rgb(255, 255, 255);')
        

        b = QtGui.QPixmap("./pics/acadmin.png")
        self.ui.acadmin.setPixmap(QtGui.QPixmap(b))

        b = QtGui.QPixmap("./pics/shaastra.png")
        self.ui.shaastra.setPixmap(QtGui.QPixmap(b))

        QtCore.QObject.connect(self.ui.close, QtCore.SIGNAL("clicked()"), self.close)
예제 #2
0
 def about(self):
     widget = QDialog()
     ui = Ui_Dialog()
     ui.setupUi(widget)
     widget.setFixedSize(400, 78)
     widget.setWindowTitle('О программе')
     widget.setWindowIcon(QIcon('icon.jpg'))
     widget.exec_()
예제 #3
0
 def on_action_triggered(self):
     a = Ui_Dialog()
     d = QDialog()
     a.setupUi(d)
     d.exec()
예제 #4
0
 def __init__(self):
     super(SecondWindow, self).__init__()
     self.ui = Ui_Dialog()
     self.ui.setupUi(self)
예제 #5
0
 def thisProject(self):
     print "In thisProject"
     self.adminWindow1 = QtGui.QDialog()
     self.ui = Ui_Dialog()
     self.ui.setupUi(self.adminWindow1)
     self.adminWindow1.show()
예제 #6
0
파일: main.py 프로젝트: qdzhang/afu-kongfu
 def __init__(self):
     super(AboutDialog, self).__init__()
     self.ui = Ui_Dialog()
     self.ui.setupUi(self)
     self.setWindowTitle("关于")
예제 #7
0
파일: main.py 프로젝트: chengyijun/wyymusic
 def show_about_widget(self):
     self.ui_about = Ui_Dialog()
     self.about_win = QDialog()
     self.ui_about.setupUi(self.about_win)
     self.about_win.setWindowTitle('关于我们')
     self.about_win.show()
예제 #8
0
 def openAbout(self):
     self.aboutWindow = QtWidgets.QDialog()
     self.ui = Ui_Dialog()
     self.ui.setupUi(self.aboutWindow)
     self.aboutWindow.show()