Encapsulation and GUIs

Discussion in 'Python' started by j_mckitrick, Jun 8, 2004.

  1. j_mckitrick

    j_mckitrick Guest

    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
    j_mckitrick, Jun 8, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. V e X y N

    GUIs and Compilers.. <help>

    V e X y N, Aug 22, 2003, in forum: C Programming
    Replies:
    2
    Views:
    371
    Greg P.
    Aug 22, 2003
  2. Jay  Eichelberger

    Matlab, GUIs and Cygwin

    Jay Eichelberger, Nov 15, 2003, in forum: Python
    Replies:
    1
    Views:
    373
    John Hunter
    Nov 16, 2003
  3. Christopher Culver

    OO design, Python, and GUIs

    Christopher Culver, Nov 18, 2003, in forum: Python
    Replies:
    3
    Views:
    399
    Alan Gauld
    Nov 18, 2003
  4. Erik Johnson

    GUIs: wxPython vs. Tkinter (and others)

    Erik Johnson, Dec 11, 2004, in forum: Python
    Replies:
    8
    Views:
    444
    Eric Brunel
    Dec 13, 2004
  5. Joe P. Cool

    Python GUIs and custom controls

    Joe P. Cool, May 8, 2008, in forum: Python
    Replies:
    5
    Views:
    1,344
    Joe P. Cool
    May 11, 2008
Loading...

Share This Page