[Tutor] Tutor Digest, Vol 29, Issue 68

Alan Gauld alan.gauld at btinternet.com
Thu Jul 27 11:25:39 CEST 2006


> I just making a small script to manipulate visio object attributes 
> in my
> network documentation via com,

OK so far :-)

> It works now from Python prompt. I just wanted to put this 
> functionality
> into a small wxpython application and building up the menus like
> pythoncard.

And Ok with this I think, but....
Are you actually using PythonCard or are you using wxPython directly?

> So, when there was a functionname like OnMenuShowAssetNumber,
> I would append a new menuitem with ShowAssetNumber.

OK, But I still don't see why you need getattr.
Its your code, you know what the functions are, you can build
the menu directly. Why use getattr?

Alan G. 





More information about the Tutor mailing list