Commit f939866a authored by sumpfralle's avatar sumpfralle

fixed issue with color values

updated installation instructions for Debian Lenny


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@209 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 5c6e6dfb
Version 0.2.1 - UNRELEASED Version 0.2.1 - UNRELEASED
* fixed code that depended on GTK 2.16 (instead of 2.12) * fixed code that depended on GTK 2.16 (instead of 2.12)
* view settings "light", "shadow" and "polygon fill" are now configurable
Version 0.2 - 2010-03-04 Version 0.2 - 2010-03-04
* added an alternative GTK interface with additional features: * added an alternative GTK interface with additional features:
......
...@@ -55,7 +55,12 @@ Install the following packages with your package manager: ...@@ -55,7 +55,12 @@ Install the following packages with your package manager:
python-pyode (optional) python-pyode (optional)
On a debian or ubuntu system you would just type the following in a root console: On a debian or ubuntu system you would just type the following in a root console:
apt-get install python-gtkglext1 python-pyode apt-get install python-gtkglext1 python-pyode python-opengl python-gtk2
BEWARE: Debian Lenny sadly contains a broken "python-opengl" package. You need to
switch to "squeeze" and run "apt-get install python-opengl" to fix this. Afterwards
you should go back to "Lenny". This may also be relevant for certain versions of
Ubuntu.
Dependencies of the Tk interface: Dependencies of the Tk interface:
......
...@@ -44,7 +44,7 @@ COLORS = { ...@@ -44,7 +44,7 @@ COLORS = {
} }
# floating point color values are only available since gtk 2.16 # floating point color values are only available since gtk 2.16
GTK_COLOR_MAX = 65535 GTK_COLOR_MAX = 65535.0
def show_error_dialog(window, message): def show_error_dialog(window, message):
...@@ -402,6 +402,7 @@ class ProjectGui: ...@@ -402,6 +402,7 @@ class ProjectGui:
def set_unit(text): def set_unit(text):
unit_field.set_active((text == "mm") and 0 or 1) unit_field.set_active((text == "mm") and 0 or 1)
self.settings.add_item("unit", unit_field.get_active_text, set_unit) self.settings.add_item("unit", unit_field.get_active_text, set_unit)
unit_field.set_active(0)
# define the limit callback functions # define the limit callback functions
for limit in ["minx", "miny", "minz", "maxx", "maxy", "maxz"]: for limit in ["minx", "miny", "minz", "maxx", "maxy", "maxz"]:
obj = self.gui.get_object(limit) obj = self.gui.get_object(limit)
......
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