Re: [Tutor] MVC/MVP examples of how to implement it

2006-12-18 Thread Don Taylor
Basil Shubin wrote: > Hi friends! > > I have read articles about MVC/MVP, but still can't get a clue to how > implement it in really working application :-( Because I better > understand with ready to use examples, can you provide link to free > python+GUI application which implements MVC/MVP d

Re: [Tutor] MVC/MVP examples of how to implement it

2006-12-18 Thread Christopher Arndt
Basil Shubin schrieb: > I have read articles about MVC/MVP, but still can't get a clue to how > implement it in really working application :-( Because I better > understand with ready to use examples, can you provide link to free > python+GUI application which implements MVC/MVP design? The MVC

Re: [Tutor] MVC/MVP examples of how to implement it

2006-12-18 Thread Alan Gauld
"Basil Shubin" <[EMAIL PROTECTED]> wrote > I have read articles about MVC/MVP, but still can't get a clue to > how > implement it in really working application Look at TurboGears. It uses a model/view/controller setup. In TG the views are implemented as kid templates (a mixture of HTML and embe

[Tutor] Data hiding in Python.

2006-12-18 Thread Don Taylor
I am working my way through 'wxPython in Action' by Noel Rappin and Robin Dunn and came across this comment about data hiding in their explanation of the MVC pattern: ".. the View... should never get to see the private internals of the Model. Admittedly, this is difficult to enforce in Python,

[Tutor] MVC/MVP examples of how to implement it

2006-12-18 Thread Basil Shubin
Hi friends! I have read articles about MVC/MVP, but still can't get a clue to how implement it in really working application :-( Because I better understand with ready to use examples, can you provide link to free python+GUI application which implements MVC/MVP design? Thanks! ___

Re: [Tutor] [Fwd: Re: Problems writing data into a file]

2006-12-18 Thread Andreas Kostyrka
* Stefan Heyne <[EMAIL PROTECTED]> [061218 09:51]: > OK, thanksno I get the data into a file output..but I still am stuck > with the formatting... > 1) there are brackets around the data that are due to the necessary (??) > conversion to a string > 2) I cannot figure out how to insert a newli

[Tutor] [Fwd: Re: Problems writing data into a file]

2006-12-18 Thread Stefan Heyne
OK, thanksno I get the data into a file output..but I still am stuck with the formatting... 1) there are brackets around the data that are due to the necessary (??) conversion to a string 2) I cannot figure out how to insert a newline command Here's the code: g=open('output.txt', 'w') fo

Re: [Tutor] Problems writing data into a file

2006-12-18 Thread Luke Paireepinart
> for x in range(1,226): > # g=open('output', 'w') > y1=m.extract('TEMP',32, 1131, component='1', cycle=x, subcycle=1) > y2=m.extract('PRES',32, 1131, component='1', cycle=x, subcycle=1) > # testout = (x,y1,y2,'\n') > # line = str(testout) > # g.write(line) > print x,y1,y2 >

[Tutor] Problems writing data into a file

2006-12-18 Thread Stefan Heyne
Hi there, I am newby to python and have some problems getting data into a file I am using python to extract data from a database but currently i only get it to print the data on the screen so I have to copy/paste it into a file later on. There for sure is a way to do that but I couldn't figu