| 1 | initial version |
After replacing
group_delay_spec(omega) = gds(str_GroupDelaySpec)
print(group_delay_spec(omega))
print(type(group_delay_spec(omega)))
by
group_delay_spec = gds(str_GroupDelaySpec)
print(group_delay_spec)
print(type(group_delay_spec))
the above worked for me, the Tkinter input box was opened, i typed omega + 5/2 inside and pressed the run button. Results in the sage console launching the Tk box:
omega + 5/2
<type 'str'>
omega + 5/2
<type 'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'>
Inside of the Tk-function there is no way to "preparse" the "function" group_delay_spec(omega) (depending on no omega in fact), the left side in group_delay_spec(omega) = gds(str_GroupDelaySpec) must have a sense "as is". If a function is really needed, the the lambda definition or a clear def block should work.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.