From f6ade11aef4b35a4f2cc7356ce1f6dfc0315a53a Mon Sep 17 00:00:00 2001
From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Tue, 6 Apr 2010 09:46:56 +0000
Subject: [PATCH] dokk (the dokking game): -added clear button

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1927 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 examples/dokk/spnav_input.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/dokk/spnav_input.py b/examples/dokk/spnav_input.py
index b5847aa8c..bdb85549f 100644
--- a/examples/dokk/spnav_input.py
+++ b/examples/dokk/spnav_input.py
@@ -11,7 +11,6 @@ class SpnavInputDevice(QtCore.QObject):
     self.spnav = gui.SpnavInput.GetQThread()
     self.spnav.start()
     self.gfx_win = gfx_win
-    self.level = None
     QtCore.QObject.connect(self.spnav,QtCore.SIGNAL("deviceTransformed(int,int,int,int,int,int)"), self.InputChanged)
     QtCore.QObject.connect(self.spnav,QtCore.SIGNAL("deviceButtonPressed(int)"), self.ToggleInputMode)     
     
@@ -65,7 +64,7 @@ class SpnavInputDevice(QtCore.QObject):
     elif button == 2:
       self.level.Begin()
     elif button == 4:
-      Dokk().NextLevel()
+      self.gfx_win.dokk.NextLevel()
     elif button == 6:
       QtGui.QApplication.exit()
     elif button == 10:
-- 
GitLab