Thanks. But can I change returned by xml.get_widget() object type from
gtk.Window to HelloWindow?
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 14, 9:05 pm, Thinker <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> inline wrote:
> > Hello! I want to assign self to object of parent class in
> > constructor, like
>
> > def my_func(): ... return ParentClass()
On Mar 14, 9:05 pm, Thinker <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> inline wrote:
> > Hello! I want to assign self to object of parent class in
> > constructor, like
>
> > def my_func(): ... return ParentClass()
Hello!
I want to assign self to object of parent class in constructor, like
def my_func():
...
return ParentClass()
class MyClass (ParentClass):
def __init__(self):
self = my_func()
but it not work, because "object not initialized". What i can do?
--
http://mail.python.org/