<s> from vyapp . tools import set_status_mode <EOL> from vyapp . tools import set_status_line <EOL> from vyapp . tools import set_status_col <EOL> from vyapp . tools import set_status_msg <EOL> from vyapp . tools import get_area_tab_index <EOL> from vyapp . app import root <EOL> from os . path import basename <EOL> TIME = <NUM_LIT:1000> <EOL> def update_mode ( area ) : <EOL> """<STR_LIT>""" <EOL> def cave ( ) : <EOL> if not cave . keep : return <EOL> set_status_mode ( area . id ) <EOL> area . after ( TIME , cave ) <EOL> """<STR_LIT>""" <EOL> cave . keep = True <EOL> cave ( ) <EOL> def stop ( ) : cave . keep = False <EOL> area . hook ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : stop ( ) ) <EOL> def update_cursor_pos ( area ) : <EOL> """<STR_LIT>""" <EOL> def cave ( ) : <EOL> if not cave . keep : return <EOL> row , col = area . indref ( '<STR_LIT>' ) <EOL> set_status_line ( row ) <EOL> set_status_col ( col ) <EOL> area . after ( TIME , cave ) <EOL> """<STR_LIT>""" <EOL> cave . keep = True <EOL> cave ( ) <EOL> def stop ( ) : cave . keep = False <EOL> area . hook ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : stop ( ) ) <EOL> def install ( area ) : <EOL> area . install ( ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : update_mode ( event . widget ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : update_cursor_pos ( event . widget ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . status . switch ( ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : set_status_msg ( '<STR_LIT>' ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . title ( '<STR_LIT>' % event . widget . filename ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . title ( '<STR_LIT>' % event . widget . filename ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . title ( '<STR_LIT>' % event . widget . filename ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . title ( '<STR_LIT>' % event . widget . filename ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . note . tab ( get_area_tab_index ( event . widget ) , text = basename ( event . widget . filename ) ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . note . tab ( get_area_tab_index ( event . widget ) , text = basename ( event . widget . filename ) ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . note . tab ( get_area_tab_index ( event . widget ) , text = basename ( event . widget . filename ) ) ) , <EOL> ( - <NUM_LIT:1> , '<STR_LIT>' , lambda event : root . note . tab ( root . note . select ( ) , text = basename ( event . widget . filename ) ) ) ) </s>
