Python GUI and MVC - get variable from other module

Posted by lyvic on Programmers See other posts from Programmers or by lyvic
Published on 2013-07-01T12:20:06Z Indexed on 2013/07/01 16:29 UTC
Read the original article Hit count: 196

Filed under:
|

I am trying to split my code in different layers: GUI, reading the GUI, creating input, calculating the model, interpreting data, creating view, sending the view to the GUI. I got the idea of the MVC and would like to try to build my program that way. But I'm a little confused about how to exchange information between those modules. I'm running into problems with undefined global names and so forth.

Example code how I'm trying to get out of this can be found here: http://stackoverflow.com/questions/17385373/setup-a-mvc-mvw-system-in-python-with-tkinter

© Programmers or respective owner

Related posts about python

Related posts about mvc