equal
deleted
inserted
replaced
21 # You should have received a copy of the GNU General Public License |
21 # You should have received a copy of the GNU General Public License |
22 # along with this program; if not, write to the Free Software |
22 # along with this program; if not, write to the Free Software |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 |
24 |
25 |
25 |
26 from __future__ import absolute_import |
26 |
27 import wx |
27 import wx |
28 import wx.grid |
28 import wx.grid |
29 import wx.lib.buttons |
29 import wx.lib.buttons |
30 |
30 |
31 from controls import CustomGrid, CustomTable |
31 from controls import CustomGrid, CustomTable |
160 |
160 |
161 self.SetSizer(main_sizer) |
161 self.SetSizer(main_sizer) |
162 |
162 |
163 self.Table = ActionTable(self, [], GetActionTableColnames()) |
163 self.Table = ActionTable(self, [], GetActionTableColnames()) |
164 typelist = GetTypeList() |
164 typelist = GetTypeList() |
165 self.TypeList = map(_, typelist) |
165 self.TypeList = list(map(_, typelist)) |
166 self.TranslateType = dict([(_(value), value) for value in typelist]) |
166 self.TranslateType = dict([(_(value), value) for value in typelist]) |
167 self.ColSizes = [60, 90, 130, 200, 50] |
167 self.ColSizes = [60, 90, 130, 200, 50] |
168 self.ColAlignements = [wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT] |
168 self.ColAlignements = [wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT, wx.ALIGN_LEFT] |
169 |
169 |
170 self.ActionsGrid.SetTable(self.Table) |
170 self.ActionsGrid.SetTable(self.Table) |