Try this for example, 

QtGui = PyCall.pyimport("PySide.QtGui") 
QtGui["QSizePolicy"]["Fixed"],

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 
>

Reply via email to