From e472b3d3e7cd7387bffeb5d09fd46eb7f3b76800 Mon Sep 17 00:00:00 2001 From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Fri, 9 Apr 2010 15:04:58 +0000 Subject: [PATCH] dokk (the docking game): - fixed timer bug - detail of ligand sphere git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1960 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- examples/dokk/level.py | 1 + examples/dokk/ligand.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/dokk/level.py b/examples/dokk/level.py index 85236e4dd..fbb11f63f 100644 --- a/examples/dokk/level.py +++ b/examples/dokk/level.py @@ -111,6 +111,7 @@ class Level(QtCore.QObject): def Reset(self): self.endtime = 0 self.stop_time = 0 + self.timer.stop() self.CleanHUD() self.ResetPos() self.emit(QtCore.SIGNAL("Stopped()")) diff --git a/examples/dokk/ligand.py b/examples/dokk/ligand.py index 1e4f58798..e970f560d 100644 --- a/examples/dokk/ligand.py +++ b/examples/dokk/ligand.py @@ -7,6 +7,7 @@ class Ligand: self.the_solution_=ligand.Copy().CreateFullView() self.go=gfx.Entity("Ligand", gfx.CPK, self.handle) self.go.SetColor(gfx.GREEN, 'ele=C') + self.go.cpk_options.SetSphereDetail(7) gfx.Scene().Add(self.go) gfx.Scene().SetCenter(self.go.center) bbox=self.go.GetBoundingBox() -- GitLab