From: Arthur E. <ar...@ia...> - 2004-09-13 12:38:59
|
On Sep 12, 2004, at 19:08, Kevin Altis wrote: > In general, if the PythonCard component doesn't support one of the > styles supported by the underlying wxPython control, you'll have to > subclass the PythonCard component or just modify it to suit your > purposes. PythonCard will look for components in a directory called > appcomponents in your main application directory before it loads from > the default component list, so that can be used to override which > version of a component is used if you want something > application-specific. If you decide to provide you're own about the > only thing you need to provide in the subclass is a replacement > __init__ method, so just copy that from the original and change the > style. > > In the case of this style, it is something that PythonCard really > should support, so I'll make appropriate modifications to the > multicolumnlist component and post something here once that is done. ok, added a directory 'appcomponents' next to my script, copied a modified version of multicolumnlist.py in there. In the __init__ of multicolumnlist.py, in line 92 I have added | wx.LC_NO_HEADER to the rules. I still have headings, so I suspect the modified version is not loaded. Any ideas what goes wrong here? Thanks, Arthur. |