Show More
@@ -96,8 +96,8 b' class LeoNode(object, UserDict.DictMixin):' | |||||
96 |
|
96 | |||
97 | b = property(get_b, set_b) |
|
97 | b = property(get_b, set_b) | |
98 |
|
98 | |||
99 | def set_val(self, val): |
|
99 | def set_val(self, val): | |
100 |
self.b = |
|
100 | self.b = format_for_leo(val) | |
101 |
|
101 | |||
102 | v = property(lambda self: eval_node(self), set_val) |
|
102 | v = property(lambda self: eval_node(self), set_val) | |
103 |
|
103 | |||
@@ -176,12 +176,10 b' def workbook_complete(obj, prev):' | |||||
176 | def add_var(varname, value = _dummyval): |
|
176 | def add_var(varname, value = _dummyval): | |
177 | c.beginUpdate() |
|
177 | c.beginUpdate() | |
178 | try: |
|
178 | try: | |
179 |
|
179 | p2 = g.findNodeAnywhere(c,varname) | ||
180 | nodename = '@ipy-var ' + varname |
|
|||
181 | p2 = g.findNodeAnywhere(c,nodename) |
|
|||
182 | if not c.positionExists(p2): |
|
180 | if not c.positionExists(p2): | |
183 | p2 = c.currentPosition().insertAfter() |
|
181 | p2 = c.currentPosition().insertAfter() | |
184 |
c.setHeadString(p2, |
|
182 | c.setHeadString(p2,varname) | |
185 |
|
183 | |||
186 | c.setCurrentPosition(p2) |
|
184 | c.setCurrentPosition(p2) | |
187 | if value is _dummyval: |
|
185 | if value is _dummyval: |
General Comments 0
You need to be logged in to leave comments.
Login now