mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Fix lots of misspelled words
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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!
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
"""
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user