Pyqt5 layout'u boyutlandırma

    def __init__(self, parent=None):
        super().__init__(parent)

        #self.textEdit.clear()
        dosya=open("ayarlar.txt","r")
        font_ad=dosya.readline().replace("FONT_ADI=","")
        font_boy=dosya.readline().replace("FONT_BOYU=","")
        #self.textEdit.setFont(QFont(font_ad, int(font_boy)))
        update=Versiyon_Kontrol.kontrol()
        if update =="1":

            msg = QMessageBox()

            msg.setWindowTitle("Günceleme bulundu!")
            #msg.setText("Yeni günceleme bulundu.\na href <'https://tinyurl.com/y2ruqeh4'>aa</a> güncel sürümü burdan indirebilirsiniz")
            msg.setText("Yeni güncelleme bulundu!.Güncelemeyi <a href='https://tinyurl.com/y2ruqeh4'Subject=My%20Subject>burdan</a> indirebilirsiniz")
            msg.setIcon(QMessageBox.Information)


            x = msg.exec_()
        if update=="0":

            pass




        dosya=DosyaSistemi.yaz(self)
        dosya=dosya.read()
        self.setLexer(Qsci.QsciLexerPython(self))
        
        self.setText(dosya)```
Merhaba amacaım layoutu       setGeometry(QtCore.QRect(0, 40, 601, 491)) gibi bir komutla boyutlandırma