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

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

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

revision 274 by bh, Thu Aug 22 16:25:46 2002 UTC revision 420 by frank, Thu Feb 20 16:22:46 2003 UTC
# Line 16  from wxPython.grid import wxPyGridTableB Line 16  from wxPython.grid import wxPyGridTableB
16       wxGridTableMessage, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, \       wxGridTableMessage, wxGRIDTABLE_NOTIFY_ROWS_APPENDED, \
17       wxGRIDTABLE_NOTIFY_ROWS_DELETED, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES       wxGRIDTABLE_NOTIFY_ROWS_DELETED, wxGRIDTABLE_REQUEST_VIEW_GET_VALUES
18    
19    from Thuban import _
20    
21  # FIXME: the wx_value_type_map should be moved from tableview to a  # FIXME: the wx_value_type_map should be moved from tableview to a
22  # separate module  # separate module
23  from tableview import wx_value_type_map  from tableview import wx_value_type_map
# Line 29  class RecordListCtrl(wxListCtrl): Line 31  class RecordListCtrl(wxListCtrl):
31      def __init__(self, parent, id):      def __init__(self, parent, id):
32          wxListCtrl.__init__(self, parent, id, style = wxLC_REPORT)          wxListCtrl.__init__(self, parent, id, style = wxLC_REPORT)
33    
34          self.InsertColumn(0, "Field")          self.InsertColumn(0, _("Field"))
35          self.SetColumnWidth(0, wxLIST_AUTOSIZE_USEHEADER)          self.SetColumnWidth(0, 200)
36          self.InsertColumn(1, "Value")          self.InsertColumn(1, _("Value"))
37          self.SetColumnWidth(1, wxLIST_AUTOSIZE_USEHEADER)          self.SetColumnWidth(1, 100)
38    
39          # vaues maps row numbers to the corresponding python values          # vaues maps row numbers to the corresponding python values
40          self.values = {}          self.values = {}
# Line 178  class RecordTable(wxPyGridTableBase): Line 180  class RecordTable(wxPyGridTableBase):
180    
181      # Called when the grid needs to display labels      # Called when the grid needs to display labels
182      def GetColLabelValue(self, col):      def GetColLabelValue(self, col):
183          return "Value"          return _("Value")
184    
185      def GetRowLabelValue(self, row):      def GetRowLabelValue(self, row):
186          if row < self.num_rows:          if row < self.num_rows:

Legend:
Removed from v.274  
changed lines
  Added in v.420

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26