def OnPaint(self, evt): dc = wx.PaintDC(self) w, h = fancytext.GetExtent(test_str, dc) fancytext.RenderToDC(test_str, dc, 20, 20) fancytext.RenderToDC(test_str2, dc, 20, 20 + h + 10)
def OnPaint(self, evt): dc = wx.PaintDC(self.frame) FT.GetExtent(test_str, dc=dc, enclose=True) FT.GetFullExtent(test_str, dc=dc, enclose=True) FT.RenderToDC(test_str, dc, 0, 10, enclose=True)
def OnPaint(self, event): dc = wx.BufferedPaintDC(self) dc.SetBackground(self.bg) dc.Clear() fancytext.RenderToDC(self.text, dc, 1, 1) event.Skip()
def OnPaint(self, evt): """generate the fancytext on a paint dc canvas""" dc = wx.PaintDC(self) fancytext.RenderToDC(xml_str, dc, 0, 20)