Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Encapsulation and GUIs

Reply
Thread Tools

Encapsulation and GUIs

 
 
j_mckitrick
Guest
Posts: n/a
 
      06-08-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python GUIs and custom controls Joe P. Cool Python 5 05-11-2008 09:10 PM
GUIs: wxPython vs. Tkinter (and others) Erik Johnson Python 8 12-13-2004 09:03 AM
OO design, Python, and GUIs Christopher Culver Python 3 11-18-2003 11:41 PM
Matlab, GUIs and Cygwin Jay Eichelberger Python 1 11-16-2003 12:11 AM
GUIs and Compilers.. <help> V e X y N C Programming 2 08-22-2003 07:33 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57