From: Terry M. <ter...@gl...> - 2008-05-02 14:20:39
|
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 |