Update of /cvsroot/pythoncard/PythonCard/docs/html
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13474
Modified Files:
walkthrough1.html
Log Message:
changed code blocks to use <pre>
Index: walkthrough1.html
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/docs/html/walkthrough1.html,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** walkthrough1.html 21 Aug 2005 18:47:59 -0000 1.18
--- walkthrough1.html 25 Dec 2005 12:33:32 -0000 1.19
***************
*** 68,72 ****
<li>In the "Application used to perform action:" field you need
to specify the path to the Python executable as well as the location of the
! codeEditor.py file. On a Python 2.3.4 installation using the default
installer this will look like:</li>
</ol>
--- 68,72 ----
<li>In the "Application used to perform action:" field you need
to specify the path to the Python executable as well as the location of the
! codeEditor.py file. On a Python 2.3.5 installation using the default
installer this will look like:</li>
</ol>
***************
*** 180,185 ****
script is, as you'd expect, brief and to the point. Here's the important
part to focus on:</p>
! <p class="code"> def on_menuFileAbout_select(self, event):<br />
! pass</p>
<p>Even without understanding Python you can probably tell what this code
snippet does. (That's one of the beauties of Python. It is eminently
--- 180,187 ----
script is, as you'd expect, brief and to the point. Here's the important
part to focus on:</p>
! <pre>
! def on_menuFileAbout_select(self, event):
! pass
! </pre>
<p>Even without understanding Python you can probably tell what this code
snippet does. (That's one of the beauties of Python. It is eminently
***************
*** 196,201 ****
<p>First, select the word "pass". Type in its place the following
line:</p>
! <p class="code">
! result = dialog.alertDialog(self, 'It works!', 'Showing Off')</p>
<p>Again, this new line of Python code is readable even if you're not a
Python guru yet. Now when the user selects the Exit menu, rather than doing
--- 198,204 ----
<p>First, select the word "pass". Type in its place the following
line:</p>
! <pre>
! result = dialog.alertDialog(self, 'It works!', 'Showing Off')
! </pre>
<p>Again, this new line of Python code is readable even if you're not a
Python guru yet. Now when the user selects the Exit menu, rather than doing
***************
*** 205,211 ****
with dialogs. Near the top of the file above the comments that explain what's
going on is a line that says:</p>
! <p class="code">from PythonCard import model</p>
<p>Change that so it says:</p>
! <p class="code">from PythonCard import dialog, model</p>
<p>Save the code.</p>
<p><strong>IT IS IMPORTANT</strong>, if you choose to use a Python editor
--- 208,218 ----
with dialogs. Near the top of the file above the comments that explain what's
going on is a line that says:</p>
! <pre>
! from PythonCard import model
! </pre>
<p>Change that so it says:</p>
! <pre>
! from PythonCard import dialog, model
! </pre>
<p>Save the code.</p>
<p><strong>IT IS IMPORTANT</strong>, if you choose to use a Python editor
***************
*** 223,227 ****
open for editing. Replace the string 'It works!' in the line we edited
earlier so that the line reads:</p>
! <p class="code"> result = dialog.alertDialog(self, self.components.field1.text, 'Showing Off')</p>
<p>This line is almost identical to the one we just had here, but this one
takes its text from the text in a component called "field1." That
--- 230,236 ----
open for editing. Replace the string 'It works!' in the line we edited
earlier so that the line reads:</p>
! <pre>
! result = dialog.alertDialog(self, self.components.field1.text, 'Showing Off')
! </pre>
<p>This line is almost identical to the one we just had here, but this one
takes its text from the text in a component called "field1." That
|