]> git.saurik.com Git - wxWidgets.git/commitdiff
cleanup, docs, and typos
authorRobin Dunn <robin@alldunn.com>
Wed, 21 Jan 2004 01:48:24 +0000 (01:48 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 21 Jan 2004 01:48:24 +0000 (01:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/Joystick.py
wxPython/demo/PyPlot.py

index 8704c867d7b70b207803b677925c2a77c32193ee..f3bdcd7b338caa2a50a8e982a74dfdb727e59c27 100644 (file)
@@ -17,8 +17,8 @@ import  wx
 
 #----------------------------------------------------------------------------
 
-# For convenience
-spacer = (10, 10)
+# Once all supported versions of Python support 32-bit integers on all
+# platforms, this can go up to 32.
 MAX_BUTTONS = 16
 
 #----------------------------------------------------------------------------
@@ -1002,8 +1002,8 @@ general, this data can be read once and stored to speed computation up.
 Analog input (the axes) is delivered as a whole, positive number. If you need to know 
 if the axis is at zero (centered) or not, you will first have to calculate that center
 based on the max and min values. The demo shows a bar graph for each axis expressed
-in native numerical format, plus a 'centered' X-Y axis compas showing the relationship
-of that input to the calculcated stick position.
+in native numerical format, plus a 'centered' X-Y axis compass showing the relationship
+of that input to the calculated stick position.
 
 Analog input may be jumpy and spurious, so the control has a means of 'smoothing' the
 analog data by setting a movement threshold. This demo sets the threshold to 10, but
@@ -1034,8 +1034,8 @@ values over 30. For that reason, this demo is limited to 16 buttons.
 POV hats come in two flavors: four-way, and continuous. four-way POVs are restricted to
 the cardinal points of the compass; continuous, or CTS POV hats can deliver input in
 .01 degree increments, theoreticaly. The data is returned as a whole number; the last
-two digits are to the right of the decimal point, so in order to use this information,
-you need to divide by 100 right off the bat. 
+two digits are considered to be to the right of the decimal point, so in order to 
+use this information, you need to divide by 100 right off the bat. 
 
 <p>Different methods are provided to retrieve the POV data for a CTS hat 
 versus a four-way hat.
index 954f37ec6e8527a70e0c0a5c63f21febd16787fd..ac2c19205ceae61a9680e522f515d55ff408534b 100644 (file)
@@ -8,7 +8,7 @@ import  wx.lib.plot
 # wx.lib.plot.py came with its own excellent demo built in,     |
 # for testing purposes, but it serves quite well to demonstrate |
 # the code and classes within, so we are simply borrowing that  |
-# code for the demo. Please load up wx.py.plot.py for a review  |
+# code for the demo. Please load up wx.lib.plot.py for a review |
 # of the code itself. The demo/test is at the bottom of         |
 # the file, as expected.                                        |
 ################################################################/
@@ -49,22 +49,22 @@ come with the class itself.
     <ul>
     <li>Page Setup
 
-        This allows you to set up how the plot will be printed. This
+        <p>This allows you to set up how the plot will be printed. This
         is built into the library itself.
        
     <li>Print Preview
 
-        As you might expect, this allows you to preview how the plot
+        <p>As you might expect, this allows you to preview how the plot
         will look when printed, in light of the page setup you may
         have selected above.
         
     <li>Print
     
-        Suprise! It prints the current plot to your printer! :-)
+        <p>Suprise! It prints the current plot to your printer! :-)
         
     <li>Save Plot
     
-        That's right, the library even provides you with the means
+        <p>That's right, the library even provides you with the means
         to export the plotted data out to a graphics file. Several
         formats are allowed for, basically any image class that
         supports saving.
@@ -75,24 +75,24 @@ come with the class itself.
     <ul>
     <li>Plot 1 ... Plot 5
      
-        Different data with different plot formats, including one empty
+        <p>Different data with different plot formats, including one empty
         plot.
          
     <li>Enable Zoom
     
-        If Zoom is enabled, you can rubber-band select an area of the
+        <p>If Zoom is enabled, you can rubber-band select an area of the
         plot to examine it in detail using the left mouse button. Right
         mouse button zooms back out. This is automatically supported
         by the library, all you have to do is turn it on.
         
     <li>Enable Grid
     
-        Plots can have different styles of grids, and and these grids can
+        <p>Plots can have different styles of grids, and and these grids can
         be turned on or off as needed.
         
     <li>Enable Legend
     
-        Plot can have legends or not, the contents which are definable 
+        <p>Plot can have legends or not, the contents which are definable 
         by you.
     </ul>
 </ul>