On Monday, August 4, 2014 7:28:54 AM UTC-5, CJC wrote:
Hello,
I use “Configobj” for importing and saving data.
How to record inside the config file and how to load the data inside the listctrl ?
Can you give me a first example with the brackets “” and a second example without ?
Otherwise when delete and edit actions, How to add a message dialog ?
Thanks
ConfigObj will open a config file and basically return a dictionary-like object that you can iterate over. So in your program’s init() method, after you’ve already created your listctrl, you can call a method to populate the listctrl. In that method, you can open the config file and iterate over the dictionary’s keys, using the Listctrl’s InsertItem methods to add the data to the control.
See the documentation and the demo for examples on how to create MessageDialogs. They are quite easy to use.
You get the values from the ListCtrl to save by using:
yourListCtrl.GetItemText(rowIndex, columnIndex) #don’t include the columnIndex if you aren’t using columns in your list
···
On Monday, August 4, 2014 5:28:54 AM UTC-7, CJC wrote:
Hello,
I use “Configobj” for importing and saving data.
How to record inside the config file and how to load the data inside the listctrl ?
Can you give me a first example with the brackets “” and a second example without ?
Otherwise when delete and edit actions, How to add a message dialog ?