Commit 4b2dd629 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Remove console output

All data is now displayed in a tree widget
parent 6f8d3c24
......@@ -411,9 +411,10 @@ class asn1Editor(QTreeView):
child.setText(str(len(value)))
self.updateModel(root.child(i), value, len(value))
def updateVariable(self, var, row=0, root=None):
def updateVariable(self, var, root=None):
''' Update the variable value - used when loading a TC or receiving a TM '''
root = root or self.treeItem
row = root.row()
name = root.text()
value = var[name]
asnType = self.model.item(row, 1).text()
......
......@@ -2,7 +2,7 @@
# Resource object code
#
# Created: Wed Dec 24 16:44:55 2014
# Created: Wed Dec 24 18:12:18 2014
# by: The Resource Compiler for PySide (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
......
......@@ -22,6 +22,7 @@ from PySide.QtCore import Slot, Qt
import asn1_value_editor
from standalone_editor import asn1sccToasn1ValueEditorTypes
import vn
try:
import opengeode
......@@ -131,7 +132,7 @@ class sdlHandler(object):
for var, (sort, _) in self.proc.variables.viewitems():
# get internal variables, translate them to swig, and print them
typename = sort.ReferencedTypeName.replace('-', '_')
print 'Reading variable "{}" of type "{}"'.format(var, typename)
#print 'Reading variable "{}" of type "{}"'.format(var, typename)
get_size = getattr(self.dll, "{}_size".format(var))
get_size.restype = ctypes.c_uint
size = get_size()
......@@ -149,4 +150,7 @@ class sdlHandler(object):
setter = getattr(ASN1.DV, "SetDataFor_{}".format(typename))
setter(asn1_instance._ptr, swig_ptr)
gser = asn1_instance.GSER()
print "GSER= '{}'".format(gser)
#print "GSER= '{}'".format(gser)
as_pyside = vn.fromValueNotationToPySide(var, gser)
#print "PYSIDE:", as_pyside
self.asn1_editor.updateVariable(as_pyside, root=self.tree_items[var])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment