DNATool2/DNAToolApp.py
def createPrimerDBGUI(self, sidepane=True):
        """We create this individually to avoid confusion"""
        if hasattr(self, 'PrimerDB'):
            self.PrimerDB.lift()
            return
        fr = self.createChildFrame(name='PrimerDB',sidepane=sidepane)
        self.pdbwin = PrimerDBGUI(fr, database=self.primerdb)
        self.pdbwin.update()
        self.pdbwin.pack(fill=BOTH,expand=1)
        #bind window closing so it's automatically recreated in the sidepane
        if sidepane == False:
            def func(evt):
                self.createPrimerDBGUI()
            self.pdbwin.bind("<Destroy>", func)
        return fr
We create this individually to avoid confusion
We create this individually to avoid confusion
We create this individually to avoid confusion
def createPrimerDBGUI(self, sidepane=True):
        if hasattr(self, 'PrimerDB'):
            self.PrimerDB.lift()
            return
        fr = self.createChildFrame(name='PrimerDB',sidepane=sidepane)
        self.pdbwin = PrimerDBGUI(fr, database=self.primerdb)
        self.pdbwin.update()
        self.pdbwin.pack(fill=BOTH,expand=1)
        if sidepane == False:
            def func(evt):
                self.createPrimerDBGUI()
            self.pdbwin.bind("<Destroy>", func)
        return fr
def createPrimerDBGUI ( self , sidepane = True ) : if hasattr ( self , 'PrimerDB' ) : self . PrimerDB . lift ( ) return fr = self . createChildFrame ( name = 'PrimerDB' , sidepane = sidepane ) self . pdbwin = PrimerDBGUI ( fr , database = self . primerdb ) self . pdbwin . update ( ) self . pdbwin . pack ( fill = BOTH , expand = 1 ) if sidepane == False : def func ( evt ) : self . createPrimerDBGUI ( ) self . pdbwin . bind ( "<Destroy>" , func ) return fr
We create this individually to avoid confusion
We create this individually to avoid confusion
"""We create this individually to avoid confusion""" #bind window closing so it's automatically recreated in the sidepane
self
sidepane