pypspaplots.pyx 400 Bytes
Newer Older
1 2 3 4 5 6

# distutils: language = c++

from pspaplots cimport pspaplot
from libcpp.string cimport string

7
cdef class PyPspaPlots:
8 9 10 11 12 13 14 15 16 17 18 19 20
    cdef pspaplot *ptr

    def __cinit__(self):
        self.ptr = new pspaplot()

    def __cinit__(self, string s):
        self.ptr = new pspaplot( s )

    def __dealloc__(self):
        del self.ptr
	
    def settings(self, string s):
        return self.ptr.settings( s )