Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/apps/3Ddrawing/3Ddrawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class GL3DPerspective:
"""
Handy Class for use with python 'with' statement.
on enter: sets the openGL pojection matrix to a standart perspective projection, enables, lighting, normalizing fo normals and depth test
on enter: sets the openGL projection matrix to a standart perspective projection, enables, lighting, normalizing fo normals and depth test
on exit: restores matrices and states to what they were before
"""
def __init__(self, angle=60.0, aspect=4.0/3.0, near=1.0, far=100.0):
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/mandelbrot/mandelbrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def pymt_plugin_activate(w, ctx):
slider = MTSlider(orientation='horizontal', min=25, max=250, value=100, size=(w.width-20, 30), pos=(10,10))

# attach the event handler to the slider
# uses curry to save the firt two arguments, since this is where we have the refernce to them
# uses curry to save the firt two arguments, since this is where we have the reference to them
# and the on_value_changed event only provides on argument ('value')
callback = curry(update_iterations, mbviewer, label)
slider.push_handlers(on_value_change=callback)
Expand Down
6 changes: 3 additions & 3 deletions pymt/cache.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Cache Manager: cache object and delete them automaticly
Cache Manager: cache object and delete them automatically

How to use the cache ::
# register a new Cache
Expand All @@ -10,7 +10,7 @@
instance = MTLabel(label=label)
Cache.append('mycache', label, instance)

# retreive the object later
# retrieve the object later
instance = Cache.get('mycache', label)

If the instance is NULL, the cache may have trash it, because you've
Expand Down Expand Up @@ -185,7 +185,7 @@ def _purge_by_timeout(dt):
# time to draw. and the timeout is not adapted to the current
# framerate. So, increase the timeout by two.
# ie: if the timeout is 1 sec, and framerate go to 0.7, newly
# object added will be automaticly trashed.
# object added will be automatically trashed.
timeout *= 2
Cache._categories[category]['timeout'] = timeout
continue
Expand Down
2 changes: 1 addition & 1 deletion pymt/core/text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def _get_label(self):
def _set_label(self, label):
if label == self._label:
return
# try to automaticly decode unicode
# try to automatically decode unicode
try:
self._label = label.decode('utf8')
except:
Expand Down
2 changes: 1 addition & 1 deletion pymt/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def set_handler(self, name, handler):
def dispatch_event(self, event_type, *args):
'''Dispatch a single event to the attached handlers.

The event is propogated to all handlers from from the top of the stack
The event is propagated to all handlers from from the top of the stack
until one returns `EVENT_HANDLED`. This method should be used only by
`EventDispatcher` implementors; applications should call
the ``dispatch_events`` method.
Expand Down
2 changes: 1 addition & 1 deletion pymt/input/touch.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def depack(self, args):
self.dszpos = self.oszpos = self.sz

def grab(self, class_instance, exclusive=False):
'''Grab a touch. You can grab a touch if you absolutly want to receive
'''Grab a touch. You can grab a touch if you absolutely want to receive
on_touch_move() and on_touch_up(), even if the touch is not dispatched
by your parent ::

Expand Down
2 changes: 1 addition & 1 deletion pymt/tools/packaging/osx/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def report_hook(block_count, block_size, total_size):
p = block_count*block_size*100.0/total_size
print "\b\b\b\b\b\b\b\b\b", "%06.2f"%p +"%",
print " Progress: 000.00%",
urlretrieve(self.deps_url, #location of binary dependencioes needed for portable pymt
urlretrieve(self.deps_url, #location of binary dependencies needed for portable pymt
os.path.join(self.build_dir,'deps.zip'), #tmp file to store teh archive
reporthook=report_hook)
print " [Done]"
Expand Down
2 changes: 1 addition & 1 deletion pymt/tools/packaging/win32/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def report_hook(block_count, block_size, total_size):
p = block_count*block_size*100.0/total_size
print "\b\b\b\b\b\b\b\b\b", "%06.2f"%p +"%",
print " Progress: 000.00%",
urlretrieve(self.deps_url, #location of binary dependencioes needed for portable pymt
urlretrieve(self.deps_url, #location of binary dependencies needed for portable pymt
os.path.join(self.build_dir,'deps.zip'), #tmp file to store teh archive
reporthook=report_hook)
print " [Done]"
Expand Down
2 changes: 1 addition & 1 deletion pymt/ui/widgets/circularslider.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MTCircularSlider(MTWidget):

.. warning::
The widget is drawed from his center. Cause of that, the size of the
widget will be automaticly adjusted from the radius of the slider.
widget will be automatically adjusted from the radius of the slider.
Eg: if you ask for a radius=100, the widget size will be 200x200

:Parameters:
Expand Down
2 changes: 1 addition & 1 deletion pymt/ui/widgets/composed/vkeyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def _update(self):
self._need_update = None

def _do_update(self, mode=None):
# we absolutly want mode to update displaylist.
# we absolutely want mode to update displaylist.
if mode not in ('background', 'keys'):
return

Expand Down
2 changes: 1 addition & 1 deletion pymt/ui/widgets/layout/gridlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def update_minimum_size(self):
for i in rows:
height += rows[i]

#remeber for layout
#remember for layout
self.col_widths = cols
self.row_heights = rows

Expand Down
4 changes: 2 additions & 2 deletions pymt/ui/widgets/scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def on_touch_move(self, touch):
self.transform_with_touch (touch)
self._last_touch_pos[touch] = touch.pos

# stop porpagating if its within our bounds
# stop propagating if its within our bounds
if self.collide_point(x, y):
return True

Expand All @@ -436,7 +436,7 @@ def on_touch_up(self, touch):
del self._last_touch_pos[touch]
self._touches.remove(touch)

# stop porpagating if its within our bounds
# stop propagating if its within our bounds
if self.collide_point(x, y):
return True

Expand Down
2 changes: 1 addition & 1 deletion pymt/ui/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(self, **kwargs):
self._cls = ''
self._inline_style = kwargs['style']

# loading is done here automaticly
# loading is done here automatically
self.cls = kwargs.get('cls')

def _set_cls(self, cls):
Expand Down