From: Robin Dunn Date: Wed, 21 Jan 2004 01:48:24 +0000 (+0000) Subject: cleanup, docs, and typos X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/60d8ee3953ea7d33674ff2264023673a7caddf69 cleanup, docs, and typos git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/Joystick.py b/wxPython/demo/Joystick.py index 8704c867d7..f3bdcd7b33 100644 --- a/wxPython/demo/Joystick.py +++ b/wxPython/demo/Joystick.py @@ -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.

Different methods are provided to retrieve the POV data for a CTS hat versus a four-way hat. diff --git a/wxPython/demo/PyPlot.py b/wxPython/demo/PyPlot.py index 954f37ec6e..ac2c19205c 100644 --- a/wxPython/demo/PyPlot.py +++ b/wxPython/demo/PyPlot.py @@ -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.