Python PyQt4.QtCore.Qt 模块,black() 实例源码

我们从Python开源项目中,提取了以下6个代码示例,用于说明如何使用PyQt4.QtCore.Qt.black()

项目:SOLAMS    作者:aishmittal    | 项目源码 | 文件源码
def __init__(self): 
        self.qt = QTabWidget()
        self.qt.setGeometry(window_x, window_y, window_width, window_height)
        self.pal=QPalette()
        self.pal.setColor(QPalette.Background,Qt.white)
        self.pal.setColor(QPalette.Foreground,Qt.black)
        self.qt.setPalette(self.pal)

        self.tab1 = QWidget()
        self.DetailsTab=AddDetailsTab(self.tab1)
        self.qt.addTab(self.DetailsTab,"Create User")

        self.tab2 = QWidget()
        self.DatasetTab=GenerateDatasetTab(self.tab2)
        self.qt.addTab(self.DatasetTab,"Generate Face Dataset"),self.qt.show()
        self.qt.setStyleSheet("#gframe {border-radius:5px;border:1px solid #a5a5a5}")
        #self.qt.setStyleSheet("#darkframe {border-radius:5px;border:2px solid #a5a5a5}")
项目:SOLAMS    作者:aishmittal    | 项目源码 | 文件源码
def __init__(self): 
        self.qt = QTabWidget()
        geom = QDesktopWidget().availableGeometry()
        self.qt.setGeometry(geom)
        #self.qt.setGeometry(window_x, window_y, window_width, window_height)
        self.pal=QPalette()
        self.pal.setColor(QPalette.Background,Qt.white)
        self.pal.setColor(QPalette.Foreground,Qt.black)
        self.qt.setPalette(self.pal)

        self.tab1 = QWidget()
        self.LectureTab=LectureTab(self.tab1)
        self.qt.addTab(self.LectureTab,"Leture")

        self.tab2 = QWidget()
        self.RecordsTab=RecordsTab(self.tab2)
        self.qt.addTab(self.RecordsTab,"Attendance Records")
        self.qt.setStyleSheet("""
        #box-border {
            border-style : solid;
            border-color : #BFC9CA;
            border-width : 2px;
            border-radius: 5px;


            }
        """)

        self.qt.setMouseTracking(True)
        #self.qt.showFullScreen()
        self.qt.show()
项目:py2DIC    作者:Geod-Geom    | 项目源码 | 文件源码
def __init__(self, pixmap=None, parent=None, scene=None, width_scale_ratio=1, height_scale_ratio=1):
        super(ImageDrawPanel, self).__init__()
        self.cont = 0
        self.x, self.y = -1, -1
        self.radius = 10

        self.pen = QPen(Qt.SolidLine)
        self.pen.setColor(Qt.black)
        self.pen.setWidth(2)

        self.brush = QBrush(Qt.yellow)
        self.width_scale_ratio = width_scale_ratio
        self.height_scale_ratio = height_scale_ratio

        self.rect = np.zeros((2,2))
项目:rexploit    作者:DaniLabs    | 项目源码 | 文件源码
def removeExploitSuccess(self, exploit):
        self.__exploitsSuccess.remove(exploit)
        root = self.treeWidget.invisibleRootItem()
        for i in range(root.childCount()):
            item = root.child(i)
            if item.text(0) == exploit.name:
                item.setForeground(0, QBrush(QColor(Qt.black)))
项目:Smart-Mirror    作者:aishmittal    | 项目源码 | 文件源码
def __init__(self): 
        self.qt = QTabWidget()
        self.qt.setGeometry(window_x, window_y, window_width, window_height)
        self.pal=QPalette()
        self.pal.setColor(QPalette.Background,Qt.white)
        self.pal.setColor(QPalette.Foreground,Qt.black)
        self.qt.setPalette(self.pal)

        self.tab1 = QWidget()
        self.DetailsTab=AddDetailsTab(self.tab1)
        self.qt.addTab(self.DetailsTab,"Create User")

        self.tab2 = QWidget()
        self.DatasetTab=GenerateDatasetTab(self.tab2)
        self.qt.addTab(self.DatasetTab,"Generate Face Dataset")

        self.tab3 = QWidget()
        self.StockTab=AddStocksTab(self.tab3)
        self.qt.addTab(self.StockTab,"Add Stocks")

        self.tab4 = QWidget()
        self.EventsTab=AddEventsTab(self.tab3)
        self.qt.addTab(self.EventsTab,"Create Event")

        self.qt.show()
        self.qt.setStyleSheet("#gframe {border-radius:5px;border:1px solid #a5a5a5}")
项目:spyking-circus    作者:spyking-circus    | 项目源码 | 文件源码
def run(self):
        if self.ui.cb_batch.isChecked():
            self.last_log_file = None
        else:
            if self.params is None:
                self.create_params_file(self.params)
                return
            elif not os.path.exists(self.params):
                self.create_params_file(self.params)
                return

        if self.ui.tabWidget.currentIndex() == 0:
            args = self.command_line_args()
        elif self.ui.tabWidget.currentIndex() == 2:
            args = self.gui_command_line_args()

        self.update_result_tab()

        # # Start process
        self.ui.edit_stdout.clear()
        format = self.ui.edit_stdout.currentCharFormat()
        format.setFontWeight(QFont.Normal)
        format.setForeground(Qt.blue)
        self.ui.edit_stdout.setCurrentCharFormat(format)
        time_str = datetime.datetime.now().ctime()
        start_msg = '''\
                       Starting spyking circus at {time_str}.

                       Command line call:
                       {call}
                    '''.format(time_str=time_str, call=' '.join(args))
        self.ui.edit_stdout.appendPlainText(textwrap.dedent(start_msg))
        format.setForeground(Qt.black)
        self.ui.edit_stdout.setCurrentCharFormat(format)
        self.ui.edit_stdout.appendPlainText('\n')

        self.process = QProcess(self)
        self.process.readyReadStandardOutput.connect(self.append_output)
        self.process.readyReadStandardError.connect(self.append_error)
        self.process.started.connect(self.process_started)
        self.process.finished.connect(self.process_finished)
        self.process.error.connect(self.process_errored)
        self._interrupted = False
        self.process.start(args[0], args[1:])