On 27/03/14 01:07, j verzani wrote:
Try this for example,
QtGui = PyCall.pyimport("PySide.QtGui")
QtGui["QSizePolicy"]["Fixed"],
that works thanks!
I found that the following also works:
szp = Qt.QSizePolicy()
loadParametersButton[:setSizePolicy](szp[:Expanding], szp[:Expanding])
Sam
On Wednesday, March 26, 2014 5:20:11 PM UTC-4, Samuele Carcagno wrote:
another PySide question, how to set `QSizePolicy`? for example how to
translate the following Python code
loadParametersButton.setSizePolicy(QSizePolicy.Expanding,
QSizePolicy.Expanding)
I tried looking for `QSizePolicy` in Qt properties but didn't find it
pyimport("PySide.QtCore")["Qt"][:QSizePolicy]
ERROR: key not found: "QSizePolicy"
Sam