From d265d13f6ca36115316edfe7c856b44c24ea6df1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 14 Jul 2020 12:00:55 -0700 Subject: [PATCH] Spelling fixes in the demo --- demo/ActivityIndicator.py | 2 +- demo/AnimationCtrl.py | 2 +- demo/CollapsibleHeaderCtrl.py | 2 +- demo/CollapsiblePane.py | 2 +- demo/ColourDB.py | 2 +- demo/ComboCtrl.py | 2 +- demo/Cursor.py | 2 +- demo/CustomDragAndDrop.py | 4 ++-- demo/DVC_DataViewModel.py | 2 +- demo/ExpandoTextCtrl.py | 2 +- demo/FileDialog.py | 4 ++-- demo/FloatCanvas.py | 4 ++-- demo/Gauge.py | 2 +- demo/GenericButtons.py | 4 ++-- demo/Grid.py | 2 +- demo/I18N.py | 2 +- demo/Joystick.py | 14 +++++++------- demo/LEDNumberCtrl.py | 2 +- demo/ListCtrl.py | 2 +- demo/Main.py | 6 +++--- demo/MediaCtrl.py | 2 +- demo/PlateButton.py | 2 +- demo/Process.py | 4 ++-- demo/PropertyGrid.py | 2 +- demo/RawBitmapAccess.py | 2 +- demo/RendererNative.py | 2 +- demo/ScrolledPanel.py | 2 +- demo/Sizers.py | 2 +- demo/Sound.py | 2 +- demo/StandardPaths.py | 2 +- demo/Threads.py | 2 +- demo/Throbber.py | 6 +++--- demo/TimeCtrl.py | 2 +- demo/Timer.py | 10 +++++----- demo/ToolBar.py | 2 +- demo/agw/AUI.py | 4 ++-- demo/agw/BalloonTip.py | 2 +- demo/agw/ButtonPanel.py | 2 +- demo/agw/FlatMenu.py | 2 +- demo/agw/FlatNotebook.py | 2 +- demo/agw/FoldPanelBar.py | 2 +- demo/agw/FourWaySplitter.py | 2 +- demo/agw/HyperTreeList.py | 4 ++-- demo/agw/LabelBook.py | 2 +- demo/agw/RulerCtrl.py | 2 +- demo/agw/ShapedButton.py | 2 +- demo/agw/SpeedMeter.py | 2 +- demo/agw/ThumbnailCtrl.py | 2 +- demo/data/proclamation.txt | 2 +- 49 files changed, 70 insertions(+), 70 deletions(-) diff --git a/demo/ActivityIndicator.py b/demo/ActivityIndicator.py index 54635087..6e800262 100644 --- a/demo/ActivityIndicator.py +++ b/demo/ActivityIndicator.py @@ -23,7 +23,7 @@ class TestPanel(wx.Panel): sizer.Add(startBtn, wx.SizerFlags().Border(wx.LEFT, 40)) sizer.Add(stopBtn, wx.SizerFlags().Border(wx.LEFT, 10)) - # Put it all in an outter box with a border + # Put it all in an outer box with a border box = wx.BoxSizer() box.Add(sizer, wx.SizerFlags(1).Border(wx.ALL, 30)) self.SetSizer(box) diff --git a/demo/AnimationCtrl.py b/demo/AnimationCtrl.py index 72b4c017..1886d5b0 100644 --- a/demo/AnimationCtrl.py +++ b/demo/AnimationCtrl.py @@ -32,7 +32,7 @@ class TestPanel(wx.Panel): sizer = wx.FlexGridSizer(cols=3, hgap=5, vgap=5) for name in GIFNames: - # There are a few usage pattens for creating the control and the + # There are a few usage patterns for creating the control and the # animation object. They're more-or-less equivalent, but if you have # non-standard needs in your application then one pattern may make # more sense for you to use. diff --git a/demo/CollapsibleHeaderCtrl.py b/demo/CollapsibleHeaderCtrl.py index 151b2d19..98257b86 100644 --- a/demo/CollapsibleHeaderCtrl.py +++ b/demo/CollapsibleHeaderCtrl.py @@ -22,7 +22,7 @@ class TestPanel(wx.Panel): sizer.Add(setBtn, wx.SizerFlags().Border(wx.LEFT, 40)) sizer.Add(unsetBtn, wx.SizerFlags().Border(wx.LEFT, 10)) - # Put it all in an outter box with a border + # Put it all in an outer box with a border box = wx.BoxSizer() box.Add(sizer, wx.SizerFlags(1).Border(wx.ALL, 30)) self.SetSizer(box) diff --git a/demo/CollapsiblePane.py b/demo/CollapsiblePane.py index 68ec6f2e..fae12ee7 100644 --- a/demo/CollapsiblePane.py +++ b/demo/CollapsiblePane.py @@ -110,7 +110,7 @@ def runTest(frame, nb, log): overview = """

wx.CollapsiblePane

-A collapsable panel is a container with an embedded button-like +A collapsible panel is a container with an embedded button-like control which can be used by the user to collapse or expand the pane's contents. diff --git a/demo/ColourDB.py b/demo/ColourDB.py index d3802b21..5f779d2a 100644 --- a/demo/ColourDB.py +++ b/demo/ColourDB.py @@ -29,7 +29,7 @@ class TestWindow(wx.ScrolledWindow): # Using GetFullTextExtent(), we calculate a basic 'building block' # that will be used to draw a depiction of the color list. We're - # using 'Wy' as the model becuase 'W' is a wide character and 'y' + # using 'Wy' as the model because 'W' is a wide character and 'y' # has a descender. This constitutes a 'worst case' scenario, which means # that no matter what we draw later, text-wise, we'll have room for it w,h,d,e = dc.GetFullTextExtent("Wy") diff --git a/demo/ComboCtrl.py b/demo/ComboCtrl.py index 23074c98..63bca63c 100644 --- a/demo/ComboCtrl.py +++ b/demo/ComboCtrl.py @@ -8,7 +8,7 @@ import os #---------------------------------------------------------------------- # 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): diff --git a/demo/Cursor.py b/demo/Cursor.py index 9e18d55c..fdbd88ee 100644 --- a/demo/Cursor.py +++ b/demo/Cursor.py @@ -246,7 +246,7 @@ NOTE: not all stock cursors have a specific representation on all platforms. self.SetSizer(vbSizer) - wx.CallAfter(self.cb.SetFocus) # Convienience start for mousewheel switching. + wx.CallAfter(self.cb.SetFocus) # Convenience start for mousewheel switching. def OnChooseCursor(self, evt): # Clear the dots. diff --git a/demo/CustomDragAndDrop.py b/demo/CustomDragAndDrop.py index 74324a5f..7759b77a 100644 --- a/demo/CustomDragAndDrop.py +++ b/demo/CustomDragAndDrop.py @@ -337,8 +337,8 @@ if __name__ == '__main__': overview = """ This demo shows Drag and Drop using a custom data type and a custom data object. A type called "DoodleLines" is created and a Python -Pickle of a list is actually transfered in the drag and drop -opperation. +Pickle of a list is actually transferred in the drag and drop +operation. A second data object is also created containing a bitmap of the image and is made available to any drop target that accepts bitmaps, such as diff --git a/demo/DVC_DataViewModel.py b/demo/DVC_DataViewModel.py index 59909851..a5406b87 100644 --- a/demo/DVC_DataViewModel.py +++ b/demo/DVC_DataViewModel.py @@ -102,7 +102,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. ##self.log.write("GetChildren\n") # If the parent item is invalid then it represents the hidden root diff --git a/demo/ExpandoTextCtrl.py b/demo/ExpandoTextCtrl.py index d6dc8b37..dad42816 100644 --- a/demo/ExpandoTextCtrl.py +++ b/demo/ExpandoTextCtrl.py @@ -145,7 +145,7 @@ overview = """

ExpandoTextCtrl

The ExpandoTextCtrl is a multi-line wx.TextCtrl that will -adjust its height on the fly as needed to accomodate the number of +adjust its height on the fly as needed to accommodate the number of lines needed to display the current content of the control. It is assumed that the width of the control will be a fixed value and that only the height will be adjusted automatically. If the diff --git a/demo/FileDialog.py b/demo/FileDialog.py index fa4e82e0..3170fa1f 100644 --- a/demo/FileDialog.py +++ b/demo/FileDialog.py @@ -31,7 +31,7 @@ class TestPanel(wx.Panel): self.log.WriteText("CWD: %s\n" % os.getcwd()) # Create the dialog. In this case the current directory is forced as the starting - # directory for the dialog, and no default file name is forced. This can easilly + # directory for the dialog, and no default file name is forced. This can easily # be changed in your program. This is an 'open' dialog, and allows multitple # file selections as well. # @@ -70,7 +70,7 @@ class TestPanel(wx.Panel): self.log.WriteText("CWD: %s\n" % os.getcwd()) # Create the dialog. In this case the current directory is forced as the starting - # directory for the dialog, and no default file name is forced. This can easilly + # directory for the dialog, and no default file name is forced. This can easily # be changed in your program. This is an 'save' dialog. # # Unlike the 'open dialog' example found elsewhere, this example does NOT diff --git a/demo/FloatCanvas.py b/demo/FloatCanvas.py index be7e9d30..48d971cf 100644 --- a/demo/FloatCanvas.py +++ b/demo/FloatCanvas.py @@ -1560,7 +1560,7 @@ def BuildDrawFrame(): # this gets called when needed, rather than on import Arrow.HitLineWidth = 6 Arrow.Bind(FloatCanvas.EVT_FC_LEFT_DOWN, self.ArrowClicked) - Canvas.AddText("Changable Arrow: try clicking it", (16,4), Position = "tc") + Canvas.AddText("Changeable Arrow: try clicking it", (16,4), Position = "tc") self.RotArrow = Canvas.AddArrow((16,4), 80, Direction = 0 ,LineWidth = 3, LineColor = "Green", ArrowHeadAngle = 30) self.RotArrow.HitLineWidth = 6 self.RotArrow.Bind(FloatCanvas.EVT_FC_LEFT_DOWN, self.RotateArrow) @@ -1892,7 +1892,7 @@ if __name__ == "__main__": else: # It's not running stand-alone, set up for wxPython demo. - # don't neeed wxversion here. + # don't need wxversion here. import wx if not haveNumpy: ## TestPanel and runTest used for integration into wxPython Demo diff --git a/demo/Gauge.py b/demo/Gauge.py index c567bcf1..2e04933f 100644 --- a/demo/Gauge.py +++ b/demo/Gauge.py @@ -55,7 +55,7 @@ When the Gauge is initialized, its "complete" value is usually set; at any rate, before using the Gauge, the maximum value of the control must be set. As the task progresses, the Gauge is updated by the program via the SetValue method. -This control is for use within a GUI; there is a seperate ProgressDialog class +This control is for use within a GUI; there is a separate ProgressDialog class to present the same sort of control as a dialog to the user. """ diff --git a/demo/GenericButtons.py b/demo/GenericButtons.py index 96dae9bf..86668df9 100644 --- a/demo/GenericButtons.py +++ b/demo/GenericButtons.py @@ -38,7 +38,7 @@ class TestPanel(wx.Panel): b.Enable(False) sizer.Add(b) - # This time, we let the botton be as big as it can be. + # This time, we let the button be as big as it can be. # Also, this one is fancier, with custom colors and bezel size. b = buttons.GenButton(self, -1, 'bigger') self.Bind(wx.EVT_BUTTON, self.OnBiggerButton, b) @@ -65,7 +65,7 @@ class TestPanel(wx.Panel): b.Enable(False) # An image button, using a mask to get rid of the - # undesireable part of the image + # undesirable part of the image b = buttons.GenBitmapButton(self, -1, None) self.Bind(wx.EVT_BUTTON, self.OnButton, b) bmp = images.Bulb1.GetBitmap() diff --git a/demo/Grid.py b/demo/Grid.py index 0eb2a48d..2d896486 100644 --- a/demo/Grid.py +++ b/demo/Grid.py @@ -11,7 +11,7 @@ buttonDefs = { 817 : ('GridCustTable', ' wx.Grid using a custom Table, with non-string data '), 819 : ('GridEnterHandler',' Remapping keys to behave differently '), 820 : ('GridCustEditor', ' Shows how to create a custom Cell Editor '), - 821 : ('GridDragable', ' A wx.Grid with dragable rows and columns '), + 821 : ('GridDragable', ' A wx.Grid with draggable rows and columns '), 822 : ('GridDragAndDrop', ' Shows how to make a grid a drop target for files'), } diff --git a/demo/I18N.py b/demo/I18N.py index 456b7d33..9c6f5c2c 100644 --- a/demo/I18N.py +++ b/demo/I18N.py @@ -10,7 +10,7 @@ from Main import opj # Normally you would just set _ to be a reference to the # wx.GetTranslation function, and then wrap all you literal strings in -# _() function calls. Then everytime you use one of your literals, it +# _() function calls. Then every time you use one of your literals, it # would first pass through the translation function and try to load a # translated version of the string from the current message catalogs. # For this example, since we are changinb language on the fly, and diff --git a/demo/Joystick.py b/demo/Joystick.py index 2c3758b5..9cfef5d8 100644 --- a/demo/Joystick.py +++ b/demo/Joystick.py @@ -77,7 +77,7 @@ class JoyGauge(wx.Panel): dc = wx.BufferedPaintDC(self, self.buffer) def DrawJoystick(self, dc): - # draw the guage as a maxed square in the center of this window. + # draw the gauge as a maxed square in the center of this window. w, h = self.GetClientSize() edgeSize = min(w, h) @@ -176,7 +176,7 @@ class JoyPanel(wx.Panel): class POVGauge(wx.Panel): # - # Display the current postion of the POV control + # Display the current position of the POV control # def __init__(self, parent, stick): @@ -219,7 +219,7 @@ class POVGauge(wx.Panel): dc = wx.BufferedPaintDC(self, self.buffer) def DrawPOV(self, dc): - # draw the guage as a maxed circle in the center of this window. + # draw the gauge as a maxed circle in the center of this window. w, h = self.GetClientSize() diameter = min(w, h) @@ -608,7 +608,7 @@ class InfoPanel(wx.Panel): class AxisBar(wx.Gauge): # # This class allows us to use a wx.Gauge to display the axis value - # with a fancy label overlayed onto the guage itself. Two values are + # with a fancy label overlaid onto the gauge itself. Two values are # used to do things: first of all, since the gauge is limited to # positive numbers, the scale is fixed at 0 to 1000. We will receive # an adjusted value to use to render the gauge itself. The other value @@ -837,7 +837,7 @@ class AxisPanel(wx.Panel): self.stick = stick # Defines labels and 'tokens' to identify each - # supporte axis. + # supported axis. axesList = [ ('X Axis ', 'X'), ('Y Axis ', 'Y'), ('Z Axis ', 'Z'), ('Rudder ', 'Rudder'), @@ -997,7 +997,7 @@ you can get from the wx.adv.Joystick control.

Getting data from the joystick can be event-driven thanks to four event types associated -with wx.JoystickEvent, or the joystick can be polled programatically to get data on +with wx.JoystickEvent, or the joystick can be polled programmatically to get data on a regular basis.

Data types

@@ -1055,7 +1055,7 @@ versus a four-way hat. The wx.adv.Joystick control is in many ways incomplete at the C++ library level, but it is not insurmountable. In short, while the joystick interface can be event-driven, the wx.JoystickEvent class lacks event binders for all event types. Thus, you cannot -rely on wx.JoystickEvents to tell you when something has changed, necessarilly. +rely on wx.JoystickEvents to tell you when something has changed, necessarily.