Beispiel #1
0
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()
Beispiel #2
0
 def quit(self):
     gr.emergencyclosegks()
     self.close()
Beispiel #3
0
 def __del__(self):
     if gr:
         gr.emergencyclosegks()
Beispiel #4
0
 def __del__(self):
     if gr:
         gr.emergencyclosegks()
Beispiel #5
0
 def end(self):
     self.is_recording = False
     gr.emergencyclosegks()
Beispiel #6
0
 def quit(self):
     gr.emergencyclosegks()
     self.close()
Beispiel #7
0
 def quit(self, event):
     gr.emergencyclosegks()
     self.GetParent().Destroy()
Beispiel #8
0
 def end(self):
     self.is_recording = False
     gr.emergencyclosegks()