he Object Browser is a wxPython-based tool for examination of Python objects.
The wxPython library is an open source portable GUI library.
Consider the following Python session:
import ob
x=[1,0.1,'a',{'k1' : (1,'aaa')}]
ob.browse(x)
At this point the following window would appear, see the picture
(
ObjectBrowser1
).
ObjectBrowser1
|
By clicking on the (+)-signs the user may expand it into the following view,
see the picture (
ObjectBrowser2
).
ObjectBrowser2
|
The following example explains handling of custom classes.
class X :
def
__init__(self) :
self.x=1
self.y="aaa"
x=X()
ob.browse(x)
See the picture (
ObjectBrowser3
).
ObjectBrowser3
|
|