Hi all.
I have used the MVP example written by Peter Damoc.
I attached my work.
Is a application that create a xml string and print it to video. in a second moment this string will be send to another host.
The good.zip is my good work. the code is compiled without errors and the application run perfectly. You must type python viewsF.py to run all.
In bad.zip i have tried to do like Peter a file that start everythig. This file is Start.py but this don’t compile, for my errors tha i can’t found…
Could you look at my code for discover my errors?
It’s since 3 hours that i try without results
Thanks all.
···
–
Sbaush
I'm sorry but I cannot see the zip files... are you sure you attached them?
Peter.
···
On Wed, 25 Jan 2006 14:12:31 +0200, Sbaush <sbaush@gmail.com> wrote:
Hi all.
I have used the MVP example written by Peter Damoc.
I attached my work.
Is a application that create a xml string and print it to video. in a second
moment this string will be send to another host.
The good.zip is my good work. the code is compiled without errors and the
application run perfectly. You must type python viewsF.py to run all.
In bad.zip i have tried to do like Peter a file that start everythig. This
file is Start.py but this don't compile, for my errors tha i can't found...
Could you look at my code for discover my errors?
It's since 3 hours that i try without results
There wasn't any code attached to look at.
john
···
On Wednesday 25 January 2006 06:12 am, Sbaush wrote:
Hi all.
I have used the MVP example written by Peter Damoc.
I attached my work.
Is a application that create a xml string and print it to video. in a
second moment this string will be send to another host.
The good.zip is my good work. the code is compiled without errors and the
application run perfectly. You must type python viewsF.py to run all.
In bad.zip i have tried to do like Peter a file that start everythig. This
file is Start.py but this don't compile, for my errors tha i can't found...
Could you look at my code for discover my errors?
It's since 3 hours that i try without results
Sorry all!! Now the files are attached…
Probably my brain is burned…
bad.zip (3.39 KB)
good.zip (3.16 KB)
···
2006/1/25, John Meisner jmeisnerlist@sift.info:
On Wednesday 25 January 2006 06:12 am, Sbaush wrote:
Hi all.
I have used the MVP example written by Peter Damoc.
I attached my work.
Is a application that create a xml string and print it to video. in a
second moment this string will be send to another host.
The good.zip is my good work. the code is compiled without errors and the
application run perfectly. You must type python viewsF.py to run all.
In bad.zip i have tried to do like Peter a file that start everythig. This
file is Start.py but this don’t compile, for my errors tha i can’t found…
Could you look at my code for discover my errors?
It’s since 3 hours that i try without results
There wasn’t any code attached to look at.
john
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
–
Sbaush
Ok John,
attached is a fixed version of your bad one.
Basicaly what I din was this:
created a new View (TheMainView) that inherited the code done by wxGlade and, this is important, initialized the wx by creating an application BEFORE instantiating the wx.Frame (MainView).
You have to understand that in order to use most of the wxPython classes a wx.App object must be created first!
Next... when you call View.run you start the MainLoop, that call returns ONLY when the app exits the MainLoop... in most of the cases this is when the app ends (Quit) so... don't put initalisation code AFTER the run method (Interactor install)
Also... wxGlade can export code using the new "wx" namespace... use that since the old wxPython.wx is kinda deprecated...
Good Luck!
Peter
bad_fixed.zip (3.29 KB)
···
On Wed, 25 Jan 2006 17:29:46 +0200, Sbaush <sbaush@gmail.com> wrote:
Sorry all!! Now the files are attached...
Probably my brain is burned...
2006/1/25, John Meisner <jmeisnerlist@sift.info>:
On Wednesday 25 January 2006 06:12 am, Sbaush wrote:
> Hi all.
> I have used the MVP example written by Peter Damoc.
> I attached my work.
> Is a application that create a xml string and print it to video. in a
> second moment this string will be send to another host.
>
> The good.zip is my good work. the code is compiled without errors and
the
> application run perfectly. You must type python viewsF.py to run all.
>
> In bad.zip i have tried to do like Peter a file that start everythig.
This
> file is Start.py but this don't compile, for my errors tha i can't
found...
>
> Could you look at my code for discover my errors?
> It's since 3 hours that i try without results
There wasn't any code attached to look at.
john
> Sorry all!! Now the files are attached...
> Probably my brain is burned...
>
[...snip...]
Ok John,
attached is a fixed version of your bad one.
In this case, John is misspelled. It should be Sbaush.
john
···
On Wednesday 25 January 2006 10:32 am, Peter Damoc wrote:
On Wed, 25 Jan 2006 17:29:46 +0200, Sbaush <sbaush@gmail.com> wrote:
Thanks all, you’re very very great.
Peter, i’ll include Thanks to wxPython List in particular to Peter Damoc for the strong support to this project
···
2006/1/25, John Meisner < jmeisnerlist@sift.info>:
On Wednesday 25 January 2006 10:32 am, Peter Damoc wrote:
On Wed, 25 Jan 2006 17:29:46 +0200, Sbaush sbaush@gmail.com wrote:
Sorry all!! Now the files are attached…
Probably my brain is burned…
[…snip…]
Ok John,
attached is a fixed version of your bad one.
In this case, John is misspelled. It should be Sbaush.
john
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
–
Sbaush