Użytkownik Steve Rose napisał:
> One of my programs crashes after the latest update.
>
> Platform: Win
> Python Version: 2.5.1 on win32
> Dabo Version: Version 0.9.3; Revision ~6449
> UI Version: 2.8.7.1 on wxMSW
>
> I think I have traced it to the dLabel property WordWrap = True as the
> culprit.  When I eliminate that property or set it to False, the problem
> goes away.
>
> Here is the traceback:
>
> ### Here it is: --->
> File "C:\aaa\DaboCode\CalBirds\ReportCalMap2.py", line 94, in afterInit
> self.img.Amador = dabo.ui.dLabel(self.img,Left=273,Top=278,Width=22,Height=1
> 6,FontSize=myFontSize5,WordWrap=True,Alignment='Center',Caption="AMA")
>
>
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p
> y", line 24, in __init__
> attProperties=attProperties, *args, **kwargs)
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
> n.py", line 189, in __init__
> self._setNameAndProperties(properties, **kwargs)
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
> n.py", line 226, in _setNameAndProperties
> self._setProperties(properties)
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
> n.py", line 239, in _setProperties
> self.setProperties(properties)
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp
> erMixin.py", line 216, in setProperties
> _setProps(propDict)
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\propertyHelp
> erMixin.py", line 205, in _setProps
> setter(self, _propDict[prop])
> File
> "C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dLabel.p
> y", line 125, in _setWordWrap
> dabo.ui.callAfter(self.Parent.layout)
> AttributeError: 'dImage' object has no attribute 'layout'
>    

Hi.

It's very strange, because in Dabo only compound/container type controls 
has the layout method.
The dImage control is neither of them.
Other strangeness is that I didn't change anything in property handling 
code.
I'm  in doubt what should I do, to add the layout method to dImage class 
or add
exception support statement to dLabel class.
If I understand you code well, you are displaying label text inside your 
image?

-- 
Regards
Jacek Kałucki

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to