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

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

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

revision 52 by bh, Mon Sep 10 16:05:13 2001 UTC revision 374 by jan, Mon Jan 27 14:20:02 2003 UTC
# Line 9  __version__ = "$Revision$" Line 9  __version__ = "$Revision$"
9    
10  from wxPython.wx import *  from wxPython.wx import *
11    
12    from Thuban import _
13    
14  from controls import SelectableRecordListCtrl  from controls import SelectableRecordListCtrl
15    
16  class LabelListCtrl(SelectableRecordListCtrl):  class LabelListCtrl(SelectableRecordListCtrl):
# Line 21  class LabelListCtrl(SelectableRecordList Line 23  class LabelListCtrl(SelectableRecordList
23  class LabelDialog(wxDialog):  class LabelDialog(wxDialog):
24    
25      def __init__(self, parent, table, shape_index):      def __init__(self, parent, table, shape_index):
26          wxDialog.__init__(self, parent, -1, "Label Values", wxDefaultPosition,          wxDialog.__init__(self, parent, -1, _("Label Values"),
27                              wxDefaultPosition,
28                            style = wxRESIZE_BORDER|wxCAPTION|wxDIALOG_MODAL)                            style = wxRESIZE_BORDER|wxCAPTION|wxDIALOG_MODAL)
29    
30          self.parent = parent          self.parent = parent
# Line 34  class LabelDialog(wxDialog): Line 37  class LabelDialog(wxDialog):
37          top_box.Add(self.list, 1, wxEXPAND|wxALL, 4)          top_box.Add(self.list, 1, wxEXPAND|wxALL, 4)
38    
39          box = wxBoxSizer(wxHORIZONTAL)          box = wxBoxSizer(wxHORIZONTAL)
40          box.Add(wxButton(self, wxID_OK, "OK"), 0, wxALL, 4)          box.Add(wxButton(self, wxID_OK, _("OK")), 0, wxALL, 4)
41          box.Add(wxButton(self, wxID_CANCEL, "Cancel"), 0, wxALL, 4)          box.Add(wxButton(self, wxID_CANCEL, _("Cancel")), 0, wxALL, 4)
42          top_box.Add(box, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10)          top_box.Add(box, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 10)
43    
44          EVT_BUTTON(self, wxID_OK, self.OnOK)          EVT_BUTTON(self, wxID_OK, self.OnOK)

Legend:
Removed from v.52  
changed lines
  Added in v.374

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26