Ejemplo n.º 1
0
    app.processEvents()

    # Load settings.
    if (len(sys.argv) == 4):
        setup_name = sys.argv[1]
        hardware = params.hardware(sys.argv[2])
        parameters = params.halParameters(sys.argv[3])
    else:
        parameters = params.parameters("settings_default.xml")
        setup_name = parameters.get("setup_name")
        hardware = params.hardware("xml/" + setup_name + "_hardware.xml")
        parameters = params.halParameters("xml/" + setup_name + "_default.xml")
    params.setSetupName(parameters, setup_name)

    # Start logger.
    hdebug.startLogging(parameters.get("film.directory") + "logs/", "hal4000")

    # Load app.
    window = Window(hardware, parameters)
    window.toggleSettings()
    splash.hide()
    window.show()

    app.exec_()

#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Ejemplo n.º 2
0
    # @param boolean Dummy parameter.
    #
    @hdebug.debug
    def quit(self, boolean):
        self.close()


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    if (len(sys.argv) == 2):
        parameters = params.parameters(sys.argv[1])
    else:
        parameters = params.parameters("settings_default.xml")
        
    # Start logger.
    hdebug.startLogging(parameters.get("directory") + "logs" + os.path.sep, "dave")

    # Load app.
    window = Dave(parameters)
    window.show()
    app.exec_()

#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Ejemplo n.º 3
0
    ## quit
    #
    # Handles the quit action, closes the window.
    #
    # @param boolean Dummy parameter.
    #
    @hdebug.debug
    def quit(self, boolean):
        self.close()

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    parameters = params.Parameters("settings_default.xml")

    # Start logger.
    hdebug.startLogging(parameters.directory + "logs/", "steve")

    # Load app.
    window = Window(parameters)
    window.show()
    app.exec_()


#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
Ejemplo n.º 4
0
    app.processEvents()

    # Load settings.
    if (len(sys.argv) == 4):
        setup_name = sys.argv[1]
        hardware = params.hardware(sys.argv[2])
        parameters = params.halParameters(sys.argv[3])
    else:
        parameters = params.parameters("settings_default.xml")
        setup_name = parameters.get("setup_name")
        hardware = params.hardware("xml/" + setup_name + "_hardware.xml")
        parameters = params.halParameters("xml/" + setup_name + "_default.xml")
    params.setSetupName(parameters, setup_name)

    # Start logger.
    hdebug.startLogging(parameters.get("film.directory") + "logs/", "hal4000")

    # Load app.
    window = Window(hardware, parameters)
    window.toggleSettings()
    splash.hide()
    window.show()

    app.exec_()


#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
Ejemplo n.º 5
0
    @hdebug.debug
    def quit(self, boolean):
        self.close()


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)

    # Load settings.
    if (len(sys.argv) == 2):
        parameters = params.parameters(sys.argv[1])
    else:
        parameters = params.parameters("settings_default.xml")

    # Start logger.
    hdebug.startLogging(parameters.directory + "logs/", "steve")

    # Load app.
    window = Window(parameters)
    window.show()
    app.exec_()

#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Ejemplo n.º 6
0
    @hdebug.debug
    def quit(self, boolean):
        self.close()


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)

    # Load settings.
    if (len(sys.argv)==2):
        parameters = params.parameters(sys.argv[1])
    else:
        parameters = params.parameters("settings_default.xml")

    # Start logger.
    hdebug.startLogging(parameters.get("directory") + "logs/", "steve")

    # Load app.
    window = Window(parameters)
    window.show()
    app.exec_()


#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
Ejemplo n.º 7
0
    app.processEvents()

    # Load settings.
    if (len(sys.argv) == 4):
        setup_name = sys.argv[1]
        hardware = params.Hardware(sys.argv[2])
        parameters = params.Parameters(sys.argv[3], is_HAL = True)
    else:
        parameters = params.Parameters("settings_default.xml")
        setup_name = parameters.setup_name
        hardware = params.Hardware(setup_name + "_hardware.xml")
        parameters = params.Parameters(setup_name + "_default.xml", is_HAL = True)
    params.setSetupName(parameters, setup_name)

    # Start logger.
    hdebug.startLogging(parameters.directory + "logs/", "hal4000")

    # Load app.
    window = Window(hardware, parameters)
    window.newParameters()
    splash.hide()
    window.show()

    app.exec_()


#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
Ejemplo n.º 8
0
    # @param boolean Dummy parameter.
    #
    @hdebug.debug
    def quit(self, boolean):
        self.close()


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    if (len(sys.argv) == 2):
        parameters = params.parameters(sys.argv[1])
    else:
        parameters = params.parameters("settings_default.xml")

    # Start logger.
    hdebug.startLogging(
        parameters.get("directory") + "logs" + os.path.sep, "dave")

    # Load app.
    window = Dave(parameters)
    window.show()
    app.exec_()

#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Ejemplo n.º 9
0
    @hdebug.debug
    def quit(self, boolean):
        self.close()


if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)

    # Load settings.
    if (len(sys.argv) == 2):
        parameters = params.parameters(sys.argv[1])
    else:
        parameters = params.parameters("settings_default.xml")

    # Start logger.
    hdebug.startLogging(parameters.get("directory") + "logs/", "steve")

    # Load app.
    window = Window(parameters)
    window.show()
    app.exec_()

#
# The MIT License
#
# Copyright (c) 2013 Zhuang Lab, Harvard University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell