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:
@@ -1690,7 +1690,7 @@ class wxPythonDemo(wx.Frame):
|
|||||||
|
|
||||||
def OnOpenWidgetInspector(self, evt):
|
def OnOpenWidgetInspector(self, evt):
|
||||||
# Activate the widget inspection tool
|
# Activate the widget inspection tool
|
||||||
from wx.lib.inspect import InspectionTool
|
from wx.lib.inspection import InspectionTool
|
||||||
if not InspectionTool().initialized:
|
if not InspectionTool().initialized:
|
||||||
InspectionTool().Init()
|
InspectionTool().Init()
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ on the command line.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import wx
|
import wx
|
||||||
import wx.lib.mixins.inspect
|
import wx.lib.mixins.inspection
|
||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
# stuff for debugging
|
# stuff for debugging
|
||||||
@@ -40,7 +40,7 @@ class Log:
|
|||||||
write = WriteText
|
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):
|
def __init__(self, name, module, useShell):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.demoModule = module
|
self.demoModule = module
|
||||||
|
@@ -57,6 +57,11 @@ wx.lib.customtreectrl patches from Andrea:
|
|||||||
4. UnselectAll bug fixed.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -34,8 +34,8 @@ class TestPanel(wx.Panel):
|
|||||||
self.Fit()
|
self.Fit()
|
||||||
|
|
||||||
|
|
||||||
import wx.lib.mixins.inspect
|
import wx.lib.mixins.inspection
|
||||||
class TestApp(wx.App, wx.lib.mixins.inspect.InspectionMixin):
|
class TestApp(wx.App, wx.lib.mixins.inspection.InspectionMixin):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
app = TestApp(False)
|
app = TestApp(False)
|
||||||
|
@@ -39,7 +39,7 @@ class TestFrame(wx.Frame):
|
|||||||
print "result = %d" % result
|
print "result = %d" % result
|
||||||
|
|
||||||
|
|
||||||
from wx.lib.mixins.inspect import InspectableApp
|
from wx.lib.mixins.inspection import InspectableApp
|
||||||
|
|
||||||
app = InspectableApp(False)
|
app = InspectableApp(False)
|
||||||
app.Init()
|
app.Init()
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Name: wx.lib.inspect
|
# Name: wx.lib.inspection
|
||||||
# Purpose: A widget inspection tool that allows easy introspection of
|
# Purpose: A widget inspection tool that allows easy introspection of
|
||||||
# all the live widgets and sizers in an application.
|
# all the live widgets and sizers in an application.
|
||||||
#
|
#
|
@@ -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
|
# Purpose: A mix-in class that can add PyCrust-based inspection of the
|
||||||
# app's widgets and sizers.
|
# app's widgets and sizers.
|
||||||
#
|
#
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
# wxPython-users mail list by Dan Eloff.
|
# wxPython-users mail list by Dan Eloff.
|
||||||
|
|
||||||
import wx
|
import wx
|
||||||
from wx.lib.inspect import InspectionTool
|
from wx.lib.inspection import InspectionTool
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
Reference in New Issue
Block a user