Quantitative Analysis.
Trading Platform.
Python for Excel.
Author.
I.Installation.
II.OTS Scheduler.
III.OTS Python Object Browser.
1.Implementation of Python Object Browser.
Bibliography.
Forum Index Contents Downloads

OTS Python Object Browser.


he OTS Object Browser is a wxPython-based tool for examination of Python objects. The wxPython library is a part of pythonxy.com-based Python installation.

Consider the following Python session:

execfile('otsObjectBrowser.py')

x=[1,0.1,'a',{'k1' : (1,'aaa')}]

browse(x)

At this point the following window would appear, see the picture ( ObjectBrowser1).


ObjectBrowser1
ObjectBrowser1

By clicking on the (+)-signs the user may expand it into the following view, see the picture ( ObjectBrowser2).


ObjectBrowser2
ObjectBrowser2

The file "otsObjectBrowser.py " is located in the directory "python" of the OTS installation (Get the OTSProjects.zip via the "Download" link).

The following example explains handling of custom classes.

class X :

def __init__(self) :

self.x=1

self.y="aaa"

x=X()

browse(x)

See the picture ( ObjectBrowser3).


ObjectBrowser3
ObjectBrowser3




1.Implementation of Python Object Browser.

Forum Index Contents Download


















Copyright 2009.