On 14/10/2013 21:08, Werner F. Bruhin wrote:
Hi,
I am running into a problem with above that in the __DrawButton method
of platebtn this is done:
gc.SetFont(self.Font)
self.Font is a dFont but gc.SetFont expects a wx.Font
Could dFont is a dObject, would it also inherit from wx.Font? Or is
this too naive an approach?
Appreciate any tip on this.
Werner
Or is dPemMixin._getDaboFont the culprit?
def _getDaboFont(self):
if hasattr(self, "_font") and isinstance(self._font,
dabo.ui.dFont):
v = self._font
else:
v = self.Font = dabo.ui.dFont(_nativeFont=self.GetFont())
return v
Werner
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]