From: Kevin A. <al...@se...> - 2004-10-02 02:29:15
|
On Oct 1, 2004, at 6:08 PM, Arthur Elsenaar wrote: > Hi Kevin, > > asking you directly instead of the list, as my subscription email > account has ISP problems. > > Anyway, with the multicolumnlist, I like to find an item on string in > the list and remove it. I see wxPython has methods to do so, but how > can I use wx methods directly? Other wishes I have, but less > important; setting item and background colors, disabling the > horizontal scrollbar. > > Also I notice that assigning a list to .items frequently after each > other, the control has redrawing problems (OS X). So I like to work on > a specific item, hence my questions. I have actually done very little with MultiColumnList, so I'm not as well versed with it as other components. In fact, IIRC the supplied wrapper was originally done by by William Volkman and I've just added onto it a bit and done a few workarounds as PythonCard and wxPython have changed. However, all PythonCard components are subclasses of wxPython controls, so in general you can just use the underlying wxPython methods if there isn't an equivalent PythonCard wrapper method. If you want to see the methods in the shell, then you'll want to toggle autoCompleteWxMethods, which by default is set to False, so only mixedCase method names are shown. >>> shell.autoCompleteWxMethods = True Wasn't there a question on the list not too long ago about setting item colors, maybe someone else that has used MultiColumnList more than I can chime in here. If you run into problems with the update speed, you might consider calling the Freeze() method before you start your manipulations and call Thaw() afterwards to avoid screen updates of the component while you are changing a bunch of items. > Thanks. > > Arthur > ps: is there an indeterminate progress indicator? I don't see how to > do this with the progressbar as normally can be done on OS X to set it > to barberpole mode. I don't know offhand. This might be a good question for the wxPython-Mac mailing list or wxPython-users. ka |