Beispiel #1
0
    def __init__(self, parent, *args, **kw):

        BasePopup.__init__(self,
                           parent=parent,
                           title='Create axis unit',
                           modal=True,
                           **kw)
Beispiel #2
0
  def __init__(self, parent, *args, **kw):

    self.spectrumConditions = []
    self.col = None
    self.spectrum = None

    BasePopup.__init__(self, parent=parent, title='New Contour File', **kw)
  def __init__(self, parent, *args, **kw):

    self.guiParent = parent
    self.sourceName = 'RefDB'
    self.chemAtomNmrRefs = {}
    
    BasePopup.__init__(self, parent=parent, title="Resonance : Reference Chemical Shifts", **kw)
Beispiel #4
0
  def destroy(self):

    for func in ('__init__','delete','setName'):
      self.unregisterNotify(self.updateSpectra, 'ccp.nmr.Nmr.Experiment', func)
      self.unregisterNotify(self.updateSpectra, 'ccp.nmr.Nmr.DataSource', func)

    BasePopup.destroy(self)
Beispiel #5
0
    def __init__(self, parent, *args, **kw):

        self.waiting = False
        self.molSystem = None
        self.residue = None
        self.jCouplings = []
        self.atomNames = []
        self.measureJCouplingList = None
        self.predictJCouplingList = None

        self.coeffAtomNames = []
        self.coefficients = {}
        self.coefficient = None
        for i in range(3):
            self.coefficients[i] = {}

        BasePopup.__init__(
            self,
            parent=parent,
            title='Predict Karplus Coefficients from J Coupling',
            **kw)

        self.updateJCouplingLists()
        self.updateMolSystems()
        self.updateAfter()
Beispiel #6
0
    def destroy(self):

        for func in ('__init__', 'delete', 'setName'):
            self.unregisterNotify(self.updateWindows,
                                  'ccpnmr.Analysis.SpectrumWindow', func)

        BasePopup.destroy(self)
Beispiel #7
0
    def destroy(self):

        for func in ('__init__', 'delete'):
            self.unregisterNotify(self.updateStructureGen,
                                  'ccp.nmr.Nmr.StructureGeneration', func)

        BasePopup.destroy(self)
Beispiel #8
0
    def destroy(self):

        for func in ('__init__', 'delete', 'setAnnotation', 'setNumAliasing',
                     'setPosition'):
            self.unregisterNotify(self.updateAfter, 'ccp.nmr.Nmr.PeakDim',
                                  func)

        BasePopup.destroy(self)
Beispiel #9
0
    def __init__(self, parent, *args, **kw):

        self.spectrum = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Add existing contour file',
                           **kw)
Beispiel #10
0
  def __init__(self, parent):

    BasePopup.__init__(self, parent=parent, title=" Dangle Prediction Graph",
                       transient=False, borderwidth=6)

    parent.protocol("WM_DELETE_WINDOW", self.close)

    self.geometry('700x700+50+50')
Beispiel #11
0
    def __init__(self, parent, isModal=False, *args, **kw):

        title = 'Project : Register with CCPN'
        BasePopup.__init__(self,
                           parent=parent,
                           title=title,
                           modal=isModal,
                           **kw)
  def __init__(self, parent, *args, **kw):

    self.guiParent   = parent
    self.expSeries   = None
    self.conditionPoint   = None
    self.waiting     = 0
  
    BasePopup.__init__(self, parent, title="Experiment : NMR Series", **kw)
Beispiel #13
0
    def __init__(self, parent, *args, **kw):

        self.spectrum = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Peak : Peak Finding',
                           **kw)
Beispiel #14
0
    def __init__(self, parent, *args, **kw):

        self.measurementType = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Create axis type',
                           modal=True,
                           **kw)
Beispiel #15
0
    def __init__(self, parent, *args, **kw):

        self.axisType = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Create panel type',
                           modal=True,
                           **kw)
Beispiel #16
0
    def open(self):

        self.updateAxisUnitTable()
        self.updateAxisTypeTable()
        self.updatePanelTypeTable()
        self.selectAxisUnit()
        self.selectAxisType()
        self.selectPanelType()
        BasePopup.open(self)
Beispiel #17
0
    def __init__(self, parent, *args, **kw):

        self.waiting = False
        self.contourFileDir = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Spectrum Contour Files',
                           **kw)
Beispiel #18
0
    def __init__(self, parent, *args, **kw):

        self.chain = None
        self.shiftList = None
        self.predictionDict = {}

        BasePopup.__init__(self,
                           parent=parent,
                           title='Structure : Predict Secondary Structure')
Beispiel #19
0
    def __init__(self, parent, dataDim, position):

        self.dataDim = dataDim
        self.position = position

        BasePopup.__init__(self,
                           parent=parent,
                           title='Set spectrum referencing',
                           modal=True,
                           transient=True)
Beispiel #20
0
    def __init__(self, parent, peak=None, *args, **kw):

        self.peak = peak
        self.peakDim = None
        self.guiParent = parent

        BasePopup.__init__(self,
                           parent=parent,
                           title="Edit Peak Aliasing",
                           **kw)
Beispiel #21
0
    def __init__(self, parent, *args, **kw):

        self.experiment = None
        self.currentObject = None
        #self.currentObjects = [] # looks obsolete

        BasePopup.__init__(self,
                           parent=parent,
                           title='Experiment : Open Spectra',
                           **kw)
Beispiel #22
0
    def destroy(self):

        for func in ('__init__', 'delete'):
            self.unregisterNotify(self.updateChains,
                                  'ccp.molecule.MolSystem.Chain', func)
        for func in ('__init__', 'delete'):
            self.unregisterNotify(self.updateShiftLists,
                                  'ccp.nmr.Nmr.ShiftList', func)

        BasePopup.destroy(self)
Beispiel #23
0
    def __init__(self, parent, *args, **kw):

        self.residue = None
        self.chain = None
        self.shiftList = None

        BasePopup.__init__(self,
                           parent=parent,
                           title="Molecule : Residue Information",
                           **kw)
Beispiel #24
0
    def __init__(self, parent, *args, **kw):

        self.guiParent = parent
        self.peakLists = []
        self.constraintLists = []
        self.constraintSet = None
        BasePopup.__init__(self,
                           parent=parent,
                           title="Chart : Residue Interaction Matrix",
                           **kw)
Beispiel #25
0
    def __init__(self, parent, *args, **kw):

        self.chain = None
        self.shiftList = None
        self.predictionDict = {}

        BasePopup.__init__(
            self,
            parent=parent,
            title='Data Analysis : Predict Shifts from Sequence')
Beispiel #26
0
    def destroy(self):

        for func in ('__init__', 'delete', 'setValue', 'setError'):
            for clazz in ('ccp.nmr.Nmr.JCoupling', ):
                self.unregisterNotify(self.updateAfter, clazz, func)

        for func in ('__init__', 'delete'):
            for clazz in ('ccp.nmr.Nmr.JCouplingList', ):
                self.unregisterNotify(self.updateJCouplingLists, clazz, func)

        BasePopup.destroy(self)
Beispiel #27
0
    def __init__(self, parent, *args, **kw):

        self.visibleSpectra = parent.visibleSpectra
        self.toolbarSpectra = parent.toolbarSpectra
        self.waiting = False
        self.window = None

        BasePopup.__init__(self,
                           parent=parent,
                           title='Window : New Window',
                           **kw)
    def __init__(self, parent, *args, **kw):

        self.font = 'Helvetica 10'
        self.sFont = 'Helvetica %d'
        self.project = parent.project
        self.guiParent = parent
        self.chemCompDict = {}
        self.createChemCompDict()
        self.waiting = False
        BasePopup.__init__(self, parent,
                           title="Residue Type Probabilities", **kw)
Beispiel #29
0
    def destroy(self):

        for clazz in ('ccp.nmr.Nmr.Experiment', 'ccp.nmr.Nmr.DataSource'):
            self.registerNotify(self.updateAfter, clazz, 'setName')

        for func in ('__init__', 'delete', ''):
            self.unregisterNotify(self.updateAfter,
                                  'ccpnmr.Analysis.StoredContour', func)

        ###self.unregisterNotify(self.updateAfter, 'memops.Implementation.Url', 'setPath')

        BasePopup.destroy(self)
Beispiel #30
0
    def destroy(self):

        for func in ('__init__', 'delete'):
            for clazz in ('ccp.nmr.Nmr.ShiftList', ):
                self.unregisterNotify(self.updateShiftLists, clazz, func)

        for func in ('__init__', 'delete', 'setNmrChains', 'setResidue',
                     'setResonances', 'addResonance', 'removeResonance'):
            self.unregisterNotify(self.updateSpinSystemsAfter,
                                  'ccp.nmr.Nmr.ResonanceGroup', func)

        BasePopup.destroy(self)
Beispiel #31
0
  def __init__(self, parent, *args, **kw):

    self.molSystem   = None
    self.structure   = None
    self.model       = None
    self.waiting     = False
    self.colorScheme = None
    self.ccpCode     = None # Which Rama background to use
    self.residue     = None  
    self.labelMode   = LABEL_MODES[1]

    BasePopup.__init__(self, parent=parent, title='Chart : Ramachandran Plot', **kw)
    def __init__(self, parent, *args, **kw):
        '''Init. Args: parent: guiParent.

        '''

        self.guiParent = parent
        self.spinSystem1 = None
        self.spinSystem2 = None
        self.correction = True
        self.protonatedShiftList = None
        self.deuteratedShiftList = None
        BasePopup.__init__(self, parent, title="Compare Spin Systems", **kw)
        self.waiting = False
Beispiel #33
0
    def __init__(self, parent, controler, *args, **kw):

        self.font = 'Helvetica 10'
        self.sFont = 'Helvetica %d'
        self.project = parent.project
        self.guiParent = parent

        self.sourceName = 'RefDB'

        self.connector = controler
        self.tabbedFrame = None
        self.saveLoadTab = None
        self.assignTab = None
        self.spectrumSelectionTab = None
        self.resultsTab = None
        self.annealingSettingsTab = None
        self.infoLabel = None

        self.waiting = False

        BasePopup.__init__(self, parent, title="Assignment Suggestions", **kw)
    def open(self):

        self.updateAfter()
        BasePopup.open(self)
Beispiel #35
0
    def destroy(self):
        '''Destroy the popup.'''

        self.administerNotifiers(self.unregisterNotify)
        BasePopup.destroy(self)
Beispiel #36
0
    def open(self):
        '''Open the popup. A standard method.'''

        self.updateAfter()
        BasePopup.open(self)