def _row_label_right_click(self, event): selected_row = event.GetRow() selected_rows = self.selection.rows() if selected_row not in selected_rows: self.SelectRow(selected_row, addToSelected=False) self.SetGridCursor(event.Row, 0) popupitems = [ 'Insert Rows\tCtrl-I', 'Delete Rows\tCtrl-D', 'Comment Rows\tCtrl-3', 'Uncomment Rows\tCtrl-4', 'Move Rows Up\tAlt-Up', 'Move Rows Down\tAlt-Down' ] PopupMenu(self, PopupMenuItems(self, popupitems)) event.Skip()
def show_popup(self): self._popup_creator.show(self, PopupMenuItems(self, self._actions), self.controller)
def OnRightClick(self, event): PopupMenu(self, PopupMenuItems(self, self._menu))
def OnRightClick(self, event): PopupMenu(self, PopupMenuItems(self, self._create_item_menu()))