OSDN Git Service

marshal database generator & accessor
[amulettoolsmh4/main.git] / view / notebookamuletview.py
index 3f79f19..ba848f8 100644 (file)
@@ -34,8 +34,6 @@ class NoteBookAmuletView():
         self.grid_seed2s = xrc.XRCCTRL(self.frame, "GridAmuletSeed2s")
         self.grid_seed2s.CreateGrid(1, constnumbers.NUM_AMULET_SEED2S_GRID_COL)
         self.grid_seed2s.SetColLabelValue(0, constnumbers.LABEL_FORMAT_AMULET_SEED2S_GRID_COL1)
-        self.grid_seed2s.SetColLabelValue(1, constnumbers.LABEL_FORMAT_AMULET_SEED2S_GRID_COL2)
-        self.grid_seed2s.SetColLabelValue(2, constnumbers.LABEL_FORMAT_AMULET_SEED2S_GRID_COL3)
         self.grid_seed2s.DisableDragGridSize()
         self.grid_seed2s.EnableEditing(False)
         self.grid_seed2s.SetSelectionMode(wx.grid.Grid.wxGridSelectRows)
@@ -241,7 +239,7 @@ class NoteBookAmuletView():
 
     def set_grid_seed2s_items(self, items_dict):
         u""" Seed2一覧のGridに値をセットする。
-        引数はSeed2 -> (str_renkin_type, tenun555_num, tenun888)の辞書とする。
+        引数はSeed2 -> str_renkin_typeの辞書とする。
         Noneが与えられた時はClearする"""
 
         if items_dict is not None:
@@ -254,10 +252,8 @@ class NoteBookAmuletView():
 
             for row, seed2 in enumerate(sorted(items_dict.keys())):
                 self.grid_seed2s.SetRowLabelValue(row, u"{0}".format(seed2))
-                renkin_type, tenun555_num, tenun888_num = items_dict[seed2]
+                renkin_type = items_dict[seed2]
                 self.grid_seed2s.SetCellValue(row, 0, renkin_type)
-                self.grid_seed2s.SetCellValue(row, 1, u"{0}".format(tenun555_num))
-                self.grid_seed2s.SetCellValue(row, 2, u"{0}".format(tenun888_num))
         else:
             self.clear_grid_seed2s()