(self, terminal)
Class initialiser
Class initialiser
Class initialiser
def __init__(self, terminal):
        """Class initialiser"""
        GObject.GObject.__init__(self)

        self.terminator = Terminator()
        self.terminal = terminal
        self.config = self.terminal.config

        self.label = EditableLabel()
        self.label.connect('edit-done', self.on_edit_done)
        self.ebox = Gtk.EventBox()
        grouphbox = Gtk.HBox()
        self.grouplabel = Gtk.Label(ellipsize='end')
        self.groupicon = Gtk.Image()
        self.bellicon = Gtk.Image()
        self.bellicon.set_no_show_all(True)

        self.groupentry = Gtk.Entry()
        self.groupentry.set_no_show_all(True)
        self.groupentry.connect('focus-out-event', self.groupentry_cancel)
        self.groupentry.connect('activate', self.groupentry_activate)
        self.groupentry.connect('key-press-event', self.groupentry_keypress)

        groupsend_type = self.terminator.groupsend_type
        if self.terminator.groupsend == groupsend_type['all']:
            icon_name = 'all'
        elif self.terminator.groupsend == groupsend_type['group']:
            icon_name = 'group'
        elif self.terminator.groupsend == groupsend_type['off']:
            icon_name = 'off'
        self.set_from_icon_name('_active_broadcast_%s' % icon_name, 
                Gtk.IconSize.MENU)

        grouphbox.pack_start(self.groupicon, False, True, 2)
        grouphbox.pack_start(self.grouplabel, False, True, 2)
        grouphbox.pack_start(self.groupentry, False, True, 2)

        self.ebox.add(grouphbox)
        self.ebox.show_all()

        self.bellicon.set_from_icon_name('terminal-bell', Gtk.IconSize.MENU)

        viewport = Gtk.Viewport(hscroll_policy='natural')
        viewport.add(self.label)

        hbox = Gtk.HBox()
        hbox.pack_start(self.ebox, False, True, 0)
        hbox.pack_start(Gtk.VSeparator(), False, True, 0)
        hbox.pack_start(viewport, True, True, 0)
        hbox.pack_end(self.bellicon, False, False, 2)

        self.add(hbox)
        hbox.show_all()
        self.set_no_show_all(True)
        self.show()

        self.connect('button-press-event', self.on_clicked)
def __init__ ( self , terminal ) : GObject . GObject . __init__ ( self ) self . terminator = Terminator ( ) self . terminal = terminal self . config = self . terminal . config self . label = EditableLabel ( ) self . label . connect ( 'edit-done' , self . on_edit_done ) self . ebox = Gtk . EventBox ( ) grouphbox = Gtk . HBox ( ) self . grouplabel = Gtk . Label ( ellipsize = 'end' ) self . groupicon = Gtk . Image ( ) self . bellicon = Gtk . Image ( ) self . bellicon . set_no_show_all ( True ) self . groupentry = Gtk . Entry ( ) self . groupentry . set_no_show_all ( True ) self . groupentry . connect ( 'focus-out-event' , self . groupentry_cancel ) self . groupentry . connect ( 'activate' , self . groupentry_activate ) self . groupentry . connect ( 'key-press-event' , self . groupentry_keypress ) groupsend_type = self . terminator . groupsend_type if self . terminator . groupsend == groupsend_type [ 'all' ] : icon_name = 'all' elif self . terminator . groupsend == groupsend_type [ 'group' ] : icon_name = 'group' elif self . terminator . groupsend == groupsend_type [ 'off' ] : icon_name = 'off' self . set_from_icon_name ( '_active_broadcast_%s' % icon_name , Gtk . IconSize . MENU ) grouphbox . pack_start ( self . groupicon , False , True , 2 ) grouphbox . pack_start ( self . grouplabel , False , True , 2 ) grouphbox . pack_start ( self . groupentry , False , True , 2 ) self . ebox . add ( grouphbox ) self . ebox . show_all ( ) self . bellicon . set_from_icon_name ( 'terminal-bell' , Gtk . IconSize . MENU ) viewport = Gtk . Viewport ( hscroll_policy = 'natural' ) viewport . add ( self . label ) hbox = Gtk . HBox ( ) hbox . pack_start ( self . ebox , False , True , 0 ) hbox . pack_start ( Gtk . VSeparator ( ) , False , True , 0 ) hbox . pack_start ( viewport , True , True , 0 ) hbox . pack_end ( self . bellicon , False , False , 2 ) self . add ( hbox ) hbox . show_all ( ) self . set_no_show_all ( True ) self . show ( ) self . connect ( 'button-press-event' , self . on_clicked )