View Single Post
Old 04-13-2020, 12:51 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,824
Karma: 206879174
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You can use whatever you like for the preferences. Prefs are just a dictionary serialized to a json file. You can create your preferences as a dictionary of dictionaries, or as a dictionary of lists, or as a dictionary of lists of tuples if you like. It's just up to you to make sure the structure is properly populated before you save the preferences. Just like it's up to you parse the structure after retrieving the stored preferences.

I tend to use a dictionary of simple dictionaries, myself. Mostly for common grouping purposes. I've not really encountered a situation where complicating it much further than that would be an advantage. Your mileage may vary, though.
DiapDealer is offline   Reply With Quote