def test_lib_fancytext_Methods(self): self.frame.Bind(wx.EVT_PAINT, self.OnPaint) FT.RenderToBitmap(test_str, background=None, enclose=True)
def SetLabel(self, label): """Render label.""" bmp = fancytext.RenderToBitmap( label, wx.Brush(self.GetBackgroundColour(), wx.BRUSHSTYLE_SOLID)) self.SetBitmap(bmp)
def SetLabel(self, label): bmp = fancytext.RenderToBitmap( label, wx.Brush(self.GetBackgroundColour(), wx.SOLID)) self.SetBitmap(bmp)