835 """ |
835 """ |
836 Public method to handle the toggle of a window. |
836 Public method to handle the toggle of a window. |
837 |
837 |
838 @param act reference to the action that triggered (QAction) |
838 @param act reference to the action that triggered (QAction) |
839 """ |
839 """ |
840 idx, ok = act.data() |
840 idx = act.data() |
841 if ok: |
841 self.__toggleWidget(self.widgets[idx]) |
842 self.__toggleWidget(self.widgets[idx]) |
|
843 |
842 |
844 def __toggleWidget(self, w): |
843 def __toggleWidget(self, w): |
845 """ |
844 """ |
846 Private method to toggle a workspace window. |
845 Private method to toggle a workspace window. |
847 |
846 |