~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to docs/html/framework/runtime_tools.html

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-03-04 23:55:10 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100304235510-3v6lbhzwrgm0pcca
Tags: 0.8.2-1
* QA upload.
* New upstream release
* debian/control
  - set maintainer to QA group
  - set Homepage field, removing the URL from packages description
  - bump versioned b-d-i on python-support, to properly support Python module
  - replace b-d on python-all-dev with python-all, since building only
    arch:all packages
  - replace Source-Version substvar with source:Version
  - add ${misc:Depends} to binary packages Depends
* debian/watch
  - updated to use the SourceForge redirector; thanks to Raphael Geissert for
    the report and to Dario Minnucci for the patch; Closes: #449904
* debian/{pythoncard-doc, python-pythoncard}.install
  - use wildcards instead of site-packages to fix build with python 2.6;
    thanks to Ilya Barygin for the report and patch; Closes: #572332
* debian/pythoncard-doc.doc-base
  - set section to Programmin/Python
* debian/pythoncard-tools.menu
  - set menu main section to Applications
* debian/pythoncard-tools.postinst
  - removed, needed only to update the menu, but it's now created by debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
</div>
12
12
<?php include "../sidebar.php" ?>
13
13
<div id="content">
14
 
<p>Updated: April 10, 2004 for release 0.7.3</p>
 
14
<p>Updated: March 31, 2006 for release 0.8.2</p>
15
15
 
16
16
<p>PythonCard supports the following runtime tools (command-line switch in
17
17
parens).</p>
69
69
<p>The shell automatically loads a series of commands when it starts up:</p>
70
70
 
71
71
<pre>
72
 
shell.autoCompleteIncludeMagic = True
 
 
b'shell.autoCompleteIncludeSingle = False'
 
 
b'shell.autoCompleteIncludeDouble = False'
 
 
b'shell.autoCompleteWxMethods = False'
 
 
b'import os'
 
 
b'import sys'
 
 
b'# workaround for absolute pathnames'
 
 
b'# in sys.path (see model.py)'
 
 
b"if sys.path[0] not in ('', '.'):"
73
72
   sys.path.insert(0, '')
 
 
b'from wxPython import wx'
 
 
b'from PythonCard import dialog, util'
 
 
b'bg = pcapp.getCurrentBackground()'
 
 
b'self = bg'
 
 
b'comp = bg.components'
 
 
b'</pre>'
 
73
shell.autoCompleteIncludeMagic = True
 
74
shell.autoCompleteIncludeSingle = False
 
75
shell.autoCompleteIncludeDouble = False
 
76
shell.autoCompleteWxMethods = False
 
77
 
 
78
import os
 
79
import sys
 
80
# workaround for absolute pathnames
 
81
# in sys.path (see model.py)
 
82
if sys.path[0] not in ('', '.'):
 
83
    sys.path.insert(0, '')
 
84
 
 
85
import wx
 
86
from PythonCard import dialog, util
 
87
bg = pcapp.getCurrentBackground()
 
88
self = bg
 
89
comp = bg.components
 
90
</pre>
74
91
 
75
92
<p>These commands are in a pycrustrc.py file in the framework directory. You can 
76
93
also have a pycrustrc.py file in a PythonCard application directory (see the
85
102
PythonCard probably makes the most and best use of PyCrust right now.</p>
86
103
 
87
104
<hr>
 
 
b'| <a href="general_concepts_and_limitations.html">General Concepts and Limitations</a> '
 
 
b'| <a href="components.html">Components</a> '
 
 
b'| <a href="dialogs.html">Dialogs</a> '
 
 
b'| <a href="events_and_handlers.html">Events and Handlers</a> '
 
 
b'| <a href="menus.html">Menus</a> '
 
 
b'| <a href="resource_files.html">Resource Files</a> '
 
 
b'| <a href="runtime_tools.html">Runtime Tools</a> '
 
 
b'<hr>'
88
105
   <?php include "../footer.php" ?>
89
 
    <p>$Revision: 1.2 $ : $Author: kasplat $ : Last updated $Date: 2004/08/14 21:05:15 $</p>
 
106
    <p>$Revision: 1.4 $ : $Author: alextweedly $ : Last updated $Date: 2006/04/06 11:00:26 $</p>
90
107
</div> <!-- end of content -->
91
108
</body>
92
109
</html>