On Tue, Jun 17, 2008 at 4:22 PM, Ed Leafe <[EMAIL PROTECTED]> wrote:
> On Jun 17, 2008, at 6:15 PM, Nate Lowrie wrote:
>
>> on this system.") % val
>> dabo.dException.FontNotFoundException: The font 'MS Shell Dlg 2'
>> doesn't exist o
>> n this system.
>>
>> Note I created and saved the file on the same system I got the error.
>
> I looked into the dFont code, and found one of those pesky bare
> excepts. Can you replace the 'trySetFont()' method with the following
> debug code, repeat the steps you took to get the above error, and post
> the output?
>
> def trySetFont(val):
> if val in availableFonts:
> try:
> return
> self._nativeFont.SetFaceName(val)
> except StandardError, e:
> print "FONT ERR:", e
> return False
> return False
Traceback (most recent call last):
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dMenuItem.py"
, line 55, in __onWxHit
self.raiseEvent(dEvents.Hit, evt)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py"
, line 919, in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\lib\eventMixin.py", l
ine 92, in raiseEvent
bindingFunction(event)
File "ClassDesigner.py", line 1702, in onOpenDesign
self.openClass(ff)
File "ClassDesigner.py", line 695, in openClass
obj = self.recreateChildren(frm.mainPanel, kids, None, False)
File "ClassDesigner.py", line 1045, in recreateChildren
self.recreateChildren(obj, kids, None, False)
File "ClassDesigner.py", line 847, in recreateChildren
self.recreateChildren(parent, [kid], sz, True)
File "ClassDesigner.py", line 945, in recreateChildren
skipUpdate=True, attProperties=atts)
File "ClassDesigner.py", line 2582, in addNewControl
obj = mixedClass(parent, properties=props, attProperties=attProperties)
File "ClassDesigner.py", line 2721, in __init__
apply(base.__init__,(self,) + args, kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dComboBox.py"
, line 26, in __init__
dcm.dControlItemMixin.__init__(self, preClass, parent, properties, attProper
ties, *args, **kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dControlItemM
ixin.py", line 20, in __init__
super(dControlItemMixin, self).__init__(*args, **kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\dDataControlMixinB
ase.py", line 22, in __init__
dabo.ui.dControlMixin.__init__(self, *args, **kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py"
, line 178, in __init__
self._setNameAndProperties(properties, **kwargs)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py"
, line 215, in _setNameAndProperties
self._setProperties(properties)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py"
, line 228, in _setProperties
self.setProperties(properties)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\lib\propertyHelperMix
in.py", line 211, in setProperties
_setProps(propDict)
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\lib\propertyHelperMix
in.py", line 200, in _setProps
setter(self, _propDict[prop])
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dPemMixin.py"
, line 2011, in _setFontFace
self.Font.Face = val
File "c:\Python25\lib\site-packages\dabo-full\trunk\dabo\ui\uiwx\dFont.py", li
ne 84, in _setFace
raise dabo.dException.FontNotFoundException, _("The font '%s' doesn't exist
on this system.") % val
dabo.dException.FontNotFoundException: The font 'MS Shell Dlg 2' doesn't exist o
n this system.
Same error.
Nate L.
_______________________________________________
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]