On 07/02/15 09:44, Martin Landa wrote:
Hi,

2015-02-06 17:32 GMT+01:00 Moritz Lennert <mlenn...@club.worldonline.be>:
When I look at the example splashscreen code at [1], I see that the splash
screen is defined as a separate class that is called from the wxApp's OnInit
function and then calls the main GUI from its OnExit function. Using the
example code here with the 400K version of the splash screen works
perfectly.

I'm not familiar enough with wxPython and the wxGUI to adapt this quickly,
but maybe this could inspire some of the wx gurus...

I modified wxgui.py in trunk (r64489) accordingly. Testing highly welcome.


The splash screen now looks good, but I get:

File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/wxgui.py", line 87, in OnExit
    workspace = self.workspaceFile)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/lmgr/frame.py", line 122, in __init__
    self._moduleTreeBuilder = LayerManagerModuleTree()
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/lmgr/menudata.py", line 66, in __init__
    MenuTreeModelBuilder.__init__(self, fallback)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/core/menutree.py", line 66, in __init__
    expAddons(xmlTree)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/core/toolboxes.py", line 274, in expandAddons
    _expandRuntimeModules(root)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/core/toolboxes.py", line 515, in _expandRuntimeModules
    desc, keywords = _loadMetadata(name)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/gui/wxpython/core/toolboxes.py", line 541, in _loadMetadata
    task = gtask.parse_interface(module)
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/task.py", line 509, in parse_interface
    tree = etree.fromstring(get_interface_description(name))
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-unknown-linux-gnu/etc/python/grass/script/task.py", line 493, in get_interface_description
    "\n\nDetails: %(det)s") % {'cmd': cmd, 'det': e}
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)

And the GUI does not appear.
Don't know if this is related to your fix.

Moritz

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to