/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/mainwindow.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1648 by bh, Mon Aug 25 13:55:35 2003 UTC revision 1695 by bh, Mon Sep 1 12:45:07 2003 UTC
# Line 19  import os Line 19  import os
19  import copy  import copy
20    
21  from wxPython.wx import *  from wxPython.wx import *
 from wxPython.wx import __version__ as wxPython_version  
22    
23  import Thuban  import Thuban
 import Thuban.version  
24    
25  from Thuban import _  from Thuban import _
26  from Thuban.Model.session import create_empty_session  from Thuban.Model.session import create_empty_session
# Line 511  class MainWindow(DockFrame): Line 509  class MainWindow(DockFrame):
509      def AddDBLayer(self):      def AddDBLayer(self):
510          """Add a layer read from a database"""          """Add a layer read from a database"""
511          session = self.application.Session()          session = self.application.Session()
512          dlg = ChooseDBTableDialog(self.application.Session(), self,-1, "")          dlg = ChooseDBTableDialog(self, self.application.Session())
513    
514          if dlg.ShowModal() == wxID_OK:          if dlg.ShowModal() == wxID_OK:
515              dbconn, dbtable = dlg.GetTable()              dbconn, dbtable = dlg.GetTable()

Legend:
Removed from v.1648  
changed lines
  Added in v.1695

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26