def ProcessForm(self):
    self.UpdateStatus('Processing form inputs')
    self.preferred = self.supplied_ns
    self.include_internal = False

    if not int(self.include_global.stringValue()):
      self.UpdateStatus('Not using global')
      self.global_ns = []
    else:
      self.preferred.extend(self.global_ns)
    if not int(self.include_regional.stringValue()):
      self.UpdateStatus('Not using regional')
      self.regional_ns = []

    if int(self.enable_sharing.stringValue()):
      self.options.upload_results = True

    if int(self.include_censorship_checks.stringValue()):
      self.options.enable_censorship_checks = True

    print self.health_performance.titleOfSelectedItem()
    if 'Slow' in self.health_performance.titleOfSelectedItem():
      self.options.health_thread_count = 10

    self.options.input_source = self.data_src.ConvertSourceTitleToType(self.data_source.titleOfSelectedItem())
    self.UpdateStatus('Supplied servers: %s' % self.nameserver_form.stringValue())
    self.preferred.extend(addr_util.ExtractIPTuplesFromString(self.nameserver_form.stringValue()))
    self.options.query_count = int(self.query_count.stringValue())
Parse the form fields and populate class variables.
dataset/ETHPy150Open catap/namebench/cocoa/controller.py/controller.ProcessForm