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

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

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

revision 189 by bh, Tue May 28 12:39:17 2002 UTC revision 219 by bh, Thu Jul 18 12:55:07 2002 UTC
# Line 26  from Thuban.Model.load import load_sessi Line 26  from Thuban.Model.load import load_sessi
26  import view  import view
27  import tree  import tree
28  from interactor import Interactor  from interactor import Interactor
29  from mainwindow import MainWindow  import mainwindow
30    
31  from messages import SESSION_CHANGED  from messages import SESSION_CHANGED
32    
# Line 45  class ThubanApplication(wxApp, Publisher Line 45  class ThubanApplication(wxApp, Publisher
45      def OnInit(self):      def OnInit(self):
46          self.read_startup_files()          self.read_startup_files()
47          self.interactor = Interactor(None)          self.interactor = Interactor(None)
48          top = MainWindow(NULL, -1, self.interactor)          top = mainwindow.MainWindow(NULL, -1, self.interactor)
49          top.Show(true)          top.Show(true)
50          self.top = top          self.top = top
51          self.SetTopWindow(top)          self.SetTopWindow(top)
# Line 85  class ThubanApplication(wxApp, Publisher Line 85  class ThubanApplication(wxApp, Publisher
85              # There's no .thuban directory              # There's no .thuban directory
86              sys.stderr.write("No ~/.thuban directory\n")              sys.stderr.write("No ~/.thuban directory\n")
87    
88        def Session(self):
89            """Return the application's session object"""
90            return self.session
91    
92      def SetSession(self, session):      def SetSession(self, session):
93            """Make session the new session.
94    
95            Issue SESSION_CHANGED.
96            """
97          oldsession = self.session          oldsession = self.session
98          self.session = session          self.session = session
99          self.issue(SESSION_CHANGED)          self.issue(SESSION_CHANGED)

Legend:
Removed from v.189  
changed lines
  Added in v.219

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26