Hi Carson,

On Mon, Mar 21, 2011 at 2:37 PM, Carson Farmer <[email protected]>wrote:

> ... the generated ui_*.py file always has the 'value' property set for the
> progressBar. It doesn't appear to be an option...

I'm pretty sure that, if you unset the "value" property from QtDesigner, it
doesn't appear
in the .ui file and then in the generated _ui.py file.
You may also edit the .ui file by hand and remove that line from the xml.

Cheers.

 $ pyuic4 --version
> Python User Interface Compiler 4.7.2 for Qt version 4.6.2
>
> Any suggestions?
>
> C
>
>
> On Sat, Mar 19, 2011 at 10:35 AM, Giuseppe Sucameli 
> <[email protected]>wrote:
>
>> Hi Carson,
>>
>> On Thu, Mar 17, 2011 at 10:50 AM, Carson Farmer 
>> <[email protected]>wrote:
>>
>>> Hmm, ok, was this a self build? If yes, it might be worth rebuilding the
>>> included plugins. It looks like there is some issue with ui_frmGeometry.py,
>>> which is actually auto-generated from frm_Geometry.ui at build time.
>>
>> for more compatibility, remove the progressBar value from the .ui and set
>> it by code.
>> This should be fix it.
>>
>> Have a look ad GdalTools Grid, but also other tools,
>> progressBars and spinBoxes' default value is set by code in the
>> constructor.
>>
>> Cheers.
>>
>> On Thu, Mar 17, 2011 at 8:34 AM, Micha Silver <[email protected]> wrote:
>>>
>>>>  Hello Carson
>>>>
>>>>
>>>>  On 16/03/2011 17:24, Carson Farmer wrote:
>>>>
>>>> Hi Micha,
>>>>
>>>>
>>>>  Traceback (most recent call last):
>>>>   File "/home/micha/.qgis/python/plugins/fTools/fTools.py", line 387, in
>>>> docompGeo
>>>>     d = doGeometry.GeometryDialog( self.iface, 5 )
>>>>   File "/home/micha/.qgis/python/plugins/fTools/tools/doGeometry.py", line
>>>> 17, in __init__
>>>>     self.setupUi(self)
>>>>   File "/home/micha/.qgis/python/plugins/fTools/tools/ui_frmGeometry.py",
>>>> line 73, in setupUi
>>>>     self.progressBar.setProperty("value", 0)
>>>> TypeError: argument 2 of QObject.setProperty() has an invalid type
>>>>
>>>>  This is actually an error from the (auto) generated ui file. Have you
>>>> recently updated your Qt/PyQt version?
>>>>
>>>>
>>>>
>>>> No. This particular machine get's all updates from the 
>>>> debian.gfoss.itrepo.  I checked thru the apt logs and nothing there.
>>>>
>>>>
>>>>
>>>> Carson
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> [image: Hevra Logo]
>>>>
>>>> Micha Silver
>>>>
>>>> Arava Development Co
>>>>
>>>> 052-3666918
>>>>
>>>> http://www.surfaces.co.il
>>>>
>>>
>>>
>>>
>>> --
>>> Carson J. Q. Farmer
>>> ISSP Doctoral Fellow
>>> National Centre for Geocomputation
>>> National University of Ireland, Maynooth,
>>> http://www.carsonfarmer.com/
>>>
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> [email protected]
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>>
>>
>>
>> --
>> Giuseppe Sucameli
>>
>>
>
>
> --
> Carson J. Q. Farmer
> ISSP Doctoral Fellow
> National Centre for Geocomputation
> National University of Ireland, Maynooth,
> http://www.carsonfarmer.com/
>
> _______________________________________________
> Qgis-developer mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>


-- 
Giuseppe Sucameli

<<logo_company.gif>>

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to