Exemple #1
0
 def on_biopolymer(self, e=0):
     bp = biopolymer_calculator.BiopolymerFrame(self)
     result = bp.ShowModal()
     if result == 0:
         print("Imported Mass from Sequence:", bp.mass)
         calc_mass = 0
         try:
             calc_mass = float(bp.mass)
             if calc_mass > 0:
                 item = self.GetFirstSelected()
                 self.SetItem(item, 1, str(calc_mass))
         except:
             pass
     bp.Destroy()
Exemple #2
0
 def on_biopolymer(self, e=0):
     bp = biopolymer_calculator.BiopolymerFrame(self.view)
     result = bp.Show()
     '''