Encapsulation and GUIs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • j_mckitrick

    Encapsulation and GUIs

    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
Working...