From: Youness Alaoui Date: Mon, 10 Aug 2015 21:31:22 +0000 (-0400) Subject: Add Shift-F6 hotkey to open the WX inspection tool X-Git-Tag: lulzbot-15.02.1-2.01~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4cd496544e9e1b0946fab6d2608933ff8b2d1c83;p=cura.git Add Shift-F6 hotkey to open the WX inspection tool --- diff --git a/Cura/gui/app.py b/Cura/gui/app.py index a8759c0f..dc051bf6 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -173,7 +173,7 @@ class CuraApp(wx.App): if version.isDevVersion(): import wx.lib.inspection # Show the WX widget inspection tool - wx.lib.inspection.InspectionTool().Show() + #wx.lib.inspection.InspectionTool().Show() if sys.platform.startswith('darwin'): wx.CallAfter(self.StupidMacOSWorkaround) diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 7c7136e6..d1356c03 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -1,6 +1,7 @@ __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License" import wx +import wx.lib.inspection import numpy import time import os @@ -837,6 +838,9 @@ class SceneView(openglGui.glGuiPanel): self._beforeLeakTest = defaultdict(int) for i in get_objects(): self._beforeLeakTest[type(i)] += 1 + if keyCode == wx.WXK_F6 and wx.GetKeyState(wx.WXK_SHIFT): + # Show the WX widget inspection tool + wx.lib.inspection.InspectionTool().Show() if keyCode == wx.WXK_F5 and wx.GetKeyState(wx.WXK_SHIFT): from collections import defaultdict from gc import get_objects