[GRASS-dev] [GRASS GIS] #3402: g.gui.gmodeler: trying to add command pushes CPU to 100% and provokes freeze
GRASS GIS
trac at osgeo.org
Fri Aug 25 08:49:14 PDT 2017
#3402: g.gui.gmodeler: trying to add command pushes CPU to 100% and provokes
freeze
--------------------------+-----------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.2.2
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: gmodeler freeze
CPU: Unspecified | Platform: Unspecified
--------------------------+-----------------------------
Comment (by annakrat):
Try this if it helps:
{{{
Index: gui_core/widgets.py
===================================================================
--- gui_core/widgets.py (revision 71422)
+++ gui_core/widgets.py (working copy)
@@ -1087,7 +1087,7 @@
self._search.Bind(wx.EVT_TEXT_ENTER, self.OnEnter)
if self._showTip:
- self._searchTip = StaticWrapText(parent=self, id=wx.ID_ANY,
+ self._searchTip = wx.StaticText(parent=self, id=wx.ID_ANY,
size=(-1, 35))
if self._showChoice:
@@ -1160,6 +1160,7 @@
label = _("%d modules match") % len(commands)
if self._showTip:
self._searchTip.SetLabel(label)
+ self._searchTip.Wrap(self.GetSize()[0])
self.showNotification.emit(message=label)
@@ -1193,6 +1194,7 @@
for module in self._results:
if cmd == module.data['command']:
self._searchTip.SetLabel(module.data['description'])
+ self._searchTip.Wrap(self.GetSize()[0])
break
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3402#comment:12>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list