Commit 8f9f2a91 authored by sumpfralle's avatar sumpfralle

fixed GTK warning ("expander_column")

fixed "OpenGL.Tk" logger warning (No handlers could be found for logger "OpenGL.Tk")


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@275 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent c9cf01f5
......@@ -75,7 +75,17 @@ def dependency_details_tk():
except ImportError:
result["opengl"] = False
try:
import logging
try:
# temporarily disable debug output of the logging module
# the error message is: No handlers could be found for logger "OpenGL.Tk"
previous = logging.raiseExceptions
logging.raiseExceptions = 0
except AttributeError:
previous = None
import OpenGL.Tk
if not previous is None:
logging.raiseExceptions = previous
result["togl"] = True
except (ImportError, Tkinter.TclError):
result["togl"] = False
......
......@@ -1014,7 +1014,6 @@
<property name="can_focus">True</property>
<property name="model">TaskList</property>
<property name="headers_clickable">False</property>
<property name="expander_column">Material Allowance</property>
<property name="enable_search">False</property>
<child>
<object class="GtkTreeViewColumn" id="task_enabled">
......
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