Name | Date | Size | ||
---|---|---|---|---|
.. | 22-Jan-2013 | 25 | ||
MainMenu.nib/ | H | 09-Jun-2014 | 5 | |
PythonBrowser.nib/ | H | 09-Jun-2014 | 5 | |
PythonBrowser.py | H A D | 10-Jan-2013 | 3.7 KiB | |
PythonBrowserModel.py | H A D | 10-Jan-2013 | 5.8 KiB | |
readme.txt | H A D | 10-Jan-2013 | 891 | |
setup.py | H A D | 10-Jan-2013 | 217 | |
summary.txt | H A D | 10-Jan-2013 | 175 |
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