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

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

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

revision 80 by bh, Mon Feb 4 19:53:01 2002 UTC revision 422 by frank, Thu Feb 20 16:23:31 2003 UTC
# Line 10  __version__ = "$Revision$" Line 10  __version__ = "$Revision$"
10  from wxPython.wx import *  from wxPython.wx import *
11  from wxPython.grid import *  from wxPython.grid import *
12    
13    from Thuban import _
14    
15  import view  import view
16  from dialogs import NonModalDialog  from dialogs import NonModalDialog
17  from controls import RecordListCtrl, RecordGridCtrl  from controls import RecordListCtrl, RecordGridCtrl
# Line 37  class IdentifyView(NonModalDialog): Line 39  class IdentifyView(NonModalDialog):
39    
40      def __init__(self, parent, interactor, name):      def __init__(self, parent, interactor, name):
41          NonModalDialog.__init__(self, parent, interactor, name,          NonModalDialog.__init__(self, parent, interactor, name,
42                                  "Identify Shape")                                  _("Identify Shape"))
43          self.interactor.Subscribe(SELECTED_SHAPE, self.selected_shape)          self.interactor.Subscribe(SELECTED_SHAPE, self.selected_shape)
44                    
45          panel = wxPanel(self, -1, style = wxWANTS_CHARS)          panel = wxPanel(self, -1, style = wxWANTS_CHARS)
# Line 46  class IdentifyView(NonModalDialog): Line 48  class IdentifyView(NonModalDialog):
48    
49          sizer = wxBoxSizer(wxVERTICAL)          sizer = wxBoxSizer(wxVERTICAL)
50          sizer.Add(self.list, 1, wx.wxEXPAND| wx.wxALL, 0)          sizer.Add(self.list, 1, wx.wxEXPAND| wx.wxALL, 0)
51            
52            self.SetSize(wxSize(300,200))
53          panel.SetAutoLayout(true)          panel.SetAutoLayout(true)
54          panel.SetSizer(sizer)          panel.SetSizer(sizer)
55          sizer.Fit(panel)          sizer.Fit(panel)

Legend:
Removed from v.80  
changed lines
  Added in v.422

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26