wxGraphicsContext.GetTextExntent() crash

With this simple code the GetTextExtent() method of wxGraphicsContext crash mysteriosly in apparence.

GetTextExtent.py (529 Bytes)

···

--
EXPO - Hardware solution, Software revolution
http://www.expobrain.net

Esposti Daniele
Via Aldo Moro, 14/h
20085 - Locate di Triulzi (MI)
Cell 347/0748470

Expo wrote:

With this simple code the GetTextExtent() method of wxGraphicsContext crash mysteriosly in apparence.

To work around the bug give the gc a font:

  gc.SetFont(self.GetFont())

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!