(self)
Lock the database
Lock the database
Lock the database
def lock_db(self):
        '''Lock the database'''

        self.remove_results()
        self.del_clipboard()
        self.db.lock()
        self.state = 1
        self.control.draw_lock_menu(self.changed, self.lock_highlight,
                                    (1, 0, 'Use a password (1)'),
                                    (2, 0, 'Use a keyfile (2)'),
                                    (3, 0, 'Use both (3)'))
def lock_db ( self ) : self . remove_results ( ) self . del_clipboard ( ) self . db . lock ( ) self . state = 1 self . control . draw_lock_menu ( self . changed , self . lock_highlight , ( 1 , 0 , 'Use a password (1)' ) , ( 2 , 0 , 'Use a keyfile (2)' ) , ( 3 , 0 , 'Use both (3)' ) )