当前位置: 首页>>代码示例>>Python>>正文


Python Login.setWindowFlags方法代码示例

本文整理汇总了Python中login.Login.setWindowFlags方法的典型用法代码示例。如果您正苦于以下问题:Python Login.setWindowFlags方法的具体用法?Python Login.setWindowFlags怎么用?Python Login.setWindowFlags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在login.Login的用法示例。


在下文中一共展示了Login.setWindowFlags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: main

# 需要导入模块: from login import Login [as 别名]
# 或者: from login.Login import setWindowFlags [as 别名]

#.........这里部分代码省略.........

    @pyqtSlot()
    def copyFunction():
        print "f10 a bastın"

        elma=fatura.tableWidget_2.currentRow()
        elma1=fatura.tableWidget_2.rowCount()
        if elma==-1:
            abc = QKeyEvent(QEvent.KeyPress, Qt.Key_Tab, Qt.NoModifier)
            QCoreApplication.postEvent(fatura, abc)

        else:
            fatura.tableWidget_2.focusNextChild()
            '''

            if fatura.tableWidget_2.currentColumn()==5:
                if elma1 == elma + 1:
                    fatura.pushButton.setFocus()
                else:
                    fatura.tableWidget_2.setCurrentCell(elma + 1, 2)
                print elma '''


    @pyqtSlot()
    def slotrecete2satirsil():
        bb=recete2.tableWidget_2.currentRow()
        recete2.tableWidget_2.removeRow(bb)


    # dosya açmak için dialog
    # fileName =(QtGui.QFileDialog.getOpenFileName(mainWindow, u"Düzenlenecek dosyayı seçin", ".", u"Metin dosyaları (*.txt)"))
    app.setWindowIcon(QtGui.QIcon('nenra.png'))
    mainWindow.verticalLayoutWidget_2.setStyleSheet("background-image: url(images/newyork.png);")
    mainWindow.pushButton.setStyleSheet("color: black ;  background-image: url(images/image.png)")
    mainWindow.pushButton_2.setStyleSheet("color: black ;  background-image: url(images/fatura.png)")
    mainWindow.pushButton_3.setStyleSheet("color: black ;  background-image: url(images/maliyet.png)")
    mainWindow.pushButton_4.setStyleSheet("color: black ;  background-image: url(images/nenra.png)")
    mainWindow.pushButton_5.setStyleSheet("color: black ;  background-image: url(images/nenra.png)")
    mainWindow.pushButton_6.setStyleSheet("color: black ;  background-image: url(images/maliyet.png)")
    mainWindow.pushButton.clicked.connect(slotpuss)
    mainWindow.pushButton_2.clicked.connect(slotfatura)
    mainWindow.pushButton_3.clicked.connect(slotmaliyet)
    mainWindow.pushButton_4.clicked.connect(slotcari)
    mainWindow.pushButton_5.clicked.connect(slotstok)
    mainWindow.pushButton_6.clicked.connect(slotkasa)
    mainWindow.actionTediye_Fi_i.triggered.connect(lambda:slotfatura("TED"))
    mainWindow.actionSay_m_Fi_i.triggered.connect(lambda: slotfatura("SAY"))
    mainWindow.actionStok_Tan_mlama.triggered.connect(lambda:slottediye("VADE"))
    mainWindow.statusbar.showMessage(u"Namık ERDOĞAN © 2016 v 1.513                                   Bishop Restaurant")
    recete.lineEdit.textChanged.connect(slottextch)



    recete.tableWidget.cellClicked.connect(slotrecete2)
    recete2.lineEdit.textChanged.connect(slotrecete2sql)
    recete2.tableWidget.cellClicked.connect(slothamclick)
    recete2.pushButton.clicked.connect(slotrecete2kaydet)
    recete2.pushButton_3.clicked.connect(slotrecete2satirsil)


    recete.setWindowModality(Qt.ApplicationModal)
    recete2.setWindowModality(Qt.ApplicationModal)
    fatura.setWindowModality(Qt.ApplicationModal)
    maliyet.setWindowModality(Qt.ApplicationModal)
    login.setWindowModality(Qt.ApplicationModal)
    rapor.setWindowModality(Qt.ApplicationModal)
    stok.setWindowModality(Qt.ApplicationModal)

    fatura.connect(QtGui.QShortcut(QtGui.QKeySequence(Qt.Key_Enter), fatura), QtCore.SIGNAL('activated()'), copyFunction)

    mainWindow.connect(login, QtCore.SIGNAL("acac1(int)"), slotpuss4)
    slotpuss4(100)
    mainWindow.connect(fatura, QtCore.SIGNAL("acac"), slotpuss5)
    mainWindow.connect(cari, QtCore.SIGNAL("fisac"), slotpuss6)


    mainWindow.move(13, 10)

    #mainWindow.setWindowFlags(QtCore.Qt.FramelessWindowHint)
    #mainWindow.raise_()


    mainWindow.show()
    mainWindow.menubar.setStyleSheet("    QMenuBar {    background-color: orange;   } QMenuBar::item {    background-color: orange;   } ")
    mainWindow.setStyleSheet(" background-color: orange;")




    #mainWindow.setWindowState(mainWindow.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
    #mainWindow.activateWindow()
    login.setWindowFlags(QtCore.Qt.FramelessWindowHint)
    login.setStyleSheet("color:red ; background-color: orange;")
    login.show()
    login.raise_()




    return app.exec_()
开发者ID:nerdogan,项目名称:nenra,代码行数:104,代码来源:nenra.py


注:本文中的login.Login.setWindowFlags方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。