[GRASS-dev] [GRASS GIS] #3153: g.gui.animation freezes when trying to add decorations
GRASS GIS
trac at osgeo.org
Tue Sep 27 20:52:11 PDT 2016
#3153: g.gui.animation freezes when trying to add decorations
--------------------------+-----------------------------
Reporter: veroandreo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: g.gui.animation
CPU: Unspecified | Platform: Linux
--------------------------+-----------------------------
Comment (by annakrat):
I still can't reproduce it, even with wxpython 3.0.2.0. First try using
different font, but I don't think that would help. Next try to apply this
change and recompile:
{{{
Index: animation/utils.py
===================================================================
--- animation/utils.py (revision 69577)
+++ animation/utils.py (working copy)
@@ -245,7 +245,7 @@
def RenderText(text, font, bgcolor, fgcolor):
"""Renderes text with given font to bitmap."""
- dc = wx.MemoryDC()
+ dc = wx.MemoryDC(wx.EmptyBitmap(20, 20))
dc.SetFont(font)
w, h = dc.GetTextExtent(text)
bmp = wx.EmptyBitmap(w + 2, h + 2)
}}}
I hope this could help, otherwise I have no idea.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3153#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list