Re: multiple constructor __init__

2012-02-03 Thread Emmanuel Mayssat
Yes, exactly like range http://coverage.livinglogic.de/Demo/classes/Range.py.html see handleargs function. Well that's short, but that's still too much code for what I want to do ;-) On Thu, Feb 2, 2012 at 7:43 PM, Terry Reedy wrote: > On 2/2/2012 8:09 PM, Emmanuel Mayssat wrote: > >> Hell

Re: multiple constructor __init__

2012-02-02 Thread Terry Reedy
On 2/2/2012 8:09 PM, Emmanuel Mayssat wrote: Hello all, I would like to instantiate my class as follow QObject(, ) QObject() an example would be http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html How can I do this without have to specify parent= in the second version (I al

Re: multiple constructor __init__

2012-02-02 Thread Chris Rebert
On Thu, Feb 2, 2012 at 5:09 PM, Emmanuel Mayssat wrote: > Hello all, > > I would like to instantiate my class as follow > > QObject(, ) > QObject() > > an example would be > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html > > How can I do this without have to specify parent=

multiple constructor __init__

2012-02-02 Thread Emmanuel Mayssat
Hello all, I would like to instantiate my class as follow QObject(, ) QObject() an example would be http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmenu.html How can I do this without have to specify parent= in the second version (I always need to supply the parent parameter, but I