Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfreddii <freddii@users.noreply.github.com>2021-01-26 22:08:11 +0300
committerfreddii <freddii@users.noreply.github.com>2021-01-26 22:08:11 +0300
commitf482db0c7bf05693d50f8b510ace7a024d41aaca (patch)
tree8684b22825efffcf5340ba53f42088e8ab880f17
parent4f0d7d254d5d808ce1899cd94059a0f440891768 (diff)
fixed typos
-rw-r--r--README.cleanup2
-rw-r--r--README.i18n2
-rw-r--r--README.md4
-rwxr-xr-xprintcore.py2
-rw-r--r--printrun/gl/libtatlin/actors.py2
-rw-r--r--printrun/gl/panel.py2
-rw-r--r--printrun/gui/__init__.py2
-rw-r--r--printrun/gui/graph.py4
-rw-r--r--printrun/objectplater.py2
-rw-r--r--printrun/pronterface.py6
-rwxr-xr-xprintrun/stlplater.py4
-rwxr-xr-xprintrun/stlview.py4
-rw-r--r--release_windows.bat4
13 files changed, 20 insertions, 20 deletions
diff --git a/README.cleanup b/README.cleanup
index 0f9d8db..0e91061 100644
--- a/README.cleanup
+++ b/README.cleanup
@@ -23,7 +23,7 @@ sed -e "s/\(\w\)==\((\)/\1 == \2/g" -i *.py printrun/*.py printrun/*/*.py
sed -e "s/\()\)==\(\w\)/\1 == \2/g" -i *.py printrun/*.py printrun/*/*.py
sed -e "s/\()\)==\((\)/\1 == \2/g" -i *.py printrun/*.py printrun/*/*.py
-Obviously this is not a perfect solution, it WILL break the code. Juste check the diff and fix what's wrong before commiting.
+Obviously this is not a perfect solution, it WILL break the code. Juste check the diff and fix what's wrong before committing.
Flake8 checking:
Flake8 can be used to check the coding style of the project.
diff --git a/README.i18n b/README.i18n
index e27b5da..314c214 100644
--- a/README.i18n
+++ b/README.i18n
@@ -16,7 +16,7 @@ on some systems you have to replace the pygettext with pygettext2 or pygettext3.
followed by minor edits to the generated header.
-This template is the basis for all pronterface mesage catalogs. Right
+This template is the basis for all pronterface message catalogs. Right
now there is only one, for German. New ones can be created:
# Create new pronterface message catalog for a different language
diff --git a/README.md b/README.md
index 1639e3d..5a906a1 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ The following section assumes Linux. Please see specific instructions for Window
**Ubuntu/Debian note:** You might need to install `python3-venv` first.
-**Note:** wxPython4 doesn't have Linux wheels available from the Python Package Index yet. Find a proper wheel for your distro at [extras.wxpython.org](https://extras.wxpython.org/wxPython4/extras/linux/gtk3/) and substitute the link in the bellow example. You might skip the wheel installation, but that results in compiling wxPython4 from source, which can be time and resource consuming and might fail.
+**Note:** wxPython4 doesn't have Linux wheels available from the Python Package Index yet. Find a proper wheel for your distro at [extras.wxpython.org](https://extras.wxpython.org/wxPython4/extras/linux/gtk3/) and substitute the link in the below example. You might skip the wheel installation, but that results in compiling wxPython4 from source, which can be time and resource consuming and might fail.
```console
@@ -97,7 +97,7 @@ $ cd Printrun # change to Printrun directory
$ python3 -m venv venv # create an virtual environment
$ . venv/bin/activate # activate the virtual environment (notice the space after the dot)
(venv) $ python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/fedora-27/wxPython-4.0.1-cp36-cp36m-linux_x86_64.whl # replace the link with yours
-(venv) $ python -m pip install -r requirements.txt # intall the rest of dependencies
+(venv) $ python -m pip install -r requirements.txt # install the rest of dependencies
(venv) $ python pronterface.py # run Pronterface
```
diff --git a/printcore.py b/printcore.py
index 3a8f9f0..84d7fef 100755
--- a/printcore.py
+++ b/printcore.py
@@ -63,7 +63,7 @@ if __name__ == '__main__':
print("ValueError:")
print("\tInvalid BAUD_RATE value '%s'" % a)
print("\tBAUD_RATE must be an integer\n")
- # FIXME: This should output a more apropiate error message when
+ # FIXME: This should output a more appropriate error message when
# not a good baud rate is passed as an argument
# i.e: when baud <= 1000 or > 225000
print(usage)
diff --git a/printrun/gl/libtatlin/actors.py b/printrun/gl/libtatlin/actors.py
index a32f53f..3f510e6 100644
--- a/printrun/gl/libtatlin/actors.py
+++ b/printrun/gl/libtatlin/actors.py
@@ -647,7 +647,7 @@ class GcodeModel(Model):
vertex_k += new_vertices_len
new_vertices_count = new_vertices_len//coordspervertex
- # settings support alpha (transperancy), but it is ignored here
+ # settings support alpha (transparency), but it is ignored here
gline_color = self.movement_color(gline)[:buffered_color_len]
for vi in range(new_vertices_count):
colors[color_k:color_k+buffered_color_len] = gline_color
diff --git a/printrun/gl/panel.py b/printrun/gl/panel.py
index a40b488..a5c4617 100644
--- a/printrun/gl/panel.py
+++ b/printrun/gl/panel.py
@@ -326,7 +326,7 @@ class wxGLPanel(BASE_CLASS):
pass
def update_object_resize(self):
- '''called when the window recieves only if opengl is initialized'''
+ '''called when the window receives only if opengl is initialized'''
pass
def draw_objects(self):
diff --git a/printrun/gui/__init__.py b/printrun/gui/__init__.py
index e70ea7b..2bf7357 100644
--- a/printrun/gui/__init__.py
+++ b/printrun/gui/__init__.py
@@ -280,7 +280,7 @@ class MainWindow(wx.Frame):
self.panel.Bind(wx.EVT_MOUSE_EVENTS, self.editbutton)
self.mainsizer.Layout()
- # This prevents resizing below a reasonnable value
+ # This prevents resizing below a reasonable value
# We sum the lowersizer (left pane / viz / log) min size
# the toolbar height and the statusbar/menubar sizes
minsize = [0, 0]
diff --git a/printrun/gui/graph.py b/printrun/gui/graph.py
index 82412a4..cb09519 100644
--- a/printrun/gui/graph.py
+++ b/printrun/gui/graph.py
@@ -240,7 +240,7 @@ class Graph(BufferedCanvas):
if not (rc.bottom < rs.top or rc.top > rs.bottom)),
key=wx.Rect.GetLeft)
self.boundRect(res)
- # search to the left for gaps large enough to accomodate res
+ # search to the left for gaps large enough to accommodate res
rci = bisect_left(reserved, res)
for i in range(rci, len(reserved)-1):
@@ -423,7 +423,7 @@ class Graph(BufferedCanvas):
self.drawextruder1temp(dc, gc)
class _YBounds:
- """Small helper class to claculate y bounds dynamically"""
+ """Small helper class to calculate y bounds dynamically"""
def __init__(self, graph, minimum_scale=5.0, buffer=0.10):
"""_YBounds(Graph,float,float)
diff --git a/printrun/objectplater.py b/printrun/objectplater.py
index ad967a5..e130f2b 100644
--- a/printrun/objectplater.py
+++ b/printrun/objectplater.py
@@ -136,7 +136,7 @@ class PlaterPanel(wx.Panel):
return True
def rotate_shape(self, angle):
- """rotates acive shape
+ """rotates active shape
positive angle is clockwise
"""
name = self.l.GetSelection()
diff --git a/printrun/pronterface.py b/printrun/pronterface.py
index 562f4cb..6483761 100644
--- a/printrun/pronterface.py
+++ b/printrun/pronterface.py
@@ -1136,7 +1136,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if self.settings.display_progress_on_printer and time.time() - self.printer_progress_time >= self.settings.printer_progress_update_interval:
self.printer_progress_time = time.time()
printer_progress_string = "M117 " + str(round(100 * float(self.p.queueindex) / len(self.p.mainqueue), 2)) + "% Est " + format_duration(secondsremain)
- #":" seems to be some kind of seperator for G-CODE"
+ #":" seems to be some kind of separator for G-CODE"
self.p.send_now(printer_progress_string.replace(":", "."))
if len(printer_progress_string) > 25:
logging.info("Warning: The print progress message might be too long to be displayed properly")
@@ -1675,7 +1675,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
next_layer += 1
generator_output = next(generator)
else:
- # If GCode is not being loaded asynchroneously, it is already
+ # If GCode is not being loaded asynchronously, it is already
# loaded, so let's make visualization sequentially
gcode = self.fgcode
self.gviz.addfile(gcode)
@@ -1705,7 +1705,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if dlg.ShowModal() == wx.ID_OK:
name = dlg.GetPath()
open(name, "w").write("\n".join((line.raw for line in self.fgcode)))
- self.log(_("G-Code succesfully saved to %s") % name)
+ self.log(_("G-Code successfully saved to %s") % name)
dlg.Destroy()
# --------------------------------------------------------------
diff --git a/printrun/stlplater.py b/printrun/stlplater.py
index c2c49f7..8f1be47 100755
--- a/printrun/stlplater.py
+++ b/printrun/stlplater.py
@@ -126,7 +126,7 @@ class showstl(wx.Window):
event.Skip()
def rotate_shape(self, angle):
- """rotates acive shape
+ """rotates active shape
positive angle is clockwise
"""
self.i += angle
@@ -135,7 +135,7 @@ class showstl(wx.Window):
threading.Thread(target = self.cr).start()
def keypress(self, event):
- """gets keypress events and moves/rotates acive shape"""
+ """gets keypress events and moves/rotates active shape"""
keycode = event.GetKeyCode()
step = 5
angle = 18
diff --git a/printrun/stlview.py b/printrun/stlview.py
index 524839a..169ccde 100755
--- a/printrun/stlview.py
+++ b/printrun/stlview.py
@@ -203,7 +203,7 @@ class StlViewPanel(wxGLPanel):
wx.CallAfter(self.Refresh)
def keypress(self, event):
- """gets keypress events and moves/rotates acive shape"""
+ """gets keypress events and moves/rotates active shape"""
keycode = event.GetKeyCode()
step = 5
angle = 18
@@ -270,7 +270,7 @@ class StlViewPanel(wxGLPanel):
wx.CallAfter(self.Refresh)
def update_object_resize(self):
- '''called when the window recieves only if opengl is initialized'''
+ '''called when the window receives only if opengl is initialized'''
pass
def draw_objects(self):
diff --git a/release_windows.bat b/release_windows.bat
index 401fb6c..3e66213 100644
--- a/release_windows.bat
+++ b/release_windows.bat
@@ -51,7 +51,7 @@ if exist v3 (
) else (
echo **********************************************************************
- echo ****** No virtual environment named v3 avaliable ******
+ echo ****** No virtual environment named v3 available ******
echo ****** Will create first a new virtual environment with name v3 ******
echo **********************************************************************
py -3.7 -m venv v3
@@ -90,7 +90,7 @@ if exist v3 (
)
echo ********************************************
-echo ****** upgrate virtual environment v3 ******
+echo ****** upgrade virtual environment v3 ******
echo ********************************************
pip install --upgrade virtualenv