[Gvsig_usuarios] Script tamaño de ventana de vista
sinorfavela
fircorreo en yahoo.es
Vie Abr 29 09:39:55 CEST 2016
Buenas Óscar,
Muchas gracias! Aunque me genera un error que, como soy muy novato y torpe
no consigo detectar la razón...
Al ejecutarlo obtengo:
/TypeError: getMainWindow(): 1st arg can't be coerced to
org.gvsig.app.project.documents.Document in <script> at line number 16
org.gvsig.scripting.ExecuteErrorException: TypeError: getMainWindow(): 1st
arg can't be coerced to org.gvsig.app.project.documents.Document in <script>
at line number 16
at
org.gvsig.scripting.impl.DefaultScriptingScript.invokeFunction(DefaultScriptingScript.java:314)
at
org.gvsig.scripting.impl.DefaultScriptingScript.run(DefaultScriptingScript.java:301)
at
org.gvsig.scripting.impl.DefaultScriptingScript$ScriptTask.run(DefaultScriptingScript.java:372)
Caused by: javax.script.ScriptException: TypeError: getMainWindow(): 1st arg
can't be coerced to org.gvsig.app.project.documents.Document in <script> at
line number 16
at
org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:191)
at org.python.jsr223.PyScriptEngine.invokeFunction(PyScriptEngine.java:126)
at
org.gvsig.scripting.impl.DefaultScriptingScript.invokeFunction(DefaultScriptingScript.java:312)
... 2 more
Caused by: Traceback (most recent call last):
File "<script>", line 16, in main
TypeError: getMainWindow(): 1st arg can't be coerced to
org.gvsig.app.project.documents.Document
at org.python.core.Py.TypeError(Py.java:221)
at
org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:209)
at
org.python.core.PyReflectedFunction.throwBadArgError(PyReflectedFunction.java:312)
at
org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:321)
at
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:167)
at
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
at org.python.core.PyObject.__call__(PyObject.java:422)
at org.python.core.PyObject.__call__(PyObject.java:426)
at org.python.core.PyMethod.__call__(PyMethod.java:139)
at org.python.pycode._pyx23.main$1(<script>:23)
at org.python.pycode._pyx23.call_function(<script>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyFunction.function___call__(PyFunction.java:376)
at org.python.core.PyFunction.__call__(PyFunction.java:371)
at org.python.core.PyFunction.__call__(PyFunction.java:361)
at org.python.core.PyFunction.__call__(PyFunction.java:356)
at org.python.jsr223.PyScriptEngine.invokeFunction(PyScriptEngine.java:124)
... 3 more/
Gracias por la ayuda!
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Script-tama-o-de-ventana-de-vista-tp5263371p5263436.html
Sent from the gvSIG usuarios mailing list archive at Nabble.com.
Más información sobre la lista de distribución gvSIG_usuarios