Re: TK + MVC

2011-10-03 Thread Emeka
Alex, The question was not meant for you. I was responding to Greg's comment. Regards, Emeka On Mon, Oct 3, 2011 at 12:14 AM, Alexander Kapps wrote: > On 03.10.2011 00:15, Emeka wrote: > >> Greg, >> >> Do you have an example where the Controller is connected? >> > > What do you mean? In my exa

Re: TK + MVC

2011-10-03 Thread Gregory Ewing
Alexander Kapps wrote: Sure, in that simple example the Controller is just there to show a complete MVC pattern with all three parts. There are often examples where the View is actually both, the View and the Controller. I think what I'm really trying to say is that this example is *poor* at

Re: TK + MVC

2011-10-02 Thread Greg Ewing
Emeka wrote: Greg, Do you have an example where the Controller is connected? No, in fact I've never really felt the need for anything called a Controller in the GUI stuff I've done. I just have Models and Views. Models hold the data, and Views display it and handle input. If you come across a

Re: TK + MVC

2011-10-02 Thread Alexander Kapps
On 02.10.2011 04:40, Gregory Ewing wrote: Alexander Kapps wrote: But I think a simple (and quick 'n' dirty) Tk MVC example can look like this: The Controller doesn't seem to add any value in that example. You might as well connect the Model and Views directly to each other.

Re: TK + MVC

2011-10-02 Thread Alexander Kapps
On 03.10.2011 00:15, Emeka wrote: Greg, Do you have an example where the Controller is connected? What do you mean? In my example, the Controller *is* connected (to both the View and the Model.) -- http://mail.python.org/mailman/listinfo/python-list

Re: TK + MVC

2011-10-02 Thread Emeka
Greg, Do you have an example where the Controller is connected? Regards, EMeka On Sun, Oct 2, 2011 at 4:40 AM, Gregory Ewing wrote: > Alexander Kapps wrote: > > But I think a simple (and quick 'n' dirty) Tk MVC example can look like >> this: >> > > The Con

Re: TK + MVC

2011-10-01 Thread Gregory Ewing
Alexander Kapps wrote: But I think a simple (and quick 'n' dirty) Tk MVC example can look like this: The Controller doesn't seem to add any value in that example. You might as well connect the Model and Views directly to each other. -- Greg -- http://mail.python.org/mailman/

Re: TK + MVC

2011-10-01 Thread Alexander Kapps
t the controller controls the view). Some insist on a certain interface, others just talk about a certain data/control flow, etc. But I think a simple (and quick 'n' dirty) Tk MVC example can look like this: #!/usr/bin/python import Tkinter as tk class Model(object): de

TK + MVC

2011-10-01 Thread Emeka
Hello All, I need a basic example where MVC pattern is used with Python TK. Regards, Emeka -- *Satajanus Nig. Ltd * -- http://mail.python.org/mailman/listinfo/python-list