Просмотр исходного кода

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 лет назад
Родитель
Сommit
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,