""" startup the application. """ 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 = 80 WIN_WIDTH_DEFAULT = 1000 # instantiate our application & run setup() method. my_app = PygletApp( width=WIN_WIDTH_DEFAULT, height=WIN_HEIGHT_DEFAULT, abs_plugin_ID=abs_plugin_ID, receive_data_from_matlab=receive_data_from_matlab, resizable=True, ) # overwrite default values with our custom settings. my_app.PLUGIN_NAME = PLUGIN_NAME # finish settings things up. my_app.setup() # run program. pyglet.app.run()
''' startup the application. ''' 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 = PygletApp(width=WIN_WIDTH_DEFAULT, height=WIN_HEIGHT_DEFAULT, abs_plugin_ID=abs_plugin_ID, receive_data_from_matlab=receive_data_from_matlab, resizable=True) # overwrite default values with our custom settings. my_app.PLUGIN_NAME = PLUGIN_NAME my_app.NBR_CHANNELS = NBR_PANELS my_app.nPoints = nPoints my_app.nPointsToUpdate = nPointsToUpdate # don't show the axes - this will slow down rendering. my_app.SHOW_AXES = False my_app.SHOW_HORIZONTAL_LINE = False # finish settings things up. my_app.setup() # run program.
# what is the name of this plugin? must match definition on matlab side. PLUGIN_NAME = 'pCtrlLFP' ''' startup the application. ''' 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 = 80 WIN_WIDTH_DEFAULT = 1000 # instantiate our application & run setup() method. my_app = PygletApp(width=WIN_WIDTH_DEFAULT, height=WIN_HEIGHT_DEFAULT, abs_plugin_ID=abs_plugin_ID, receive_data_from_matlab=receive_data_from_matlab, resizable=True) # overwrite default values with our custom settings. my_app.PLUGIN_NAME = PLUGIN_NAME # finish settings things up. my_app.setup() # run program. pyglet.app.run()