Esempio n. 1
0
  def __init__(self, parent, getAxisUnits, *args, **kw):
 
    self.getAxisUnits = getAxisUnits
 
    PulldownMenu.__init__(self, parent, *args, **kw)
 
    for func in notify_funcs:
      Implementation.registerNotify(self.setAxisUnits, 'ccpnmr.Analysis.AxisUnit', func)
Esempio n. 2
0
  def __init__(self, parent, getSpectra, extra_label = '', *args, **kw):

    self.getSpectra = getSpectra
    self.extra_label = extra_label

    PulldownMenu.__init__(self, parent, *args, **kw)

    for func in notify_funcs:
      Implementation.registerNotify(self.setSpectra, 'ccp.nmr.Nmr.DataSource', func)
Esempio n. 3
0
  def __init__(self, parent, getPeakLists, extra_label = '', *args, **kw):

    self.getPeakLists = getPeakLists
    self.extra_label = extra_label

    PulldownMenu.__init__(self, parent, *args, **kw)

    for func in notify_funcs:
      Implementation.registerNotify(self.setPeakLists, 'ccp.nmr.Nmr.PeakList', func)
Esempio n. 4
0
    def __init__(self, parent, getChains, extra_label='', *args, **kw):

        self.getChains = getChains
        self.extra_label = extra_label

        PulldownMenu.__init__(self, parent, *args, **kw)

        for func in notify_funcs:
            Implementation.registerNotify(self.setChains,
                                          'ccp.molecule.MolSystem.Chain', func)
Esempio n. 5
0
    def __init__(self, parent, getAxisTypes, includeNone=False, *args, **kw):

        self.getAxisTypes = getAxisTypes
        self.includeNone = includeNone

        PulldownMenu.__init__(self, parent, *args, **kw)

        popup = self.getPopup()
        for func in notify_funcs:
            popup.registerNotify(self.setAxisTypes, 'ccpnmr.Analysis.AxisType',
                                 func)
Esempio n. 6
0
    def __init__(self, parent, getColorSchemes, extra_label='', *args, **kw):

        self.getColorSchemes = getColorSchemes
        self.extra_label = extra_label

        PulldownMenu.__init__(self, parent, *args, **kw)

        for func in notify_funcs:
            Implementation.registerNotify(self.setColorSchemes,
                                          'ccpnmr.Analysis.ColorScheme', func)

        self.setColorSchemes()
Esempio n. 7
0
    def __init__(self, parent, getSpectrumViews, extra_label='', *args, **kw):

        self.getSpectrumViews = getSpectrumViews
        self.extra_label = extra_label

        PulldownMenu.__init__(self, parent, *args, **kw)

        for func in notify_funcs:
            Implementation.registerNotify(
                self.setSpectrumViews, 'ccpnmr.Analysis.SpectrumWindowView',
                func)
        Implementation.registerNotify(self.setSpectrumViews,
                                      'ccp.nmr.Nmr.Experiment', 'setName')
        Implementation.registerNotify(self.setSpectrumViews,
                                      'ccp.nmr.Nmr.DataSource', 'setName')
Esempio n. 8
0
    def __init__(self, parent, getSymbols, *args, **kw):

        self.getSymbols = getSymbols

        PulldownMenu.__init__(self, parent, *args, **kw)
Esempio n. 9
0
    def __init__(self, parent, getMeasurementTypes, *args, **kw):

        self.getMeasurementTypes = getMeasurementTypes

        PulldownMenu.__init__(self, parent, *args, **kw)