Create right click menu.
(self)
| 282 | self.setSortingEnabled(self.sorting) |
| 283 | |
| 284 | def init_menu(self) -> None: |
| 285 | """ |
| 286 | Create right click menu. |
| 287 | """ |
| 288 | self.menu: QtWidgets.QMenu = QtWidgets.QMenu(self) |
| 289 | |
| 290 | resize_action: QtGui.QAction = QtGui.QAction(_("调整列宽"), self) |
| 291 | resize_action.triggered.connect(self.resize_columns) |
| 292 | self.menu.addAction(resize_action) |
| 293 | |
| 294 | save_action: QtGui.QAction = QtGui.QAction(_("保存数据"), self) |
| 295 | save_action.triggered.connect(self.save_csv) |
| 296 | self.menu.addAction(save_action) |
| 297 | |
| 298 | def register_event(self) -> None: |
| 299 | """ |