本文整理汇总了Python中login.Login.setWindowModality方法的典型用法代码示例。如果您正苦于以下问题:Python Login.setWindowModality方法的具体用法?Python Login.setWindowModality怎么用?Python Login.setWindowModality使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类login.Login
的用法示例。
在下文中一共展示了Login.setWindowModality方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
# 需要导入模块: from login import Login [as 别名]
# 或者: from login.Login import setWindowModality [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_()