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

> This seems like a decent suggestion (frankly, it shouldn't be necessary!)

The .ui files are compiled by users, so if someone has a bad pyuic4 the
output may
be wrong.

Users could fix that by opening the _ui.py generated file and changing e.g.

self.jpegQualitySpin.setProperty("value", 80)
to
self.jpegQualitySpin.setProperty("value", QVariant(80))

but if you remove the faulty line from the .ui file it'll work for all
users.

Cheers.


> 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