[wxPython-users] ANN: WindowTree Inspector Tool for wxPython

Robin Dunn robin at alldunn.com
Sun Mar 4 16:23:20 PST 2007


Andrea Gavana wrote:
> Hi all,
> =

>    I had no idea if such a tool existed =


It does.  Take a look at the latest 2.8.2.0 preview build and type F6 in =

the demo.  The code is here:

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/wx/lib/Attic/inspec=
t.py?rev=3D1.1.2.1&only_with_tag=3DWX_2_8_BRANCH&content-type=3Dtext/vnd.vi=
ewcvs-markup
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/wx/lib/mixins/inspe=
ct.py?rev=3D1.5.2.3&only_with_tag=3DWX_2_8_BRANCH&content-type=3Dtext/vnd.v=
iewcvs-markup

I've also attached a screenshot.


> (other than in GUI editors
> like wxDesigner), so I grabbed the nice wxWidget implementation by
> Carl Godkin and, obviously, converted it to wxPython adding some
> whistles and bells. I have used the icons from wxDesigner (for the
> "simple icon" configuration) and from Boa Constructor (for the "full
> descriptive configuration). I hope Robert and Riaan will not kick me
> for this :-D
> =

> So, what is this WindowTree?
> =

> WindowTree can easily be uses to look at the sizer and/or window
> hierarchy of any wxPython applications. Since we usually have some
> quite dynamic interfaces, it's handy to inspect them using the tree
> views that WindowTree provides.

InspectionTool also includes a PyCrust with a 'obj' variable set to the =

widget or sizer selected in the tree, and there is a panel that shows =

the common properties for the selected item.  In addition there is a =

Find tool on the toolbar that will let you click on some widget in the =

app and have it selected in the tree for you.


-- =

Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: inspector.png
Type: image/png
Size: 56495 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
304/469fc7fe/inspector.png


More information about the wxpython-users mailing list