浏览代码

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

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

+ 5 - 5
gui/wxpython/gui_modules/wxnviz.py

@@ -27,11 +27,6 @@ from grass.lib.g3d   import *
 from grass.lib.ogsf  import *
 from grass.lib.nviz  import *
 
-errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
-errfunc = errtype(print_error)
-pertype = CFUNCTYPE(UNCHECKED(c_int), c_int)
-perfunc = pertype(print_progress)
-
 from debug import Debug
 
 log      = None
@@ -57,6 +52,11 @@ def print_progress(value):
     
     return 0
 
+errtype = CFUNCTYPE(UNCHECKED(c_int), String, c_int)
+errfunc = errtype(print_error)
+pertype = CFUNCTYPE(UNCHECKED(c_int), c_int)
+perfunc = pertype(print_progress)
+
 class Nviz(object):
     def __init__(self, glog, gprogress):
         """!Initialize Nviz class instance