Object browser


Warning: mysql_real_escape_string(): Access denied for user ''@'localhost' (using password: NO) in /home/frelaen/webapps/robofontdoc/wp-content/plugins/github-code-viewer-2/GitHub_Code_Viewer.php on line 116

Warning: mysql_real_escape_string(): A link to the server could not be established in /home/frelaen/webapps/robofontdoc/wp-content/plugins/github-code-viewer-2/GitHub_Code_Viewer.php on line 116

A developer helper tool to find out what is inside an object, module, class and find out how to use it.

import vanilla
import mojo

"""
Example usage of the vanilla objectBrowser.
"""


class ObjectBrowserController():

        def __init__(self, inspectObject):

            if inspectObject is None:
                raise TypeError, "can not inspect None value"

            self.w = vanilla.Window((400, 400),
                                   "inspect %s" %inspectObject,
                                   minSize=(100, 100))
            self.w.b = vanilla.ObjectBrowser((0, 0, -0, -0),
                                   inspectObject)
            self.w.open()


#obj = vanilla
#obj = mojo
obj = CurrentFont()

ObjectBrowserController(obj)