(self)
| 58 | action.activate(action.Trigger) |
| 59 | |
| 60 | def _checkAction(self): |
| 61 | # 三个action都响应该函数 |
| 62 | self.labelInfo.setText('\n'.join(['{}\t选中:{}'.format( |
| 63 | action.text(), action.isChecked()) for action in self._menu.actions()])) |
| 64 | |
| 65 | |
| 66 | if __name__ == '__main__': |