[GRASS-dev] splash screen image comes up too late [Re: Planning GRASS GIS 7.0.0RC2]

Anna Petrášová kratochanna at gmail.com
Mon Feb 9 06:32:15 PST 2015


On Mon, Feb 9, 2015 at 7:50 AM, Martin Landa <landa.martin at gmail.com> wrote:

> Hi,
>
> 2015-02-09 9:37 GMT+01:00 Moritz Lennert <mlennert at club.worldonline.be>:
> > I agree, again especially if I'm the only one with this issue.
> >
> > Don't change the startup logic with RC2. If this needs changing then this
> > should go into a point release.
>
> Absolutely agree.
>
> > FYI, however, here's a movie showing the three GUI startups in release64,
> > release70 and trunk, all three completely fresh checkouts and compiles:
> >
> > http://tomahawk.ulb.ac.be/moritz/splash_screen.ogv
>
> BTW, it's quite visible here that wxGUI in trunk starts more slowly
> (related to the recent changes in wxgui.py) compared to GRASS 70.
>

Perhaps we should go back  to the previous version. I would suggest to move
the GMFrame import after showing the splash screen (the diff is for release
branch):

===================================================================
--- wxgui.py (revision 64473)
+++ wxgui.py (working copy)
@@ -34,9 +34,7 @@
 except ImportError:
     SC = None

-from lmgr.frame import GMFrame

 class GMApp(wx.App):
     def __init__(self, workspace = None):
         """ Main GUI class.
@@ -79,6 +77,7 @@
         wx.Yield()

         # create and show main frame
+        from lmgr.frame import GMFrame
         mainframe = GMFrame(parent = None, id = wx.ID_ANY,
                             workspace = self.workspaceFile)


as a result on my computer, the splash screen is showed earlier. It
probably won't effect the problem Moritz has, but it's worth trying. I also
saw someone mentioning calling Refresh() and Update() on the splash screen
after showing it. Then, there is a more complicated solution
http://wiki.wxpython.org/SplashScreen%20While%20Loading.

Anna



> Martin
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.eu/mentors/landa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150209/8f24971a/attachment.html>


More information about the grass-dev mailing list