Użytkownik Ed Leafe napisał:
>       Are you displaying a login dialog *before* the main app loop starts?  
> That's the issue here, since events will not have any effect until the  
> app event loop is running.
>   

Meantime I discovered an error in window position restoration:
  File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dFormMixin.py", line 
1011, in _setWindowState
self.ShowFullScreen()
 File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py", 
line 394, in ShowFullScreen
return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs)
TypeError: TopLevelWindow_ShowFullScreen() takes at least 2 arguments (1 
given)

But about your suggestion.
It is strange but showing any other form including logon form causing 
main form
redisplays correctly.
I have following situation:
1) app.start()
2) main form if maximized is displayed garbaged, if sized - ok
3) no matter how I try, MainForm.show(), refresh(), Layout() -
    nothing is working until next step
4) any_form.show() - then MainForm is redisplayed correctly.

In application without logon form this garbage is almost imperceptible
(unless it's very slow machine).
But I have specific situation, where I use logon form and customized
loginDialogHook method where I connect with remote server to get
available user list to fill combobox on logon form.
When connection is slow or server unavailable, within several seconds
main form remains garbaged.
Just simply put code:
    import time
    time.sleep(5)
between app.setup() and app.start().
And I repeat - everything is ok. when main form isn't maximized.
I use python 2.5.4 on Windows XP SP2 wxPython 2.8.10.1 and latest dabo 
from SVN.

-- 
Regards
Jacek Kałucki



_______________________________________________
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