I'm setting a particular widget according to the size of the secondary monitor.
This I was able to do perfectly. However, since I'm new to PyQt, I'd like to know how to block the resizing of the window.
I mean, I want the user not to be able to maximize, minimize, or resize this widget.
How can I do this?
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...