using exec() to instantiate a new object.

2008-11-07 Thread RyanN
Hello, I'm trying to teach myself OOP to do a data project involving hierarchical data structures. I've come up with an analogy for testing involving objects for continents, countries, and states where each object contains some attributes one of which is a list of objects. E.g. a country will con

Re: using exec() to instantiate a new object.

2008-11-10 Thread RyanN
Thank you both, I knew there had to be a good way of doing this. -Ryan -- http://mail.python.org/mailman/listinfo/python-list

Re: using exec() to instantiate a new object.

2008-11-10 Thread RyanN
On Nov 10, 7:47 am, RyanN wrote: > Thank you both, I knew there had to be a good way of doing this. > > -Ryan Just an update. I used dictionaries to hold objects and their names. I'm beginning to understand better. Now to apply this to my actual problem. Here's the code I en

win32com and DispatchWithEvents

2008-11-13 Thread RyanN
Greetings, I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal program) without much success. I've done a bunch of searching and found some examples using IE: This works but doesn't handle the "Event Driven Functions": haObj = win32com.client.Dispatch(r"HAWin32") And so doe

Re: win32com and DispatchWithEvents

2008-11-14 Thread RyanN
On Nov 13, 2:16 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Nov 13, 10:27 am, RyanN <[EMAIL PROTECTED]> wrote: > > > > > Greetings, > > > I'm trying to get DispatchWithEvents() to work with HyperAccess > > (terminal program) without much suc