[Vala] Constructor defined in a Vala class seems not to be called in Python
- From: Andrea Stagi <stagi andrea gmail com>
- To: vala-list gnome org
- Subject: [Vala] Constructor defined in a Vala class seems not to be called in Python
- Date: Mon, 2 Jul 2012 17:09:37 +0200
Hi all,
I'm recently writing a library in Vala and want to create bindings for
Python. I'm experiencing a weird problem, at least for me: in Vala I
define a constructor for my object, let's call it Foo:
namespace MyNamespace {
class Foo : Object {
public Foo() {
/* Some code to execute */
}
/* other methods definitions */
}
}
After that I compile my library and use it from Python through the
introspection.. The problem is that in Python creating my object in
this way:
myFoo = MyNamespace.Foo()
my object is successfully created but its constructor code I specified
is never called... Why this? How can I call some code during the
creation of my object?
Thanks in advance,
Regards
--
=.4ndrea.Stagi.=
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]