818 |
|
|
819 |
def GetList(self): |
def GetList(self): |
820 |
|
|
821 |
|
_list = [] |
822 |
|
|
823 |
if self.layer.table is not None: |
if self.layer.table is not None: |
824 |
wxBeginBusyCursor() |
wxBeginBusyCursor() |
825 |
_list = self.layer.table.UniqueValues(self.fieldName) |
|
826 |
|
# |
827 |
|
# FIXME: Replace with a call to table when the method |
828 |
|
# has been written to get all the values |
829 |
|
# |
830 |
|
table = self.layer.table |
831 |
|
for i in range(table.NumRows()): |
832 |
|
_list.append(table.ReadValue(i, self.fieldName)) |
833 |
|
|
834 |
wxEndBusyCursor() |
wxEndBusyCursor() |
|
return _list |
|
835 |
|
|
836 |
return [] |
return _list |
837 |
|
|
838 |
def OnRangeText(self, event): |
def OnRangeText(self, event): |
839 |
|
|