示例#1
0
 def field_widths(self):
     "Returns a list of the maximum field widths for the features."
     return [capi.get_field_width(capi.get_field_defn(self._ldefn, i))
             for i in xrange(self.num_fields)]
示例#2
0
 def width(self):
     "Returns the width of this Field."
     return capi.get_field_width(self.ptr)