705 |
# |
# |
706 |
self.fields = wxChoice(panel, ID_PROPERTY_SELECT,) |
self.fields = wxChoice(panel, ID_PROPERTY_SELECT,) |
707 |
|
|
708 |
self.num_cols = layer.table.field_count() |
self.num_cols = layer.table.NumColumns() |
709 |
# just assume the first field in case one hasn't been |
# just assume the first field in case one hasn't been |
710 |
# specified in the file. |
# specified in the file. |
711 |
self.__cur_field = 0 |
self.__cur_field = 0 |
718 |
self.fields.SetClientData(0, None) |
self.fields.SetClientData(0, None) |
719 |
|
|
720 |
for i in range(self.num_cols): |
for i in range(self.num_cols): |
721 |
type, name, len, decc = layer.table.field_info(i) |
name = layer.table.Column(i).name |
722 |
self.fields.Append(name) |
self.fields.Append(name) |
723 |
|
|
724 |
if name == field: |
if name == field: |