Beginner's question re. multicolumn lists, events
Terry Maloney <[email protected]> Fri, 02 May 2008 10:20:00 -0400
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
Using Alex Tweedy's helpful post ... http://aspn.activestate.com/ASPN/Mail/Message/PythonCard/2718590 I've managed to implement an editable multicolumnlist called MCL (with one deviation from Alex's instructions, in case it's relevant to the following -- I edited PythonCard/components/multicolumnlist.py itself, thinking I probably want this feature in any mcl I create). It works nicely, the mixin does it's magic, creates an editor and saves edits to MCL.items, but my problem is that it only seems to do so after a gainFocus event has been sent to MCL when the editor is closed. Consequently, using on_MCL_gainFocus to handle changes is unreliable. I've found a way around this by re-entering and then closing the edited cell (the second gainFocus event is now aware of the changed data), but it's rather inelegant. I can live with it, as the only user of the program will be myself, but if anyone can point out a better method, it would be appreciated. Regards, Terry Maloney ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone