;ò ©ÄG@c@s­dkZdkiiZdZdZdeifd„ƒYZd„ZdZ e djoPdk Z dk Z dk Z e ide iie id ƒge id ƒndS( Ns™some |23 textwith subscript some other textsGbig green texts TestPanelcBstZd„Zd„ZRS(NcCs0tii||dƒ|iti|iƒdS(Niÿÿÿÿ(swxsPanels__init__sselfsparentsBinds EVT_PAINTsOnPaint(sselfsparent((si/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys__init__scCs_ti|ƒ}tit|ƒ\}}ti t|ddƒti t |dd|dƒdS(Nii ( swxsPaintDCsselfsdcs fancytexts GetExtentstest_strswshs RenderToDCs test_str2(sselfsevtshsdcsw((si/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pysOnPaints(s__name__s __module__s__init__sOnPaint(((si/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys TestPanels cCst|ƒ}|SdS(N(s TestPanelsnbswin(sframesnbslogswin((si/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pysrunTests s·

FancyText -- methods for rendering XML specified text

This module exports four main methods::

    def GetExtent(str, dc=None, enclose=True)
    def GetFullExtent(str, dc=None, enclose=True)
    def RenderToBitmap(str, background=None, enclose=True)
    def RenderToDC(str, dc, x, y, enclose=True)
In all cases, 'str' is an XML string. Note that start and end tags are only required if *enclose* is set to False. In this case the text should be wrapped in FancyText tags.

In addition, the module exports one class::

    class StaticFancyText(self, window, id, text, background, ...)
This class works similar to StaticText except it interprets its text as FancyText.

The text can supportsuperscripts and subscripts, text in different sizes, colors, styles, weights and families. It also supports a limited set of symbols, currently , , as well as greek letters in both upper case (...) and lower case (...). The End s__main__sii(swxswx.lib.fancytextslibs fancytextstest_strs test_str2sPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv( ssyssrunsoss test_str2soverviewswxsrunTests fancytextstest_strs TestPanel((si/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys?s  (