wxPython custom list drawing?

Will McGugan news at NOwillmcguganSPAM.com
Thu May 5 10:34:18 EDT 2005


Ivan Voras wrote:
> Does wxPython (actually, the wx toolkit) support setting up ListCtrls or 
> similar to allow custom element drawing?
> 
> Something like generating an 'OnPaint()' event in which I could paint 
> whatever I like in a listbox element. (example from some other toolkits)


wx.VListBox allows you to render whatever you want for each item. You 
could also do something similar with a wx.Grid


Will McGugan
-- 
http://www.willmcgugan.com
"".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-84)%26) for c 
in "jvyy*jvyyzpthtna^pbz" ] )



More information about the Python-list mailing list