Commit 4152dac2 authored by sumpfralle's avatar sumpfralle

removed unnecessary reference to "gtk" package (this caused the Tk interface to break)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@238 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 05cff6f5
...@@ -3,7 +3,6 @@ import OpenGL.GLUT as GLUT ...@@ -3,7 +3,6 @@ import OpenGL.GLUT as GLUT
# "ode" is imported later, if required # "ode" is imported later, if required
#import ode_objects #import ode_objects
import random import random
import gtk
MODEL_TRANSFORMATIONS = { MODEL_TRANSFORMATIONS = {
...@@ -263,10 +262,8 @@ class ToolPathInfo: ...@@ -263,10 +262,8 @@ class ToolPathInfo:
return self.toolpath return self.toolpath
def set_color(self, color=None): def set_color(self, color=None):
color_max = 65535
if color is None: if color is None:
self.color = gtk.gdk.Color(random.randint(0, color_max), self.color = (random.random(), random.random(), random.random())
random.randint(0, color_max), random.randint(0, color_max))
else: else:
self.color = color self.color = color
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment