I am currently developing an application in which i cannot use modal windows (due to some application constraints). However, in some cases i would like to simulate a popup w
For gettting screen size
import sys from PyQt4 import QtGui, QtCore app = QtGui.QApplication(sys.argv) mainWindow = QtGui.QWidget() screenShape = QtGui.QDesktopWidget().screenGeometry() mainWindow.resize(self.screenShape.width(), self.screenShape.height()) mainWindow.show()