()
return
Run the application
Run the application
Run the application
def main():
    "Run the application"
   
    from optparse import OptionParser
    parser = OptionParser()
    parser.add_option("-f", "--file", dest="tablefile",
                        help="Open a table file", metavar="FILE")
    opts, remainder = parser.parse_args()
    if opts.tablefile != None:
        app=TablesApp(datafile=opts.tablefile)
    else:
        app=TablesApp()
    app.mainloop()
    return
def main ( ) : from optparse import OptionParser parser = OptionParser ( ) parser . add_option ( "-f" , "--file" , dest = "tablefile" , help = "Open a table file" , metavar = "FILE" ) opts , remainder = parser . parse_args ( ) if opts . tablefile != None : app = TablesApp ( datafile = opts . tablefile ) else : app = TablesApp ( ) app . mainloop ( ) return