On Jan 11, 2006, at 9:36 PM, Don Taylor wrote:
I am getting syntax errors now:
I ran your code two different ways, and it worked fine in both.
I copied all three files to their own directory.
First, I ran the Designer, opened up the .cdxml file, and chose
'Run...' from the menu. When I clicked on the top button, it printed
'foo' as expected.
Then I switched to the directory where the files were, and ran
'python test2.py'. Again, clicking the top button printed 'foo'. So I
don't know why you are having this syntax error.
One thing I would caution you about, though: don't use 'str' as
a name in your code, since it's a reserved word. I've gotten burned
by that in code that looked something like:
def myfunc(str):
<do some stuff>
zz = 42
yy = str(zz)
In this code, 'str' is now a character string, not the built-in
Python type, and this will throw a 'not callable' exception.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users