648 |
return dialog is not None and dialog.IsShown() |
return dialog is not None and dialog.IsShown() |
649 |
|
|
650 |
def TableOpen(self): |
def TableOpen(self): |
|
print "TableOpen: not implemented" |
|
651 |
dlg = wxFileDialog(self, _("Open Table"), ".", "", |
dlg = wxFileDialog(self, _("Open Table"), ".", "", |
652 |
"DBF Files (*.dbf)|*.dbf|" + |
_("DBF Files (*.dbf)") + "|*.dbf|" + |
653 |
"CSV Files (*.csv)|*.csv|" + |
#_("CSV Files (*.csv)") + "|*.csv|" + |
654 |
"All Files (*.*)|*.*", |
_("All Files (*.*)") + "|*.*", |
655 |
wxOPEN) |
wxOPEN) |
656 |
if dlg.ShowModal() == wxID_OK: |
if dlg.ShowModal() == wxID_OK: |
657 |
#self.application.session.OpenTable(dlg.GetPath()) |
self.application.session.OpenTableFile(dlg.GetPath()) |
|
pass |
|
658 |
|
|
659 |
dlg.Destroy() |
dlg.Destroy() |
660 |
|
|
698 |
else: |
else: |
699 |
print "Other:", d.GetTitle() |
print "Other:", d.GetTitle() |
700 |
|
|
|
def TableHide(self): |
|
|
print "TableHide: not implemented" |
|
|
|
|
701 |
def TableJoin(self): |
def TableJoin(self): |
702 |
dlg = JoinDialog(self, _("Join Tables"), self.application.session) |
dlg = JoinDialog(self, _("Join Tables"), self.application.session) |
703 |
dlg.ShowModal() |
dlg.ShowModal() |
924 |
_method_command("table_open", _("&Open..."), "TableOpen") |
_method_command("table_open", _("&Open..."), "TableOpen") |
925 |
_method_command("table_close", _("&Close"), "TableClose") |
_method_command("table_close", _("&Close"), "TableClose") |
926 |
_method_command("table_show", _("&Show"), "TableShow") |
_method_command("table_show", _("&Show"), "TableShow") |
|
_method_command("table_hide", _("&Hide"), "TableHide") |
|
927 |
_method_command("table_join", _("&Join..."), "TableJoin") |
_method_command("table_join", _("&Join..."), "TableJoin") |
928 |
|
|
929 |
# Export only under Windows ... |
# Export only under Windows ... |
968 |
Menu("table", _("&Table"), |
Menu("table", _("&Table"), |
969 |
["table_open", "table_close", |
["table_open", "table_close", |
970 |
None, |
None, |
971 |
"table_show", "table_hide", |
"table_show", |
972 |
None, |
None, |
973 |
"table_join"]), |
"table_join"]), |
974 |
Menu("help", _("&Help"), |
Menu("help", _("&Help"), |