<s> import pygtk <EOL> pygtk . require ( '<STR_LIT>' ) <EOL> import gtk <EOL> class StatusbarExample : <EOL> def push_item ( self , widget , data ) : <EOL> buff = "<STR_LIT>" % self . count <EOL> self . count = self . count + <NUM_LIT:1> <EOL> self . status_bar . push ( data , buff ) <EOL> return <EOL> def pop_item ( self , widget , data ) : <EOL> self . status_bar . pop ( data ) <EOL> return <EOL> def __init__ ( self ) : <EOL> self . count = <NUM_LIT:1> <EOL> window = gtk . Window ( gtk . WINDOW_TOPLEVEL ) <EOL> window . set_size_request ( <NUM_LIT:200> , <NUM_LIT:100> ) <EOL> window . set_title ( "<STR_LIT>" ) <EOL> window . connect ( "<STR_LIT>" , lambda w , e : gtk . main_quit ( ) ) <EOL> vbox = gtk . VBox ( False , <NUM_LIT:1> ) <EOL> window . add ( vbox ) <EOL> vbox . show ( ) <EOL> self . status_bar = gtk . Statusbar ( ) <EOL> vbox . pack_start ( self . status_bar , True , True , <NUM_LIT:0> ) <EOL> self . status_bar . show ( ) <EOL> context_id = self . status_bar . get_context_id ( "<STR_LIT>" ) <EOL> button = gtk . Button ( "<STR_LIT>" ) <EOL> button . connect ( "<STR_LIT>" , self . push_item , context_id ) <EOL> vbox . pack_start ( button , True , True , <NUM_LIT:2> ) <EOL> button . show ( ) <EOL> button = gtk . Button ( "<STR_LIT>" ) <EOL> button . connect ( "<STR_LIT>" , self . pop_item , context_id ) <EOL> vbox . pack_start ( button , True , True , <NUM_LIT:2> ) <EOL> button . show ( ) <EOL> window . show ( ) <EOL> def main ( ) : <EOL> gtk . main ( ) <EOL> return <NUM_LIT:0> <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> StatusbarExample ( ) <EOL> main ( ) </s>
