292 editor = wxGridCellChoiceEditor() |
292 editor = wxGridCellChoiceEditor() |
293 editor.SetParameters(self.Parent.Manager.GetCurrentMapList()) |
293 editor.SetParameters(self.Parent.Manager.GetCurrentMapList()) |
294 elif editortype == "time": |
294 elif editortype == "time": |
295 editor = wxGridCellTextEditor() |
295 editor = wxGridCellTextEditor() |
296 renderer = wxGridCellStringRenderer() |
296 renderer = wxGridCellStringRenderer() |
|
297 elif editortype == "domain": |
|
298 editor = wxGridCellTextEditor() |
|
299 renderer = wxGridCellStringRenderer() |
297 else: |
300 else: |
298 grid.SetReadOnly(row, col, True) |
301 grid.SetReadOnly(row, col, True) |
299 |
302 |
300 grid.SetCellEditor(row, col, editor) |
303 grid.SetCellEditor(row, col, editor) |
301 grid.SetCellRenderer(row, col, renderer) |
304 grid.SetCellRenderer(row, col, renderer) |
2155 |
2158 |
2156 self.DS302 = wx.CheckBox(id=wxID_CREATENODEDIALOGGENSYNC, |
2159 self.DS302 = wx.CheckBox(id=wxID_CREATENODEDIALOGGENSYNC, |
2157 label='DS-302 Profile', name='DS302', parent=self.MainPanel, |
2160 label='DS-302 Profile', name='DS302', parent=self.MainPanel, |
2158 pos=wx.Point(256, 144), size=wx.Size(128, 24), style=0) |
2161 pos=wx.Point(256, 144), size=wx.Size(128, 24), style=0) |
2159 self.DS302.SetValue(False) |
2162 self.DS302.SetValue(False) |
2160 self.DS302.Enable(False) |
2163 #self.DS302.Enable(False) |
2161 |
2164 |
2162 self.GenSYNC = wx.CheckBox(id=wxID_CREATENODEDIALOGGENSYNC, |
2165 self.GenSYNC = wx.CheckBox(id=wxID_CREATENODEDIALOGGENSYNC, |
2163 label='Generate SYNC', name='GenSYNC', parent=self.MainPanel, |
2166 label='Generate SYNC', name='GenSYNC', parent=self.MainPanel, |
2164 pos=wx.Point(256, 168), size=wx.Size(128, 24), style=0) |
2167 pos=wx.Point(256, 168), size=wx.Size(128, 24), style=0) |
2165 self.GenSYNC.SetValue(False) |
2168 self.GenSYNC.SetValue(False) |