This may be slightly off topic but I have no idea
where else to search, so here goes.


I'm writing a program in which the data is arranged
in a certain topology. This topology is read in from
a configuration file at start up. 

The problem is I need two kinds of information.
The first is just the logical topology like node
1 has node 8, 9, 46 and 58 as neighbours and the
kind of connection between nodes.
The second is GUI information, like where in the
window to display the node, what image to use
for displaying this node etc.

Now my questions.

What would be best? Have two information structures
in the program, one that contains the logical info
and the other containing the GUI information or
put all information in one structure, where every
instance contains both its logical as its GUI information.

For the moment I'm leaning to the first option since
I would like to use the same datastructures in components
that don't use a GUI. If I choose for this first option,
should I also seperate the config file in two?

-- 
Antoon Pardon
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to