Re: Calendar Entry Editor
Stephen Wood <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 30 Jan 2005 04:11:53 GMT, [email protected] <[email protected]> wrote: > > Can you delete it once you selected it? What's your hack to make it work for you? > I can delete something I select if I havn't changed something. (Making the listbox go grey.) In the hack (which is in the CVS), I cache the result of self.listbox.GetSelection() everytime getcurrententry is called. If GetSelection returns -1, then I used the cached index into the listbox. Stephen def getcurrententry(self): """Returns the entry currently being viewed @Note: this returns the unedited form of the entry""" i=self.listbox.GetSelection() if i==-1: if self.lastcurrententry>=0: i=self.lastcurrententry else: return None self.lastcurrententry=i return self.getentry(i) > -Joe Pham ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl