def test_draw(): """ Draw a molecule using GR """ molecule = mogli.read('examples/dna.xyz')[0] # Draw the molecule (with the current GR workstation type) mogli.draw(molecule) # Close GR again gr.emergencyclosegks()
def quit(self): gr.emergencyclosegks() self.close()
def __del__(self): if gr: gr.emergencyclosegks()
def end(self): self.is_recording = False gr.emergencyclosegks()
def quit(self, event): gr.emergencyclosegks() self.GetParent().Destroy()