/[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 6 by bh, Tue Aug 28 15:41:52 2001 UTC revision 39 by bh, Thu Sep 6 17:18:22 2001 UTC
# Line 39  class ThubanApplication(wxApp, Publisher Line 39  class ThubanApplication(wxApp, Publisher
39      """      """
40    
41      def OnInit(self):      def OnInit(self):
         # ugly hack to set the global app object before window-classes  
         # are instantiated  
         import main  
         main.app = self  
42          self.interactor = Interactor(None)          self.interactor = Interactor(None)
43          top = MainWindow(NULL, -1)          top = MainWindow(NULL, -1, self.interactor)
44          top.Show(true)          top.Show(true)
45          self.top = top          self.top = top
46          self.SetTopWindow(top)          self.SetTopWindow(top)
47          self.session = None          self.session = None
48          self.create_session()          self.create_session()
   
         f = wxFrame(top, -1, 'test', wxDefaultPosition, wxSize(300, 300))  
         self.tree = tree.myTreeCtrlPanel(f, self)  
         f.Show(true)  
49          return true          return true
50    
51      def SetSession(self, session):      def SetSession(self, session):

Legend:
Removed from v.6  
changed lines
  Added in v.39

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26