Here are the examples of the python api PyQt4.QtGui.QApplication.desktop.screenGeometry taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Example 1
Project: qmap Source File: listfeatureform.py
def __init__(self):
QDialog.__init__(self)
self.ui = Ui_ListFeatueForm()
self.ui.setupUi(self)
self.ui.featureList.itemClicked.connect(self.openForm)
self.setWindowFlags(Qt.FramelessWindowHint)
scr = QApplication.desktop().screenGeometry(0)
self.move( scr.center() - self.rect().center() )
3
Example 2
Project: qmap Source File: syncdialog.py
def __init__(self):
QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_syncForm()
self.ui.setupUi(self)
self.setWindowFlags(Qt.FramelessWindowHint)
scr = QApplication.desktop().screenGeometry(0)
self.move( scr.center() - self.rect().center() )
self.failed = False
self.ui.buttonBox.setEnabled(False)