• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..22-Jan-201325

MainMenu.nib/H09-Jun-20145

PythonBrowser.nib/H09-Jun-20145

PythonBrowser.pyH A D10-Jan-20133.7 KiB

PythonBrowserModel.pyH A D10-Jan-20135.8 KiB

readme.txtH A D10-Jan-2013891

setup.pyH A D10-Jan-2013217

summary.txtH A D10-Jan-2013175

readme.txt

1A module and/or demo program implementing a Python object browser
2
3It can be used in two ways:
41) as a standalone demo app that shows how to use the NSOutlineView class
52) as a module to add an object browser to your app.
6
7For the latter usage, include PythonBrowser.nib in your app bundle,
8make sure that PythonBrowser.py and PythonBrowserModel.py can be found
9on sys.path, and call
10
11.. ::
12
13    PythonBrowser.PythonBrowserWindowController(aBrowsableObject)
14
15from your app. The object to be browsed can't be a number, a string or
16None, any other kind of object is fine.
17
18To build the demo program, run this line in Terminal.app::
19
20   $ python setup.py py2app -A
21
22This creates a directory "dist" containing PythonBrowser.app. (The
23-A option causes the files to be symlinked to the .app bundle instead
24of copied. This means you don't have to rebuild the app if you edit the
25sources or nibs.)
26
27