Changeset e54dbc3e in sasview for src/sas/guiframe
- Timestamp:
- Jun 18, 2015 8:16:47 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 3c2011e
- Parents:
- 9bf64f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/data_processor.py
rc85b0ae re54dbc3e 141 141 self.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnLeftClick) 142 142 self.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.OnRightClick) 143 self.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.OnLeftDoubleClick)143 #self.Bind(wx.grid.EVT_GRID_CELL_LEFT_DCLICK, self.OnLeftDoubleClick) 144 144 self.Bind(wx.grid.EVT_GRID_RANGE_SELECT, self.OnRangeSelect) 145 145 self.Bind(wx.grid.EVT_GRID_ROW_SIZE, self.OnRowSize) … … 187 187 if self.GetNumberCols() > 0: 188 188 self.default_col_width = self.GetColSize(0) 189 self.Bind(wx.grid.EVT_GRID_LABEL_LEFT_CLICK, self.on_left_click) 190 self.Bind(wx.grid.EVT_GRID_LABEL_RIGHT_CLICK, self.on_right_click) 191 self.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.on_selected_cell) 192 self.Bind(wx.grid.EVT_GRID_CMD_CELL_CHANGE, self.on_edit_cell) 193 self.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.onContextMenu) 194 189 #self.Bind(wx.grid.EVT_GRID_LABEL_LEFT_CLICK, self.on_left_click) 190 #self.Bind(wx.grid.EVT_GRID_LABEL_RIGHT_CLICK, self.on_right_click) 191 #self.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.on_selected_cell) 192 #self.Bind(wx.grid.EVT_GRID_CMD_CELL_CHANGE, self.on_edit_cell) 193 #self.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.onContextMenu) 194 195 def OnLeftClick(self, event): 196 sheet.CSheet.OnLeftClick(self, event) 197 self.on_selected_cell(event) 198 195 199 def on_edit_cell(self, event): 196 200 """ … … 211 215 row, col = event.GetRow(), event.GetCol() 212 216 cell = (row, col) 213 event.Skip()214 217 if not flag and not flag_shift: 215 218 self.selected_cols = [] … … 273 276 if cell_row > 0 and cell_row < self.max_row_touse: 274 277 self.axis_value.append(self.GetCellValue(cell_row, cell_col)) 278 event.Skip() 275 279 276 280 def on_left_click(self, event): … … 278 282 Catch the left click on label mouse event 279 283 """ 280 event.Skip()281 284 flag = event.CmdDown() or event.ControlDown() 282 285 … … 317 320 if not self.axis_label: 318 321 self.axis_label = " " 322 event.Skip() 319 323 320 324 def on_right_click(self, event): … … 1385 1389 wx.EVT_MENU(self, self.save_menu.GetId(), self.on_save_page) 1386 1390 1391 # To add the edit menu, call add_edit_menu() here. 1392 self.edit = None 1393 self.Bind(wx.EVT_MENU_OPEN, self.on_menu_open) 1394 1395 self.Bind(wx.EVT_CLOSE, self.on_close) 1396 1397 def add_edit_menu(self, menubar): 1387 1398 self.edit = wx.Menu() 1388 1399 … … 1414 1425 self.remove_menu = self.edit.Append(-1, 'Remove Column', hint) 1415 1426 wx.EVT_MENU(self, self.remove_menu.GetId(), self.on_remove_column) 1416 1417 self.Bind(wx.EVT_MENU_OPEN, self.on_menu_open)1418 1427 menubar.Append(self.edit, "&Edit") 1419 self.Bind(wx.EVT_CLOSE, self.on_close)1420 1428 1421 1429 def on_copy(self, event):
Note: See TracChangeset
for help on using the changeset viewer.