Ed Leafe wrote:
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.
Ok, I will try it again. This was the first time that I have used svn
so maybe I screwed up the install of dabo from svn. I will try last
night's tarball as well.
However, a question. Looking at:
def main():
app = dabo.dApp()
app.MainFormClass = "test2.cdxml"
app.start()
I am guessing that dApp processes the test2.cdxml file to generate
temporary Python containing a whack of wxPython stuff. If so then can I
look at this generated Python somehow?
I also noticed that the Editing window has a (non-operational) Save as
Class menu item - is this going to be used to save a Python/wxPython
version of the form?
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.
Yes, you are right - I was just being sloppy. Thanks.
Don.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users