;ò
÷ÍDc @ sÄ d k Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ 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
MyVListBoxc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s‚ | i ƒ | j o t i i t i ƒ } n
| i ƒ } | i
| i ƒ ƒ | i | ƒ | i
| i | ƒ | t i t i Bƒ d S( N( s selfs GetSelections ns wxs SystemSettingss GetColours SYS_COLOUR_HIGHLIGHTTEXTs cs GetForegroundColours dcs SetFonts GetFonts SetTextForegrounds DrawLabels _getItemTexts rects
ALIGN_LEFTs ALIGN_CENTER_VERTICAL( s selfs dcs rects ns c( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys
OnDrawItem
s
c C sT d } x? | i | ƒ i d ƒ D]% } | i | ƒ \ } } | | 7} q W| d Sd S( Ni s
i ( s heights selfs _getItemTexts ns splits lines
GetTextExtents ws h( s selfs ns hs heights ws line( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys
OnMeasureItem s c C s) | d d j o d | Sn d | Sd S( Ni i s This is item# %ds$ This is item# %d
with an extra line( s item( s selfs item( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys _getItemText+ s ( s __name__s
__module__s
OnDrawItems
OnMeasureItems _getItemText( ( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys
MyVListBox s s
MyHtmlListBoxc B s t Z d „ Z RS( Nc C s) | d d j o d | Sn d | Sd S( Ni i s This is item# %dsF This is item# %d
Any HTML is okay.( s n( s selfs n( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys OnGetItem7 s ( s __name__s
__module__s OnGetItem( ( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys
MyHtmlListBox5 s s TestPanelc B s t Z d „ Z RS( Nc C sÕ | | _ t i i | | d ƒ d } t | d d d d f d t i ƒ} | i
d ƒ | i d ƒ | i ƒ t i
t i ƒ } | i | | f ƒ | i t i | d d ƒ d d t i ƒ | i | ƒ t | d d d d f d t i ƒ} | i
d ƒ | i d ƒ t i
t i ƒ } | i | | f ƒ | i t i | d d
ƒ d d t i ƒ | i | ƒ t i
t i ƒ } | i | | f ƒ | i | ƒ | i | | f ƒ | i | | f ƒ | i | ƒ | i | ƒ d S( Niÿÿÿÿi2 s sizei– iú s stylei s wx.VListBoxi s wx.HtmlListBox( s logs selfs wxs Panels __init__s parents spacers
MyVListBoxs
BORDER_SUNKENs vlbs SetItemCounts SetSelections SetFocuss BoxSizers VERTICALs vlbSizers Adds
StaticTexts ALLs
MyHtmlListBoxs hlbs hlbSizers
HORIZONTALs sizers SetSizer( s selfs parents logs vlbs sizers spacers vlbSizers hlbSizers hlb( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys __init__@ s2 $
(
$
(
( s __name__s
__module__s __init__( ( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys TestPanel? s c C s t | | ƒ } | Sd S( N( s TestPanels nbs logs win( s frames nbs logs win( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys runTestb s sX
The wx.HtmlListBox derives from wx.VListBox, but draws each item itself as a wx.HtmlCell. This means that you just need to provide a snippet of HTML for each item when requested. s __main__s i i ( s wxs VListBoxs MyVListBoxs HtmlListBoxs MyHtmlListBoxs Panels TestPanels runTests overviews __name__s syss oss runs mains paths basenames argv( s syss runs overviews MyVListBoxs runTests wxs oss MyHtmlListBoxs TestPanel( ( sh /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/VListBox.pys ? s - #