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)
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)
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)
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)
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)
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()
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')
def __init__(self, parent, getSymbols, *args, **kw): self.getSymbols = getSymbols PulldownMenu.__init__(self, parent, *args, **kw)
def __init__(self, parent, getMeasurementTypes, *args, **kw): self.getMeasurementTypes = getMeasurementTypes PulldownMenu.__init__(self, parent, *args, **kw)