22 |
|
|
23 |
from messages import SHAPES_SELECTED, SESSION_REPLACED |
from messages import SHAPES_SELECTED, SESSION_REPLACED |
24 |
from Thuban.Model.messages import TABLE_REMOVED, MAP_LAYERS_REMOVED |
from Thuban.Model.messages import TABLE_REMOVED, MAP_LAYERS_REMOVED |
25 |
|
from Thuban.UI.common import ThubanBeginBusyCursor, ThubanEndBusyCursor |
26 |
|
|
27 |
wx_value_type_map = {FIELDTYPE_INT: wxGRID_VALUE_NUMBER, |
wx_value_type_map = {FIELDTYPE_INT: wxGRID_VALUE_NUMBER, |
28 |
FIELDTYPE_DOUBLE: wxGRID_VALUE_FLOAT, |
FIELDTYPE_DOUBLE: wxGRID_VALUE_FLOAT, |
434 |
event.Skip() |
event.Skip() |
435 |
|
|
436 |
def OnQuery(self, event): |
def OnQuery(self, event): |
437 |
wxBeginBusyCursor() |
ThubanBeginBusyCursor() |
438 |
try: |
try: |
439 |
|
|
440 |
text = self.combo_value.GetValue() |
text = self.combo_value.GetValue() |
496 |
self.grid.SelectRow(ids[0], True) |
self.grid.SelectRow(ids[0], True) |
497 |
|
|
498 |
finally: |
finally: |
499 |
wxEndBusyCursor() |
ThubanEndBusyCursor() |
500 |
|
|
501 |
def OnSaveAs(self, event): |
def OnSaveAs(self, event): |
502 |
dlg = wxFileDialog(self, _("Export Table To"), ".", "", |
dlg = wxFileDialog(self, _("Export Table To"), ".", "", |