extending event class in wxpython

2005-04-07 Thread suryaprakashg
Hi all, I have a sub-classed wxtreectrl but i want to create an event when a node is added to my class . But i dont seem to understand how to do that. I want to create my own NODE_ADDED event which would be handled by main frame which creates an instance of my treectrl. Any help would be greatly

Re: Python v.s. c++

2005-02-10 Thread suryaprakashg
xiaobin yang wrote: > Hi, if i am already skillful with c++. Is it useful to learn python? thanks! Defenitly , It is much easier to convert an idea to a living model easily in python and with out much effort . You can always mix things with C++ and python ( for optimization or whatever)with s

Re: Newbie: SWIG or SIP?

2005-02-10 Thread suryaprakashg
Look at this , this might be more simple to use http://starship.python.net/crew/theller/ctypes/ Phil Thompson wrote: > > I have a third-party DLL and it's associated .h file. The DLL was written > > in C. I have neither the associated .c files nor the .obj files for the > > DLL. Can I use SW

Re: two questions - no common theme

2005-02-09 Thread suryaprakashg
def walktree(self,top=".", depthfirst=False): """ Walk a directory tree, starting from 'top' This code is based on os.path.walk, with the callback function replaced by a yield and recursion replaced by iteration """ if type(top) != types.StringType: