def main(options, args):

    logger = log.get_logger("example2", options=options)

    if options.toolkit is None:
        logger.error("Please choose a GUI toolkit with -t option")

    # decide our toolkit, then import
    ginga_toolkit.use(options.toolkit)

    viewer = FitsViewer(logger)

    viewer.top.resize(700, 540)

    if len(args) > 0:
        viewer.load_file(viewer.viewer1, args[0])

    viewer.top.show()
    viewer.top.raise_()

    try:
        viewer.mainloop()

    except __HOLE__:
        print("Terminating viewer...")
        if viewer.top is not None:
            viewer.top.close()
dataset/ETHPy150Open ejeschke/ginga/ginga/examples/gw/shared_canvas.py/main