Cython APi: Added a width property to views, corresponding to their
column count
This commit is contained in:
@ -327,8 +327,15 @@ cdef class View(OBIWrapper) :
|
||||
for line in self :
|
||||
to_print = to_print + str(line) + "\n"
|
||||
return to_print
|
||||
|
||||
|
||||
# Width (column count) property getter
|
||||
@property
|
||||
def width(self):
|
||||
return self.pointer().infos.column_count
|
||||
|
||||
|
||||
# DMS property getter
|
||||
@property
|
||||
def dms(self):
|
||||
return self._dms
|
||||
|
Reference in New Issue
Block a user