Example #1
0
    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