def mdi_wrap(self): sub = GlueMdiSubWindow() sub.setWidget(self) self.destroyed.connect(sub.close) sub.resize(self.size()) self._mdi_wrapper = sub return sub
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