Re: wxPython before MainLoop

2007-08-21 Thread [david]
Thanks for that suggestion, and sorry I took so long to get back to you. That worked. Because I don't want the splash screen, just self.Update regards, [david] Heikki Toivonen wrote: > [david] wrote: >> I'd like to refresh the display before I start the main loop. > > We have this kind

Re: wxPython before MainLoop

2007-08-21 Thread [david]
> Looking at the Chandler code suggests a solution > ... he may need to call Update to finish painting > the display. Yes, and thank you to Chandler for pointing that out. Without the splash screen there was no need to call Yield or use a generator. (david) samwyse wrote: > Chris Mellon wro

Re: wxPython before MainLoop

2007-08-15 Thread Grant Edwards
On 2007-08-14, [david] <[EMAIL PROTECTED]> wrote: > Steve, it wasn't me that raised the comparison > with MFC. If you don't think that's a helpful > comparison, why not reply to that post instead? > > I don't mind Björn's suggestion that I don't > know what I'm talking about, because I started > i

Re: wxPython before MainLoop

2007-08-15 Thread Chris Mellon
On 8/15/07, samwyse <[EMAIL PROTECTED]> wrote: > Chris Mellon wrote: > > On 8/9/07, Heikki Toivonen <[EMAIL PROTECTED]> wrote: > > > >>[david] wrote: > >> > >>>I'd like to refresh the display before I start the main loop. > > If your window isn't able to interact with the user, then I'd consider >

Re: wxPython before MainLoop

2007-08-15 Thread samwyse
Chris Mellon wrote: > On 8/9/07, Heikki Toivonen <[EMAIL PROTECTED]> wrote: > >>[david] wrote: >> >>>I'd like to refresh the display before I start the main loop. If your window isn't able to interact with the user, then I'd consider it a splash screen, no matter if it does look exactly like you

Re: wxPython before MainLoop

2007-08-14 Thread Bjoern Schliessmann
[david] wrote: > Steve, it wasn't me that raised the comparison > with MFC. If you don't think that's a helpful > comparison, why not reply to that post instead? It _was_ a comparison, saying that they follow similar principles. You twisted this comparison by saying wxPython was an imitation of MF

Re: wxPython before MainLoop

2007-08-14 Thread Bjoern Schliessmann
[david] wrote: > Well yes, I have tried this app with native windows, > and I know how to do it. Then I wonder why you complained about concurrency problems (solved by using a worker thread, or using wx.Yield) in the first place. Windows has the same solutions, just as about every GUI framework.

Re: wxPython before MainLoop

2007-08-14 Thread Chris Mellon
On 8/13/07, [david] <[EMAIL PROTECTED]> wrote: > Well yes, I have tried this app with native windows, > and I know how to do it. > I don't believe you. If you meant "I copied something that does this off of code project", that I'll believe. > But if all wxPython can offer is a poor imitation > of

Re: wxPython before MainLoop

2007-08-13 Thread [david]
Steve, it wasn't me that raised the comparison with MFC. If you don't think that's a helpful comparison, why not reply to that post instead? I don't mind Björn's suggestion that I don't know what I'm talking about, because I started it by telling him he was wrong. But you don't have that excuse.

Re: wxPython before MainLoop

2007-08-13 Thread Steve Holden
[david] wrote: > Well yes, I have tried this app with native windows, > and I know how to do it. > > But if all wxPython can offer is a poor imitation > of MFC, I'm better off using MFC aren't I? > > And too all those people who wrote back to insist > that users MUST explicitly build a multi-thre

Re: wxPython before MainLoop

2007-08-13 Thread [david]
Well yes, I have tried this app with native windows, and I know how to do it. But if all wxPython can offer is a poor imitation of MFC, I'm better off using MFC aren't I? And too all those people who wrote back to insist that users MUST explicitly build a multi-threaded framework for wxPython: I

Re: wxPython before MainLoop

2007-08-10 Thread Chris Mellon
On 8/9/07, Heikki Toivonen <[EMAIL PROTECTED]> wrote: > [david] wrote: > > I'd like to refresh the display before I start the main loop. > > We have this kind of situation in Chandler, where we display and update > the splash screen before we enter MainLoop. > > 1. Create app object >http://lxr

Re: wxPython before MainLoop

2007-08-10 Thread Steve Holden
[david] wrote: > [...] I don't think wxPython is really ready for Windows. > I don't think you are really ready to for GUIs ;-) Fortunately, it doesn't matter what *I* think. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holden

Re: wxPython before MainLoop

2007-08-10 Thread Bjoern Schliessmann
[david] wrote: > I'm disappointed that I didn't get a wxPython solution. > > If the only way to get wxPython to correctly handle > this simple task is to code around it, LOL -- did you try coding this app with native windows means, like MFC? You will have *exactly* the same problem, and *exactl

Re: wxPython before MainLoop

2007-08-10 Thread kyosohma
On Aug 9, 8:51 pm, "[david]" <[EMAIL PROTECTED]> wrote: > I'm disappointed that I didn't get a wxPython solution. > > If the only way to get wxPython to correctly handle > this simple task is to code around it, I don't think > wxPython is really ready for Windows. > > Is there a better place to ask

Re: wxPython before MainLoop

2007-08-10 Thread Chris Mellon
On 8/9/07, [david] <[EMAIL PROTECTED]> wrote: > I'm disappointed that I didn't get a wxPython solution. > > If the only way to get wxPython to correctly handle > this simple task is to code around it, I don't think > wxPython is really ready for Windows. > This sort of blathering is really just in

Re: wxPython before MainLoop

2007-08-09 Thread Heikki Toivonen
[david] wrote: > I'd like to refresh the display before I start the main loop. We have this kind of situation in Chandler, where we display and update the splash screen before we enter MainLoop. 1. Create app object http://lxr.osafoundation.org/source/chandler/Chandler.py#080 2. During app ob

Re: wxPython before MainLoop

2007-08-09 Thread Stephen Hansen
On 8/9/07, [david] <[EMAIL PROTECTED]> wrote: > > I'm disappointed that I didn't get a wxPython solution. > > If the only way to get wxPython to correctly handle > this simple task is to code around it, I don't think > wxPython is really ready for Windows. A thread *is* basically the right answer

Re: wxPython before MainLoop

2007-08-09 Thread [david]
I'm disappointed that I didn't get a wxPython solution. If the only way to get wxPython to correctly handle this simple task is to code around it, I don't think wxPython is really ready for Windows. Is there a better place to ask? Regarding the suggestions: Bjoern, you're wrong. The GUI needs t

Re: wxPython before MainLoop

2007-08-09 Thread 7stud
On Aug 8, 11:25 pm, "[david]" <[EMAIL PROTECTED]> wrote: > I'd like to refresh the display before I start the main loop. > > I have code like this: > > app = App() > app.Show() > app.long_slow_init() > app.MainLoop() > > The main frame partly loads at Show, but because the mainloop has not > starte

Re: wxPython before MainLoop

2007-08-09 Thread kyosohma
On Aug 9, 12:25 am, "[david]" <[EMAIL PROTECTED]> wrote: > I'd like to refresh the display before I start the main loop. > > I have code like this: > > app = App() > app.Show() > app.long_slow_init() > app.MainLoop() > > The main frame partly loads at Show, but because the mainloop has not > starte

Re: wxPython before MainLoop

2007-08-09 Thread Bjoern Schliessmann
[david] wrote: > I'd like to refresh the display before I start the main loop. > [...] > I'd like to just make app.Show() finish correctly before running > long_slow_init. IMHO, this will bring no gain. If you see an inresponsive user interface or not is quite meaningless. > Or is there a better

Re: wxPython before MainLoop

2007-08-09 Thread 7stud
I reorganized my Thread class a little bit: class MyThread(threading.Thread): def __init__(self, a_frame): threading.Thread.__init__(self) self.frame_obj = a_frame def run(self): result = self.long_slow_init() wx.CallAfter(self.frame_obj.recei

Re: wxPython before MainLoop

2007-08-09 Thread 7stud
On Aug 8, 11:25 pm, "[david]" <[EMAIL PROTECTED]> wrote: > I'd like to refresh the display before I start the main loop. > > I have code like this: > > app = App() > app.Show() > app.long_slow_init() > app.MainLoop() > > The main frame partly loads at Show, but because the mainloop has not > starte

wxPython before MainLoop

2007-08-08 Thread [david]
I'd like to refresh the display before I start the main loop. I have code like this: app = App() app.Show() app.long_slow_init() app.MainLoop() The main frame partly loads at Show, but because the mainloop has not started yet, the display does not update until long_slow_init() finishes. Alter