;ò
©ÄG@c @ s d k Z d k i i Z d Z d Z d e i f d „ ƒ YZ d „ Z d Z e
d j oP d k Z d k Z d k
Z
e
i d e i i e i d ƒ g e i d
ƒ n d S( Ns™ some |23 textwith subscript some other textsG big green texts TestPanelc B s t Z d „ Z d „ Z RS( Nc C s0 t i i | | d ƒ | i t i | i ƒ d S( Niÿÿÿÿ( s wxs Panels __init__s selfs parents Binds EVT_PAINTs OnPaint( s selfs parent( ( si /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys __init__ s c C s_ t i | ƒ } t i t | ƒ \ } } t i t | d d ƒ t i t
| d d | d ƒ d S( Ni i
( s wxs PaintDCs selfs dcs fancytexts GetExtents test_strs ws hs
RenderToDCs test_str2( s selfs evts hs dcs w( ( si /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys OnPaint s ( s __name__s
__module__s __init__s OnPaint( ( ( si /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys TestPanel s c C s t | ƒ } | Sd S( N( s TestPanels nbs win( s frames nbs logs win( ( si /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys runTest s 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__s i i ( s wxs wx.lib.fancytexts libs fancytexts test_strs test_str2s Panels TestPanels runTests overviews __name__s syss oss runs mains paths basenames argv(
s syss runs oss test_str2s overviews wxs runTests fancytexts test_strs TestPanel( ( si /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/FancyText.pys ? s (