Renamed the wx.lib.inspect and wx.lib.mixins.inspect modules to

inspection, in order to avoid conflicts with the inspect module in the
standard Python library.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-03-08 19:24:13 +00:00
parent 236a17eb09
commit c80bb70aaa
7 changed files with 14 additions and 9 deletions

View File

@@ -1690,7 +1690,7 @@ class wxPythonDemo(wx.Frame):
def OnOpenWidgetInspector(self, evt):
# Activate the widget inspection tool
from wx.lib.inspect import InspectionTool
from wx.lib.inspection import InspectionTool
if not InspectionTool().initialized:
InspectionTool().Init()

View File

@@ -18,7 +18,7 @@ on the command line.
"""
import wx
import wx.lib.mixins.inspect
import wx.lib.mixins.inspection
import sys, os
# stuff for debugging
@@ -40,7 +40,7 @@ class Log:
write = WriteText
class RunDemoApp(wx.App, wx.lib.mixins.inspect.InspectionMixin):
class RunDemoApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
def __init__(self, name, module, useShell):
self.name = name
self.demoModule = module

View File

@@ -57,6 +57,11 @@ wx.lib.customtreectrl patches from Andrea:
4. UnselectAll bug fixed.
Renamed the wx.lib.inspect and wx.lib.mixins.inspect modules to
inspection, in order to avoid conflicts with the inspect module in the
standard Python library.

View File

@@ -34,8 +34,8 @@ class TestPanel(wx.Panel):
self.Fit()
import wx.lib.mixins.inspect
class TestApp(wx.App, wx.lib.mixins.inspect.InspectionMixin):
import wx.lib.mixins.inspection
class TestApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
pass
app = TestApp(False)

View File

@@ -39,7 +39,7 @@ class TestFrame(wx.Frame):
print "result = %d" % result
from wx.lib.mixins.inspect import InspectableApp
from wx.lib.mixins.inspection import InspectableApp
app = InspectableApp(False)
app.Init()

View File

@@ -1,5 +1,5 @@
#----------------------------------------------------------------------------
# Name: wx.lib.inspect
# Name: wx.lib.inspection
# Purpose: A widget inspection tool that allows easy introspection of
# all the live widgets and sizers in an application.
#

View File

@@ -1,5 +1,5 @@
#----------------------------------------------------------------------------
# Name: wx.lib.mixins.inspect
# Name: wx.lib.mixins.inspection
# Purpose: A mix-in class that can add PyCrust-based inspection of the
# app's widgets and sizers.
#
@@ -15,7 +15,7 @@
# wxPython-users mail list by Dan Eloff.
import wx
from wx.lib.inspect import InspectionTool
from wx.lib.inspection import InspectionTool
#----------------------------------------------------------------------------