Fix lots of misspelled words

This commit is contained in:
Robin Dunn
2020-07-14 11:38:32 -07:00
parent bd6733afa2
commit 92f8cd2d55
46 changed files with 118 additions and 118 deletions

View File

@@ -23,7 +23,7 @@ class NullLog:
#----------------------------------------------------------------------
# This class is used to provide an interface between a ComboCtrl and the
# ListCtrl that is used as the popoup for the combo widget.
# ListCtrl that is used as the popup for the combo widget.
class ListCtrlComboPopup(wx.ComboPopup):

View File

@@ -17,8 +17,8 @@ def makeBlank(self):
return empty
#----------------------------------------------------------------------
# We'll use instaces of these classes to hold our music data. Items in the
# tree will get associated back to the coresponding Song or Genre object.
# We'll use instances of these classes to hold our music data. Items in the
# tree will get associated back to the corresponding Song or Genre object.
class Song(object):
def __init__(self, id, artist, title, genre):
@@ -57,7 +57,7 @@ class Genre(object):
# 1. Artist: string
# 2. Title: string
# 3. id: integer
# 4. Aquired: date
# 4. Acquired: date
# 5. Liked: bool
#
@@ -87,7 +87,7 @@ class MyTreeListModel(dv.PyDataViewModel):
# item(s) should be reported as children of this node. A List view
# simply provides all items as children of this hidden root. A Tree
# view adds additional items as children of the other items, as needed,
# to provide the tree hierachy.
# to provide the tree hierarchy.
# If the parent item is invalid then it represents the hidden root
# item, so we'll use the genre objects as its children and they will

View File

@@ -5,7 +5,7 @@ import wx.dataview as dv
#----------------------------------------------------------------------
# This model class provides the data to the view when it is asked for.
# Since it is a list-only model (no hierachical data) then it is able
# Since it is a list-only model (no hierarchical data) then it is able
# to be referenced by row rather than by item object, so in this way
# it is easier to comprehend and use than other model types. In this
# example we also provide a Compare function to assist with sorting of

View File

@@ -46,7 +46,7 @@ musicdata = [
[44, "Blue Man Group", "Endless Column", "New Age"],
[45, "Blue Man Group", "Klein Mandelbrot", "New Age"],
[46, "Kenny G", "Silhouette", "Jazz"],
[47, "Sade", "Smooth Operator", "Jazz"],
[47, "Sad", "Smooth Operator", "Jazz"],
[48, "David Arkenstone", "Papillon (On The Wings Of The Butterfly)", "New Age"],
[49, "David Arkenstone", "Stepping Stars", "New Age"],
[50, "David Arkenstone", "Carnation Lily Lily Rose", "New Age"],

View File

@@ -6,7 +6,7 @@ intelligent Frame. This one has a menu and a statusbar, is able to
save and reload doodles, clear the workspace, and has a simple control
panel for setting color and line thickness in addition to the popup
menu that DoodleWindow provides. There is also a nice About dialog
implmented using an wx.html.HtmlWindow.
implemented using an wx.html.HtmlWindow.
"""
import sys

View File

@@ -185,7 +185,7 @@ void MyFrame::OnPyFrame(wxCommandEvent& event)
// First, whenever you do anything with Python objects or code, you
// *MUST* aquire the Global Interpreter Lock and block other
// *MUST* acquire the Global Interpreter Lock and block other
// Python threads from running.
wxPyBlock_t blocked = wxPyBeginBlockThreads();

View File

@@ -226,7 +226,7 @@ class DemoApp(wx.App):
I'd like the cursor to change as you change tools, but the stock
wx.Cursors didn't include anything I liked, so I stuck with the
pointer. Pleae let me know if you have any nice cursor images for me to
pointer. Please let me know if you have any nice cursor images for me to
use.
@@ -254,7 +254,7 @@ def Read_MapGen(filename,stats = False):
Each NumPy array in the list is an NX2 array of Python Floats.
The demo should have come with a file, "world.dat" that is the
shorelines of the whole worls, in MapGen format.
shorelines of the whole world, in MapGen format.
"""
from numpy import array
@@ -264,7 +264,7 @@ def Read_MapGen(filename,stats = False):
Shorelines = []
segment = []
for line in data:
if line == "# -b": #New segment begining
if line == "# -b": #New segment beginning
if segment: Shorelines.append(array(segment))
segment = []
else:

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
Test of an alternaive hit test methoid that used the bounding boxes of teh objects instead.
Test of an alternative hit test methoid that used the bounding boxes of the objects instead.
Poorly tested!

View File

@@ -52,7 +52,7 @@ class DrawFrame(wx.Frame):
Rect = Canvas.AddRectangle((50, 20), (40,10), FillColor="Red", LineStyle = None)
Rect.MinSize = 4 # default is 1
Rect.DisappearWhenSmall = False # defualt is True
Rect.DisappearWhenSmall = False # default is True
self.Show()
Canvas.ZoomToBB()

View File

@@ -160,7 +160,7 @@ class DrawFrame(wx.Frame):
if self.MoveTri is not None:
dxy = event.GetPosition() - self.StartPoint
dxy = self.Canvas.ScalePixelToWorld(dxy)
self.MovingTri.Move(dxy) ## The Move function has jsut been added
self.MovingTri.Move(dxy) ## The Move function has just been added
## to the FloatCanvas PointsObject
## It does the next three lines for you.
#self.Tri.Points += dxy

View File

@@ -6,7 +6,7 @@ on top of eveything else on the Canvas, relative to window coords,
rather than screen coords.
This method uses the "GridOver" object in the FloatCanvas
- it was orginally dsigend for girds, graticule,s etc. that
- it was originally dsigend for grids, graticule,s etc. that
are always drawn regardless of zoom, pan, etc, but it works
for overlays too.

View File

@@ -24,7 +24,7 @@ class PixelBitmap:
Canvas.GridOver = MyPixelBitmap
It will always be drawn on top of everything else, and be positioned
according to pixel coordinates on teh screen, regardless of zoom and
according to pixel coordinates on the screen, regardless of zoom and
pan position.
"""

View File

@@ -145,7 +145,7 @@ class DrawFrame(wx.Frame):
self.Canvas.Draw()
def Setup(self, event = None):
"Seting up with some random polygons"
"Setting up with some random polygons"
wx.GetApp().Yield()
self.ResetSelections()
self.Canvas.ClearAll()

View File

@@ -3,7 +3,7 @@
"""
A simple example of sub-classing the Navcanvas
-- an alternative to simply putting a NavCanvas on your yoru oen panle or whatever
-- an alternative to simply putting a NavCanvas on your your own panel or whatever
"""
import wx

View File

@@ -118,7 +118,7 @@ class MyEventLoop(wx.GUIEventLoop):
if 'wxOSX' in wx.PlatformInfo:
self.ProcessIdle()
# Proces remaining queued messages, if any
# Process remaining queued messages, if any
while True:
checkAgain = False
if wx.GetApp() and wx.GetApp().HasPendingEvents():

View File

@@ -19,7 +19,7 @@
# but the best reference should be at http://WermeNH.com/roses/index.html .
# There are a number of enhancements that could be done to wxRoses, and
# contributions are welcome as long as you don't destory the general
# contributions are welcome as long as you don't destroy the general
# structure, flavor, and all that. The following list is in the order
# I'd like to see done. Some are easy, some aren't, some are easy if
# you have experience in the right parts of external code.

View File

@@ -92,7 +92,7 @@ class MyApp(AppBaseClass):
print("Print statements go to this stdout window by default.")
if USE_WIT:
print("Press Ctrl-Alt-I (Cmd-Opt-I on Mac) to launch the WIT.")
print("Press Ctrl-Alt-I (Cmd-Opt-I on Mac) to launch the WITH.")
self.InitInspection()
frame.Show(True)