def onPreferences(self, e):
        self.pparams = self.input_window.pparams
        prefs = dlg.PRIMEPreferences(self)
        prefs.set_choices(method=self.pparams.queue.mode,
                          queue=self.pparams.queue.qname)

        if prefs.ShowModal() == wx.ID_OK:
            if prefs.method == 'multiprocessing':
                self.pparams.queue.mode = None
            else:
                self.pparams.queue.mode = dlg.method
            self.pparams.queue.qname = dlg.queue
Beispiel #2
0
    def onPreferences(self, e):
        prefs = dlg.PRIMEPreferences(self,
                                     phil=self.prime_phil,
                                     title='Advanced PRIME Options',
                                     style=wx.DEFAULT_DIALOG_STYLE
                                     | wx.STAY_ON_TOP | wx.RESIZE_BORDER)
        prefs.SetMinSize((600, -1))
        prefs.Fit()

        if prefs.ShowModal() == wx.ID_OK:
            self.prime_phil = self.prime_phil.fetch(prefs.pref_phil)
            self.input_window.regenerate_params(self.prime_phil)
  def onPreferences(self, e):
    self.pparams = self.input_window.pparams
    prefs = dlg.PRIMEPreferences(self,
                                 title='Advanced PRIME Options',
                                 style=wx.DEFAULT_DIALOG_STYLE |
                                       wx.STAY_ON_TOP |
                                       wx.RESIZE_BORDER)
    prefs.SetMinSize((600, -1))
    prefs.Fit()

    prefs.set_choices(method=self.pparams.queue.mode,
                      queue=self.pparams.queue.qname)


    if prefs.ShowModal() == wx.ID_OK:
      if prefs.method == 'multiprocessing':
        self.pparams.queue.mode = None
      else:
        self.pparams.queue.mode = prefs.method
      self.pparams.queue.qname = prefs.queue