Hi,

Still the same problem.

Sorry for code, but here it is:

def formTravROpen(dialog,layerid,featureid):

        global myDialog
        myDialog = dialog
        myDialog.window().resize(1263,726)    # Resizes window to the first 
opening
        myDialog.window().saveGeometry()
        
        global open
        open = dialog.findChild(QToolButton,"open")
        
        [......]
        
        QObject.connect(open, SIGNAL("clicked()"), fct_agrandir)
        
def fct_agrandir():                                    # Resizes window when
button is clicked
        if(myDialog.window().width() != 1263):
                myDialog.window().resize(1263,726)

        else:
                myDialog.window().resize(701,726)


Thank you very much for your time.

Guillaume



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/QGIS-2-6-ui-form-window-size-tp5180053p5180746.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to