Here is what I found:

I commented out line 35 of dStatusBar.py.  This causes the main form to 
open up in a non-maximized window with a status bar at the bottom.  If I 
maximize the form and exit the application it opens up next time 
maximized.  When it opens maximized the status bar flashes at the 
previous (non-maximized mode) and then is resized to the bottom of the 
maximized form.  If I close the form in the non-maximized mode, it opens 
up next time in the non-maximized mode.

So it appears to me that with line 35 in there, the form is opening up 
and showing the status bar before it is resized to the bottom of the 
main form.

        def layout(self):
                """ Wrap the wx version of the call, if possible. """
                self.Layout()
                for child in self.Children:
                        try:
                                child.layout()
                        except AttributeError:
                                pass
                try:
                        # Call the Dabo version, if present
#                       self.Sizer.layout()
                        pass
                except AttributeError:
                        pass
                if self._platformIsWindows:
                        self.refresh()
                



Paul McNett wrote:
> Jeff Johnson wrote:
>> Ed:  It is the form that is opened in myapp.py main program as the 
>> default window.  This is the only time it shows the status bar.  I will 
>> try what you mention here and see if it corrects the problem.
> 
> Ah, so it is the form set up as app.MainForm or app.MainFormClass? I think 
> that even 
> if a form isn't visible, Windows will automatically make it visible if you do 
> something like updating the status bar. This is stupid behavior by Windows, 
> but 
> that's what we have.
> 
> We probably have already instantiated the app.MainForm, and are setting up 
> and 
> requerying the bizobj which updates the status bar which implicitly shows the 
> form, 
> before it is ready to be shown.
> 
> Paul
-- 
Jeff

Jeff Johnson
[email protected]
Phoenix Python User Group - [email protected]


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to