(self)
return(terminalbox)
Create a GtkHBox containing the terminal and a scrollbar
Create a GtkHBox containing the terminal and a scrollbar
Create a GtkHBox containing the terminal and a scrollbar
def create_terminalbox(self):
        """Create a GtkHBox containing the terminal and a scrollbar"""

        terminalbox = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 0)
        self.scrollbar = Gtk.Scrollbar.new(Gtk.Orientation.VERTICAL, adjustment=self.vte.get_vadjustment())
        self.scrollbar.set_no_show_all(True)

        terminalbox.pack_start(self.vte, True, True, 0)
        terminalbox.pack_start(self.scrollbar, False, True, 0)
        terminalbox.show_all()

        return(terminalbox)
def create_terminalbox ( self ) : terminalbox = Gtk . Box . new ( Gtk . Orientation . HORIZONTAL , 0 ) self . scrollbar = Gtk . Scrollbar . new ( Gtk . Orientation . VERTICAL , adjustment = self . vte . get_vadjustment ( ) ) self . scrollbar . set_no_show_all ( True ) terminalbox . pack_start ( self . vte , True , True , 0 ) terminalbox . pack_start ( self . scrollbar , False , True , 0 ) terminalbox . show_all ( ) return ( terminalbox )