Encapsulation and GUIs

J

j_mckitrick

I'm porting an app from tkinter to PyGTK, and I'm taking the
opportunity to refine the design. For example, I have 3 dictionaries
of settings, or preferences, that are all adjusted in one dialog.

From an encapsulation standpoint, am I better off extracting the
options from the dictionary, setting each to the dialog, then
gathering them all at the end and updating the options dictionaries?
Or, is it better to pass dictionaries into the dialog, update them
there, then pass them back?

Option 1 obviously is more encapsulated, but option 2 seems more
extensible as I add options to the dictionaries.

jonathon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top