ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] showing and moving the main window
by Kevin Altis other posts by this author
Apr 24 2002 5:36AM messages near this date
[Pythoncard-users] showing and moving the main window | [Pythoncard-users] PythonCard for Visual Basic (VB) users
>  From: David Primmer
> 
>  I have my window positions stored in a config file and I load their
>  positions at startup. I can keep them all hidden until they've been
>  moved except for the main window. Even if I call self.Show(0) as the
>  first line in onopenbackground and then don't call Show until I've moved
>  the window, I get a flash of window on the screen and then it reappears
>  in the intended location. How can I avoid this?

The window is shown automatically in the OnInit method of class
PythonCardApp in model.py. The openBackground event is generated after this
occurs, so you don't have any control over it. We could have an optional
'visible' property for the background which if set to 0 would prevent the
background from being shown and then you could explictly make it visible in
the openBackground handler.

I could add 'visible' later this week unless there are objections.

ka


_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
David Primmer
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved