From: Kevin A. <ka...@us...> - 2005-12-22 18:20:46
|
Update of /cvsroot/pythoncard/PythonCard/docs/html In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14778 Modified Files: walkthrough2.html Log Message: changed code blocks to use <pre> where code is meant to be copied and pasted into an editor Index: walkthrough2.html =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/docs/html/walkthrough2.html,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** walkthrough2.html 19 Dec 2005 23:35:38 -0000 1.13 --- walkthrough2.html 22 Dec 2005 18:20:33 -0000 1.14 *************** *** 161,169 **** lines will be indented twice.</li> </ol> ! <p class="code"> def on_incrBtn_mouseClick(self, event):<br /> ! startValue = int(self.components.field1.text)<br /> ! endValue = startValue + 1<br /> ! self.components.field1.text ! = str(endValue)</p> <p>Let's examine this script because the others we will write are all but identical.</p> --- 161,170 ---- lines will be indented twice.</li> </ol> ! <pre> ! def on_incrBtn_mouseClick(self, event): ! startValue = int(self.components.field1.text) ! endValue = startValue + 1 ! self.components.field1.text = str(endValue) ! </pre> <p>Let's examine this script because the others we will write are all but identical.</p> *************** *** 205,210 **** <li>Create a final handler for the Reset button that looks like this:</li> </ol> ! <p class="code"> def on_resetBtn_mouseClick(self, event):<br /> ! self.components.field1.text = "0"</p> <p>Figure 5 shows you what your editor window should look like now.</p> <p class="imageCaption"><img src="images/wt2fig5.png" alt="Editor Showing Final Code Changes" /><br /> --- 206,213 ---- <li>Create a final handler for the Reset button that looks like this:</li> </ol> ! <pre> ! def on_resetBtn_mouseClick(self, event): ! self.components.field1.text = "0" ! </pre> <p>Figure 5 shows you what your editor window should look like now.</p> <p class="imageCaption"><img src="images/wt2fig5.png" alt="Editor Showing Final Code Changes" /><br /> *************** *** 287,291 **** handler name shown here:</li> </ol> ! <p class="code"> def on_counterMenuIncrement_select(self, event):</p> <ol start="9"> <li>Copy the three lines of the function in <span class="code">on_incrBtn_mouseClick</span> --- 290,296 ---- handler name shown here:</li> </ol> ! <pre> ! def on_counterMenuIncrement_select(self, event): ! </pre> <ol start="9"> <li>Copy the three lines of the function in <span class="code">on_incrBtn_mouseClick</span> |