From: Roger B. <ro...@ro...> - 2004-05-04 01:43:41
|
Adit Panchal wrote: > > I was also wondering what would be the status for accelerator keys? Is > > that something to be implemented down the road? As far as I know, you just put the key sequence in the string for the menu item: menu.Append(ID_SAVE, "Save\tCtrl+S") That will automatically bind Ctrl+S to the menu item. Is there anything you do often enough with the menus to justify an accelerator key? > > As to my CVS export code, it is coming along - I am currently trying to > > figure out how to write the phonebook dict to a list or lists. Given a list of column headers, you can call phonebook.getdata to get the relevant field. For example: phonebook.getdata("Cell2", entry, "") phonebook.getdata("Name", entry, "") The full list of column names is phonebook.AvailableColumns. I would expect the exporting UI to look similar to the importing UI. You should be able to select one of the predefined column types (Palm Desktop, Mozilla etc) or define your own and the order they go in. The columns offered should be importexport.ImportCSVDialog.possiblecolumns. You will need a mapping table between those names and the ones used by BitPim in the phonebook module. Roger |