Ver código fonte

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 anos atrás
pai
commit
b6f9b82a1e
1 arquivos alterados com 5 adições e 5 exclusões
  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