示例#1
0
文件: terminal.py 项目: antonl/glue
 def mdi_wrap(self):
     sub = GlueMdiSubWindow()
     sub.setWidget(self)
     self.destroyed.connect(sub.close)
     sub.resize(self.size())
     self._mdi_wrapper = sub
     return sub
示例#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