(self)
Launch the selected layout as new instance
Launch the selected layout as new instance
Launch the selected layout as new instance
def launch_layout(self):
        """Launch the selected layout as new instance"""
        dbg('We have takeoff!')
        selection=self.layouttreeview.get_selection()
        (listmodel, rowiter) = selection.get_selected()
        if not rowiter:
            # Something is wrong, just jump to the first item in the list
            selection.select_iter(self.layouttreestore.get_iter_first())
            (listmodel, rowiter) = selection.get_selected()
        layout = listmodel.get_value(rowiter, 0)
        dbg('Clicked for %s' % layout)
        spawn_new_terminator(self.terminator.origcwd, ['-u', '-l', layout])
def launch_layout ( self ) : dbg ( 'We have takeoff!' ) selection = self . layouttreeview . get_selection ( ) ( listmodel , rowiter ) = selection . get_selected ( ) if not rowiter : # Something is wrong, just jump to the first item in the list selection . select_iter ( self . layouttreestore . get_iter_first ( ) ) ( listmodel , rowiter ) = selection . get_selected ( ) layout = listmodel . get_value ( rowiter , 0 ) dbg ( 'Clicked for %s' % layout ) spawn_new_terminator ( self . terminator . origcwd , [ '-u' , '-l' , layout ] )