|
@@ -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
|