def main(options, args):

    app = QtGui.QApplication(sys.argv)

    logger = logging.getLogger("example1")
    logger.setLevel(logging.INFO)
    fmt = logging.Formatter(STD_FORMAT)
    stderrHdlr = logging.StreamHandler()
    stderrHdlr.setFormatter(fmt)
    logger.addHandler(stderrHdlr)

    w = FitsViewer(logger)
    w.resize(524, 540)
    w.show()
    app.setActiveWindow(w)
    w.raise_()
    w.activateWindow()

    if 0 > len(args):
        w.load_file(args[0])

    app.exec_()
dataset/ETHPy150Open ejeschke/ginga/ginga/examples/qt/example1_qt.py/main/swapped operands of `>`