How to use the easygui.multchoicebox function in easygui

To help you get started, we’ve selected a few easygui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rajneshrat / dpdk-tcpipstack / tcp_ip_stack / ui / ui.py View on Github external
def ShowOptions(option_list, title, header):
    choice = eg.multchoicebox(header , title, option_list)
    return choice
github kieranjol / IFIscripts / legacy_scripts / revtmd.py View on Github external
"None",]
            flashtransfer_settings = multchoicebox(msg, title, choices, preselect=None)
            print flashtransfer_settings
            # End preperation history
        
        # Interventions during capture
        msg ="Interventions at point of capture"
        title = "capture interventions"
        choices = ["Exposure compensation",
                   "Contrast adjustment",
                   "Negative to positive", 
                   "Spacing between reels not captured",
                   "Monochrome setting enabled",
                   "Overscanning of image to capture optical track"
                    ]
        capture_interventions = multchoicebox(msg, title, choices, preselect=None)
        # End interventions during capture
        if not workflow == "Scanning":
            # Audio assesment during capture
            msg ="Headphones/speakers used during capture"
            title = "capture audio assesment"
            choices = ["Philips Headphones",
                       "M-Audio Speakers",
                       "Both",
                       "None"                   
                   
                        ]
            audio_choices = choicebox(msg, title, choices)

            if audio_choices == "Philips Headphones":
                def audio_capture_telecine(number):
                    philips_headphones_telecine(number)
github ohsnapitsnathan / brainkit / brainkit.py View on Github external
def createProtocol(preselected_channels=False, preselected_powers=None):
    electrodes=[]
    powers=[]
    outcomes=[]
    anodeChoice=eg.multchoicebox(title="Select electrodes", msg="Select the locations that you want to recieve stimulation. You can set them as anodes or cathodes in the next step.", choices=['F4','C4','O2','C3','F3','O1'])
    if anodeChoice:
        for item in anodeChoice:
            electrodes.append(stimModes[item])
        choices=anodeChoice
        choices.append("Ramp up/down duration (set to 0 for no ramping)")
        choices.append("Stimulation duration (minutes)")
        choices.append("Sham probability(set to 0 for no sham trials")
        choices.append("Frequency (set to 0 for dc stimulation)")
        powers=eg.multenterbox("Enter the power that should be used for each electrode. Positive values represent anodal stimulation, and negative values represent cathodal stimulation. You can also set the duration, ramping parameters, and sham probability of the protocol","Stimulation parameters",choices)
        if powers:
            exMode=eg.ynbox(title="Outcome measures",msg="Do you want to add outcome measures to this protocol?")
            if exMode:
                
                outcomes=[]
                selected=""
                keepPrompting=True
github kieranjol / IFIscripts / legacy_scripts / revtmd.py View on Github external
print audio_choices       
              
        
        # End interventions during capture
        msg ="Post Processing?"
        title = "Post Processing"
        choices = ["Horizontal Flipping",
                   "Vertical Flipping",
                   "Audio normalised to -20db", 
                   "Broadcast Safe Filter",
                   "Desaturate Filter",
                   "Negative to positive",
                   "Avid Motion Editing",
                   "None"
                   ]
        post_processing = multchoicebox(msg, title, choices, preselect=None)

    #More interviews    
    msg ="User?"
    title = "Pick a name yo!"
    choices = ["Kieran O'Leary", "Gavin Martin", 
               "Dean Kavanagh", "Raelene Casey", 
           "Anja Mahler", "Eoin O'Donohoe", "Brian Cash","Unknown"]
    user = choicebox(msg, title, choices)

    msg = "Fill out these things please"
    title = "blablablabl"
    fieldNames = ["Source Accession Number",
                  "Filmographic Reference Number", 
                  "Identifier-Object Entry/Accession Number:"]
      # we start with blanks for the values
    fieldValues = multenterbox(msg,title, fieldNames)
github kieranjol / IFIscripts / legacy_scripts / revtmd.py View on Github external
print preparation
        # End preperation history
        # Flashtransfer settings  
        flashtransfer_settings = []   
        if scanner == "Flashtransfer": 
            msg ="Flashtransfer settings?"
            title = "Workflows"
            choices = ["Gamma Curve - Linear",
                       "Gamma Curve - Low",
                       "Gamma Curve - Standard", 
                       "Gamma Curve - High",
                       "Contrast - Low",
                       "Contrast - Off",
                       "Contrast - High",
                       "None",]
            flashtransfer_settings = multchoicebox(msg, title, choices, preselect=None)
            print flashtransfer_settings
            # End preperation history
        
        # Interventions during capture
        msg ="Interventions at point of capture"
        title = "capture interventions"
        choices = ["Exposure compensation",
                   "Contrast adjustment",
                   "Negative to positive", 
                   "Spacing between reels not captured",
                   "Monochrome setting enabled",
                   "Overscanning of image to capture optical track"
                    ]
        capture_interventions = multchoicebox(msg, title, choices, preselect=None)
        # End interventions during capture
        if not workflow == "Scanning":
github kieranjol / IFIscripts / legacy_scripts / revtmd.py View on Github external
add_to_revtmd('//revtmd:codingProcessHistory' + str([number]) + '/revtmd:manufacturer', 'P&S Techniks', revtmd_xmlfile)
                add_to_revtmd('//revtmd:codingProcessHistory' + str([number]) + '/revtmd:modelName', 'Steadyframe', revtmd_xmlfile)
                add_to_revtmd('//revtmd:codingProcessHistory' + str([number]) + '/revtmd:signal', 'Ethernet', revtmd_xmlfile)
                
                
        # Preparation History        
        msg ="Preperation?"
        title = "Workflows"
        choices = ["Splice and perforation assessment",
                   "Splice repairs",
                   "Leader added", 
                   "Perforation repairs",
                   "Recanned",
                   "Cleaning",
                   "Mould removal"]
        preparation = multchoicebox(msg, title, choices, preselect=None)
        print preparation
        # End preperation history
        # Flashtransfer settings  
        flashtransfer_settings = []   
        if scanner == "Flashtransfer": 
            msg ="Flashtransfer settings?"
            title = "Workflows"
            choices = ["Gamma Curve - Linear",
                       "Gamma Curve - Low",
                       "Gamma Curve - Standard", 
                       "Gamma Curve - High",
                       "Contrast - Low",
                       "Contrast - Off",
                       "Contrast - High",
                       "None",]
            flashtransfer_settings = multchoicebox(msg, title, choices, preselect=None)

easygui

EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls.

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages