def set_statusbar(event):
 index = main_window.call(event.widget, 'index', 'active')
 if (index == 0):
  statustext.set('More information about this program')
 elif (index == 2):
  statustext.set('Terminate the program')
 else:
  statustext.set('This is the statusbar')
 return

def set_statusbar ( event ) : index = main_window . call ( event . widget , 'index' , 'active' ) if ( index == 0 ) : statustext . set ( 'More information about this program' ) elif ( index == 2 ) : statustext . set ( 'Terminate the program' ) else : statustext . set ( 'This is the statusbar' ) return
show statusbar comments from menu selection .