# process 'abs_plugin_ID' if given on command line. abs_plugin_ID = process_sys_argv(abs_plugin_ID) # default window height and width of this plugin. # performance decreases (factor of 10!), if WIN_HEIGHT_DEFAULT > 100 and # axes are turned on (SHOW_AXES == True). WIN_HEIGHT_DEFAULT = 1500 WIN_WIDTH_DEFAULT = 1000 # instantiate our application & run setup() method. my_app = MainApp(WIN_HEIGHT_DEFAULT, WIN_WIDTH_DEFAULT) my_app.set_current_screen(StaticLineUpdateScreen) # overwrite default values with our custom settings. my_app.PLUGIN_NAME = PLUGIN_NAME my_app.abs_plugin_ID = abs_plugin_ID my_app.NBR_CHANNELS = NBR_PANELS my_app.nPoints = nPoints my_app.nPointsToUpdate = nPointsToUpdate my_app.receive_data_from_matlab = receive_data_from_matlab my_app.COLOR_TO_USE = COLOR_TO_USE # don't show the axes - this will slow down rendering. my_app.SHOW_AXES = False my_app.SHOW_HORIZONTAL_LINE = False # run program. my_app.run()
if __name__ == "__main__": # process 'abs_plugin_ID' if given on command line. abs_plugin_ID = process_sys_argv(abs_plugin_ID) # default window height and width of this plugin. # performance decreases (factor of 10!), if WIN_HEIGHT_DEFAULT > 100 and # axes are turned on (SHOW_AXES == True). WIN_HEIGHT_DEFAULT = 1500 WIN_WIDTH_DEFAULT = 1000 # instantiate our application & run setup() method. my_app = MainApp(WIN_HEIGHT_DEFAULT, WIN_WIDTH_DEFAULT) my_app.set_current_screen(StaticLineUpdateScreen) # overwrite default values with our custom settings. my_app.PLUGIN_NAME = PLUGIN_NAME my_app.abs_plugin_ID = abs_plugin_ID my_app.NBR_CHANNELS = NBR_PANELS my_app.nPoints = nPoints my_app.nPointsToUpdate = nPointsToUpdate my_app.receive_data_from_matlab = receive_data_from_matlab my_app.COLOR_TO_USE = COLOR_TO_USE # don't show the axes - this will slow down rendering. my_app.SHOW_AXES = False my_app.SHOW_HORIZONTAL_LINE = False # run program. my_app.run()