3
I am setting a certain widget according to the size of the secondary monitor.
This I managed to do perfectly. However, as I am beginner with Pyqt, I would like to know how to block window resizing.
I mean, I want the user not to be able to maximize, minimize or resize this widget.
How can I do that?
Current code:
from PyQt4 import QtCore, QtGui
class RetroProjetorWindow(QtGui.QWidget):
def __init__(self, desktop, parent=None):
super(RetroProjetorWindow, self).__init__(parent)
self.setupUi(desktop)
def setupUi(self, desktop):
self.setGeometry(desktop.screenGeometry(1))
# Quero bloquear o redimensionamento aqui...