Exemple #1
0
 def mdi_wrap(self):
     sub = GlueMdiSubWindow()
     sub.setWidget(self)
     self.destroyed.connect(sub.close)
     sub.resize(self.size())
     self._mdi_wrapper = sub
     return sub
Exemple #2
0
    def mdi_wrap(self):
        """
        Embed this widget in a GlueMdiSubWindow
        """
        sub = GlueMdiSubWindow()
        sub.setWidget(self)
        self.destroyed.connect(sub.close)
        self.window_closed.connect(sub.close)
        sub.resize(self.size())
        self._mdi_wrapper = sub

        return sub