浏览代码

fix https://trac.osgeo.org/grass/changeset/37437

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@37438 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父节点
当前提交
88d180d45e
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      gui/wxpython/gui_modules/prompt.py

+ 5 - 1
gui/wxpython/gui_modules/prompt.py

@@ -158,7 +158,11 @@ class TextCtrlAutoComplete(wx.TextCtrl, listmix.ColumnSorterMixin):
         self.itemDataMap = dict()
         
         # widgets
-        self.dropdown = wx.PopupWindow(self)
+        try:
+            self.dropdown = wx.PopupWindow(self)
+        except NotImplementedError:
+            self.Destroy()
+            raise NotImplementedError
         
         # create the list and bind the events
         self.dropdownlistbox = PromptListCtrl(parent = self.dropdown,