Hi!<br><br>I am writing a supposed will be large aplication in PyQt.<br><br><a href="http://opencoffee.lnxteam.org">http://opencoffee.lnxteam.org</a> (sorry, mainly spanish site/project but will have translations..)<br><br>
Cheers.<br><br><div class="gmail_quote">2009/2/24 Toby Dickenson <span dir="ltr"><<a href="mailto:tdickenson@geminidataloggers.com">tdickenson@geminidataloggers.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Withers wrote:<br>
<div class="Ih2E3d"><br>
> Toby Dickenson wrote:<br>
>> * Plan to have a splash screen with a progress bar :-(<br>
><br>
> How do you do this with PyQt?<br>
<br>
</div>Obviously you need to show the splash screen widget before importing the<br>
majority of your application code. The import statement is usually seen at<br>
the top of a module but it works inside a function too, so we have one<br>
function which imports a few module (or performs other initialisation<br>
tasks), bumps the progress bar by 10%, and repeats.<br>
<br>
The last few lines of that function imports the module containing the main<br>
widget, closes the splash screen, then shows the main widget.<br>
<br>
For extra points you could import modules after showing the main widget,<br>
either in a thread or on demand when functionality is needed. But I like<br>
the reassurance that any SyntaxErrors get flushed out before that main<br>
widget is shown.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a><br>