![]() ![]() ![]() #dv.append(item) # for item in range(1,len(splitHead)): # dv.append(splitHead) Ivnum=- 1 for item in range( 0, len(splitHead)): Iv=eg.choicebox(title= "Select behavioral variable",msg= "Select which column designates the behavioral or cognitive variable of interest for this experiment",choices=splitHead) Os.chdir(filepath) #set working directory so that we can load the data filesĮxType=eg.buttonbox(title= "Select experiment type",msg= "What type of experiment is this?",choices=) if ( "Correlation" in exType): # Correlating an IV with neurophys data ![]() If "2" in userChoice: #create protocol from experimentĮFileName=eg.fileopenbox(title= "Select the experiment file that you want to open") Select an option to continue",title= "BrainKit 1.0",choices=choices) UserChoice=eg.choicebox( "Welcome to BrainKit. Warn_message = "Cannot overwrite original file!" while input_path = output_path:Ĭhoices= # Keep doing this until a valid file path is chosen. # If the user tries to overwrite the file they originally selected # for rotation, warn them and ask them to select a new file path. Output_path = gui.filesavebox(title=save_title, default=file_type) # Ask the user what they would like to call the new PDF and where # it should be saved. Message = "Rotate the PDF clockwise by how many degrees?"ĭegrees = gui.buttonbox(message, "Choose rotation.", choices) # Convert the chosen number of degrees to an integer # If the user dosn't select anything, keep displaying the # buttonbox() element until they do. # Ask the user by how many degrees each page should be rotated. # If nothing was returned by gui.fileopenbox(), the user either # hit cancel or closed the window so we should exit the program. Input_path = gui.fileopenbox(title=open_title, default=file_type) ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |