Skip to content

Commit

Permalink
Fix lots of misspelled words
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinD42 committed Jul 14, 2020
1 parent bd6733a commit 92f8cd2
Show file tree
Hide file tree
Showing 46 changed files with 118 additions and 118 deletions.
126 changes: 63 additions & 63 deletions CHANGES.rst

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ def cmd_build_wx(options, args):
build_options.append('--gtk3')

# Change to what will be the wxWidgets build folder
# (Note, this needs to be after any testing for file/path existance, etc.
# (Note, this needs to be after any testing for file/path existence, etc.
# because they may be specified as relative paths.)
pwd = pushDir(BUILD_DIR)

Expand Down Expand Up @@ -1699,7 +1699,7 @@ def cmd_build_docker(options, args):


def cmd_build_others(options, args):
# Build other stuff that may have their own seprarate build commands instead
# Build other stuff that may have their own separate build commands instead
# of the (ab)normal etg/tweak/generate/sip/compile sequence that the rest of
# wxPython uses. So far, it's just the wx.svg package
cmdTimer = CommandTimer('build_others')
Expand Down
2 changes: 1 addition & 1 deletion docker/gui/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN touch ~/.Xauthority; \
mkdir ~/.vnc; \
echo "password" | vncpasswd -f >> ~/.vnc/passwd; \
chmod 600 ~/.vnc/passwd; \
# And a coresponding one of these:
# And a corresponding one of these:
# echo "exec /usr/bin/startlxde" > ~/.vnc/xstartup;
echo "exec lxsession -e LXDE -s Lubuntu" > ~/.vnc/xstartup;
# echo "exec mate-session" > ~/.vnc/xstartup;
Expand Down
2 changes: 1 addition & 1 deletion etg/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run():
tools.fixWindowClass(c)

# Insert a copy of the base class Play into this class. It's not in the
# inteface docs, but sip needs to see it there, since the one that is there
# interface docs, but sip needs to see it there, since the one that is there
# has a different signature.
c.find('Play').overloads.append(play)

Expand Down
2 changes: 1 addition & 1 deletion etg/bmpcbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def run():
#print([i.name for i in items])
c.find('GetCurrentSelection').ignore()

# Ignore the old C array verison of the ctor and Create methods, and
# Ignore the old C array version of the ctor and Create methods, and
# fixup the remaining ctor and Create with the typical default values for
# the args
c.find('wxBitmapComboBox').findOverload('wxString choices').ignore()
Expand Down
2 changes: 1 addition & 1 deletion etg/brush.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run():
# created. That messes up the code that SIP generates for them, so we need
# to come up with another solution. So instead we will just create
# uninitialized brush in a block of Python code, that will then be
# intialized later when the wx.App is created.
# initialized later when the wx.App is created.
c.addCppMethod('void', '_copyFrom', '(const wxBrush* other)',
"*self = *other;",
briefDoc="For internal use only.") # ??
Expand Down
2 changes: 1 addition & 1 deletion etg/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def run():
""", factory=True)


# Change this macro into a value so we wont have problems when SIP takes its
# Change this macro into a value so we won't have problems when SIP takes its
# address
module.addCppCode("""\
#undef wxTransparentColour
Expand Down
2 changes: 1 addition & 1 deletion etg/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def run():
# created. That messes up the code that SIP generates for them, so we need
# to come up with another solution. So instead we will just create
# uninitialized cursor in a block of Python code, that will then be
# intialized later when the wx.App is created.
# initialized later when the wx.App is created.
c.addCppMethod('void', '_copyFrom', '(const wxCursor* other)',
"*self = *other;",
briefDoc="For internal use only.") # ??
Expand Down
2 changes: 1 addition & 1 deletion etg/dataobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def addGetAllFormats(klass, pureVirtual=False):
""",

# This code will be used in the function that calls a Python implementation
# of this method. So we need to translate between the real C++ siganture
# of this method. So we need to translate between the real C++ signature
# and the Python signature.
virtualCatcherCode="""\
// VirtualCatcherCode for wx.DataObject.GetAllFormats
Expand Down
2 changes: 1 addition & 1 deletion etg/dataview.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def run():
By default a regular dictionary is used to implement the ID to object
mapping. Optionally a WeakValueDictionary can be useful when there will be
a high turnover of objects and mantaining an extra reference to the
a high turnover of objects and maintaining an extra reference to the
objects would be unwise. If weak references are used then the objects
associated with data items must be weak-referenceable. (Things like
stock lists and dictionaries are not.) See :meth:`UseWeakRefs`.
Expand Down
2 changes: 1 addition & 1 deletion etg/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def run():

c.addPyMethod('__iter__', '(self)',
'return PyGridBlocksIterator(self)',
"Returns a Python iterator for acessing the collection of grid blocks.")
"Returns a Python iterator for accessing the collection of grid blocks.")

# This class is the Python iterator that knows how to fetch blocks from the
# wxGridBlocks object
Expand Down
2 changes: 1 addition & 1 deletion etg/intl.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def run():
module.addPyCode("""\
#----------------------------------------------------------------------------
# Add the directory where the wxWidgets catalogs were installed
# to the default catalog path, if they were put in the pacakge dir.
# to the default catalog path, if they were put in the package dir.
import os
_localedir = os.path.join(os.path.dirname(__file__), "locale")
if os.path.exists(_localedir):
Expand Down
2 changes: 1 addition & 1 deletion etg/listctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def run():
c.addPyCode('ListCtrl.SetStringItem = wx.deprecated(ListCtrl.SetItem, "Use SetItem instead.")')


# Provide a way to determine if column ordering is possble
# Provide a way to determine if column ordering is possible
c.addCppMethod('bool', 'HasColumnOrderSupport', '()',
"""\
#ifdef wxHAS_LISTCTRL_COLUMN_ORDER
Expand Down
2 changes: 1 addition & 1 deletion etg/mdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run():
# customizing the generated code and docstrings.

# Let the generator know about these intermediate classes even though they
# are undocumented. wxTDIChildFrame is used elsewhere in the class hiearchy
# are undocumented. wxTDIChildFrame is used elsewhere in the class hierarchy
# so it needs to be available.
module.insertItemBefore(module.find('wxMDIClientWindow'), etgtools.WigCode("""\
class wxMDIChildFrameBase : wxFrame
Expand Down
2 changes: 1 addition & 1 deletion etg/menuitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def run():
c.addItem(etgtools.PropertyDef('Enabled', 'IsEnabled', 'Enable'))

c.find('GetAccel').factory = True
c.find('GetAccelFromString').ignore() # Not implemented anywere?
c.find('GetAccelFromString').ignore() # Not implemented anywhere?

module.addItem(tools.wxListWrapperTemplate('wxMenuItemList', 'wxMenuItem', module))

Expand Down
2 changes: 1 addition & 1 deletion etg/pen.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def run():
# created. That messes up the code that SIP generates for them, so we need
# to come up with another solution. So instead we will just create
# uninitialized pens in a block of Python code, that will then be
# intialized later when the wx.App is created.
# initialized later when the wx.App is created.
c.addCppMethod('void', '_copyFrom', '(const wxPen* other)',
"*self = *other;",
briefDoc="For internal use only.") # ??
Expand Down
2 changes: 1 addition & 1 deletion etg/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run():
# Iterator stuff
c.addPyMethod('__iter__', '(self)', 'return PyRegionIterator(self)',
"""\
Returns a rectangle interator conforming to the Python iterator
Returns a rectangle iterator conforming to the Python iterator
protocol.""")
c.addPyCode("""\
class PyRegionIterator(object):
Expand Down
2 changes: 1 addition & 1 deletion etg/richtextbuffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _fixDrawObject(c, addMissingVirtuals=True):
#-------------------------------------------------------
# Ignore all Dump() methods since we don't wrap wxTextOutputStream.

# TODO: try swithcing the parameter type to wxOutputStream and then in
# TODO: try switching the parameter type to wxOutputStream and then in
# the wrapper code create a wxTextOutputStream from that to pass on to
# Dump.

Expand Down
6 changes: 3 additions & 3 deletions etg/sizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def run():
m.find('userData').transfer = True
m.find('userData').type = 'wxPyUserData*'

gud = c.find('GetUserData')
gud.type = 'wxPyUserData*'
gud.setCppCode('return dynamic_cast<wxPyUserData*>(self->GetUserData());')
good = c.find('GetUserData')
good.type = 'wxPyUserData*'
good.setCppCode('return dynamic_cast<wxPyUserData*>(self->GetUserData());')

# these have been deprecated for a while so go ahead and get rid of them
c.find('SetWindow').ignore()
Expand Down
2 changes: 1 addition & 1 deletion etg/srchctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run():
searchCtrl = c


# The safest way to reconcile the differences in the class hierachy
# The safest way to reconcile the differences in the class hierarchy
# between the native wxSearchCtrl on Mac and the generic one on the other
# platforms is to just say that this class derives directly from
# wxControl (the first common ancestor) instead of wxTextCtrl, and then
Expand Down
2 changes: 1 addition & 1 deletion etg/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run():

c = module.find('wxVisualAttributes')
assert isinstance(c, etgtools.ClassDef)
# Mark the stucture memebers as read-only, and make copies of the values
# Mark the structure members as read-only, and make copies of the values
# when fetching them. This is to protect against cases where the
# VisualAttributes object is transient and may be GC'd while we still are
# using a reference to a C++ member value.
Expand Down
2 changes: 1 addition & 1 deletion etg/windowid.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run():
# allows them to be reused and be also be protected from conflicts from
# other auto allocated IDs.

# First, add defintions of the existing C++ class and its elements
# First, add definitions of the existing C++ class and its elements
klass = ClassDef(name='wxWindowIDRef', bases = [],
briefDoc="""\
A wxWindowIDRef object wraps an ID value and marks it as being in-use until all references to that ID are gone.
Expand Down
2 changes: 1 addition & 1 deletion etg/wxdatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def run():
tools.ignoreAllOperators(c)

# Ignore ctors with unknown types or that have overload conflicts that
# can't be distingished in Python
# can't be distinguished in Python
ctor = c.find('wxDateTime')
ctor.findOverload('time_t').ignore()
ctor.findOverload('struct tm').ignore()
Expand Down
6 changes: 3 additions & 3 deletions etgtools/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def __init__(self, element=None, **kw):
self.pyInt = False # treat char types as integers
self.transfer = False # transfer ownership of return value to C++?
self.transferBack = False # transfer ownership of return value from C++ to Python?
self.transferThis = False # ownership of 'this' pointer transfered to C++
self.transferThis = False # ownership of 'this' pointer transferred to C++
self.cppCode = None # Use this code instead of the default wrapper
self.noArgParser = False # set the NoargParser annotation
self.preMethodCode = None
Expand Down Expand Up @@ -486,7 +486,7 @@ def _cleanName(name):
'wxArrayInt()' : '[]',
}
if isinstance(self, CppMethodDef):
# rip appart the argsString instead of using the (empty) list of parameters
# rip apart the argsString instead of using the (empty) list of parameters
lastP = self.argsString.rfind(')')
args = self.argsString[:lastP].strip('()').split(',')
for arg in args:
Expand Down Expand Up @@ -672,7 +672,7 @@ def __init__(self, element=None, kind='class', **kw):
self.abstract = False # is it an abstract base class?
self.external = False # class is in another module
self.noDefCtor = False # do not generate a default constructor
self.singlton = False # class is a singleton so don't call the dtor until the interpreter exits
self.singleton = False # class is a singleton so don't call the dtor until the interpreter exits
self.allowAutoProperties = True
self.headerCode = []
self.cppCode = []
Expand Down
2 changes: 1 addition & 1 deletion etgtools/pi_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def generateTypedef(self, typedef, stream, indent=''):

# Now write the Python equivalent class for the typedef
if not bases:
bases = ['object'] # this should not happpen, but just in case...
bases = ['object'] # this should not happen, but just in case...
stream.write('%sclass %s(%s):\n' % (indent, name, ', '.join(bases)))
indent2 = indent + ' '*4
if typedef.briefDoc:
Expand Down
2 changes: 1 addition & 1 deletion etgtools/sip_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ def annotate(self, item):
annotations.append('External')
if item.noDefCtor:
annotations.append('NoDefaultCtors')
if item.singlton:
if item.singleton:
annotations.append('DelayDtor')

if annotations:
Expand Down
2 changes: 1 addition & 1 deletion etgtools/sphinx_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def Find(self, klass, node=None):
This method returns ``True`` if this node contains a specific class into its
descendants.
:param `klass`: can be any of the classes definied in this script except :class:`XMLDocString`.
:param `klass`: can be any of the classes defined in this script except :class:`XMLDocString`.
:param `node`: another `Node` instance or ``None`` if this is the first invocation of
this function.
Expand Down
2 changes: 1 addition & 1 deletion etgtools/tweaker_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ def generateStubs(cppFlag, module, excludes=[], typeValMap={},


# A simple class for holding lists of code snippets for the header and
# possibily the C++ file.
# possibly the C++ file.
class _StubCodeHolder:
def __init__(self, flag):
self.flag = flag
Expand Down
2 changes: 1 addition & 1 deletion packaging/README-bdist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ shared libraries. This will work for Windows and Mac, and should also work
for any unix-like system based on ELF binaries, and if the expected objdump
utility was found on the build system.

For those cases where the build was not able to perform the neccesary magic
For those cases where the build was not able to perform the necessary magic
required to be able to make and use relocatable shared libraries, you may
need to do a little extra to help wxPython find the wxWidgets libraries.
Check your platform's documentation for details, but it may be as simple as
Expand Down
2 changes: 1 addition & 1 deletion samples/combo/combo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def write(self, *args):

#----------------------------------------------------------------------
# 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):

Expand Down
8 changes: 4 additions & 4 deletions samples/dataview/DataViewModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -57,7 +57,7 @@ def __repr__(self):
# 1. Artist: string
# 2. Title: string
# 3. id: integer
# 4. Aquired: date
# 4. Acquired: date
# 5. Liked: bool
#

Expand Down Expand Up @@ -87,7 +87,7 @@ def GetChildren(self, parent, children):
# 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
Expand Down
2 changes: 1 addition & 1 deletion samples/dataview/IndexListModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#----------------------------------------------------------------------

# 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
Expand Down
2 changes: 1 addition & 1 deletion samples/dataview/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
[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"],
Expand Down
2 changes: 1 addition & 1 deletion samples/doodle/superdoodle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion samples/embedded/embedded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions samples/floatcanvas/Animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion samples/floatcanvas/BB_HitTest.py
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
Loading

0 comments on commit 92f8cd2

Please sign in to comment.