Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_keeprefs.PointerToStructure Class Reference

print x._objects More...

List of all members.

Public Member Functions

def test

Detailed Description

print x._objects

print x.p[0]

Definition at line 127 of file

Member Function Documentation

Definition at line 128 of file

00129     def test(self):
00130         class POINT(Structure):
00131             _fields_ = [("x", c_int), ("y", c_int)]
00132         class RECT(Structure):
00133             _fields_ = [("a", POINTER(POINT)),
00134                         ("b", POINTER(POINT))]
00135         r = RECT()
00136         p1 = POINT(1, 2)
00138         r.a = pointer(p1)
        r.b = pointer(p1)

Here is the caller graph for this function:

The documentation for this class was generated from the following file: