저는 특별한 GObject를 정의하는 데 사용되는 몇 가지 도우미 함수가 있습니다. 이 함수는 class_init 중에 호출되어야합니다. 파이썬에서 이러한 객체를 직접 정의하려고합니다. PyGObject의 클래스 초기화 중에 클래스 구조체에 액세스 할 수 있습니까? 예를 들어PyGObject 클래스 초기화
:
from gi.repository import GObject
class Test (GObject):
...
foo = GObject.Property(type=str, default='bar')
# At this point is it possible to access the equivalent to
# klass in ns_test_class_init (NsTestClass *klass)?
...
def a_method (self):
...