(self, widget, metadata=None)
Add a widget to the window by way of Gtk.Window.add()
Add a widget to the window by way of Gtk.Window.add()
Add a widget to the window by way of Gtk . Window . add ()
def add(self, widget, metadata=None):
        """Add a widget to the window by way of Gtk.Window.add()"""
        maker = Factory()
        Gtk.Window.add(self, widget)
        if maker.isinstance(widget, 'Terminal'):
            signals = {'close-term': self.closeterm,
                       'title-change': self.title.set_title,
                       'split-horiz': self.split_horiz,
                       'split-vert': self.split_vert,
                       'resize-term': self.resizeterm,
                       'unzoom': self.unzoom,
                       'tab-change': self.tab_change,
                       'group-all': self.group_all,
                       'group-all-toggle': self.group_all_toggle,
                       'ungroup-all': self.ungroup_all,
                       'group-win': self.group_win,
                       'group-win-toggle': self.group_win_toggle,
                       'ungroup-win': self.ungroup_win,
                       'group-tab': self.group_tab,
                       'group-tab-toggle': self.group_tab_toggle,
                       'ungroup-tab': self.ungroup_tab,
                       'move-tab': self.move_tab,
                       'tab-new': [self.tab_new, widget],
                       'navigate': self.navigate_terminal,
                       'rotate-cw': [self.rotate, True],
                       'rotate-ccw': [self.rotate, False]}

            for signal in signals:
                args = []
                handler = signals[signal]
                if isinstance(handler, list):
                    args = handler[1:]
                    handler = handler[0]
                self.connect_child(widget, signal, handler, *args)

            widget.grab_focus()
def add ( self , widget , metadata = None ) : maker = Factory ( ) Gtk . Window . add ( self , widget ) if maker . isinstance ( widget , 'Terminal' ) : signals = { 'close-term' : self . closeterm , 'title-change' : self . title . set_title , 'split-horiz' : self . split_horiz , 'split-vert' : self . split_vert , 'resize-term' : self . resizeterm , 'unzoom' : self . unzoom , 'tab-change' : self . tab_change , 'group-all' : self . group_all , 'group-all-toggle' : self . group_all_toggle , 'ungroup-all' : self . ungroup_all , 'group-win' : self . group_win , 'group-win-toggle' : self . group_win_toggle , 'ungroup-win' : self . ungroup_win , 'group-tab' : self . group_tab , 'group-tab-toggle' : self . group_tab_toggle , 'ungroup-tab' : self . ungroup_tab , 'move-tab' : self . move_tab , 'tab-new' : [ self . tab_new , widget ] , 'navigate' : self . navigate_terminal , 'rotate-cw' : [ self . rotate , True ] , 'rotate-ccw' : [ self . rotate , False ] } for signal in signals : args = [ ] handler = signals [ signal ] if isinstance ( handler , list ) : args = handler [ 1 : ] handler = handler [ 0 ] self . connect_child ( widget , signal , handler , * args ) widget . grab_focus ( )