Show More
@@ -647,12 +647,18 b' class MainWindow(QtGui.QMainWindow):' | |||||
647 | mclass = subdict[name] |
|
647 | mclass = subdict[name] | |
648 | magic_menu = self._get_magic_menu(mclass) |
|
648 | magic_menu = self._get_magic_menu(mclass) | |
649 | pmagic = prefix + name |
|
649 | pmagic = prefix + name | |
|
650 | ||||
|
651 | # Adding seperate QActions is needed for some window managers | |||
650 | xaction = QtGui.QAction(pmagic, |
|
652 | xaction = QtGui.QAction(pmagic, | |
651 | self, |
|
653 | self, | |
652 | triggered=self._make_dynamic_magic(pmagic) |
|
654 | triggered=self._make_dynamic_magic(pmagic) | |
653 | ) |
|
655 | ) | |
|
656 | xaction_all = QtGui.QAction(pmagic, | |||
|
657 | self, | |||
|
658 | triggered=self._make_dynamic_magic(pmagic) | |||
|
659 | ) | |||
654 | magic_menu.addAction(xaction) |
|
660 | magic_menu.addAction(xaction) | |
655 | self.all_magic_menu.addAction(xaction) |
|
661 | self.all_magic_menu.addAction(xaction_all) | |
656 |
|
662 | |||
657 | def update_all_magic_menu(self): |
|
663 | def update_all_magic_menu(self): | |
658 | """ Update the list of magics in the "All Magics..." Menu |
|
664 | """ Update the list of magics in the "All Magics..." Menu |
General Comments 0
You need to be logged in to leave comments.
Login now