From: smorloc Date: Tue, 22 Jan 2013 19:24:34 +0000 (-0500) Subject: Fixed class/method name typo 'exporer' X-Git-Tag: 13.03~64^2~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0dcb4e0926366ad6786c779022e6e060bbb6f1d8;p=cura.git Fixed class/method name typo 'exporer' --- diff --git a/Cura/gui/pluginPanel.py b/Cura/gui/pluginPanel.py index ebeddb91..e816de8c 100644 --- a/Cura/gui/pluginPanel.py +++ b/Cura/gui/pluginPanel.py @@ -5,7 +5,7 @@ import webbrowser from wx.lib import scrolledpanel from Cura.util import profile -from Cura.util import exporer +from Cura.util import explorer class pluginPanel(wx.Panel): def __init__(self, parent): @@ -168,4 +168,4 @@ class pluginPanel(wx.Panel): webbrowser.open('http://wiki.ultimaker.com/Category:CuraPlugin') def OnOpenPluginLocation(self, e): - exporer.openExporerPath(profile.getPluginBasePaths()[0]) + explorer.openExplorerPath(profile.getPluginBasePaths()[0]) diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index 4ce44aa4..9ac08b0f 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -34,7 +34,7 @@ from Cura.util import stl from Cura.util import mesh from Cura.util import sliceRun from Cura.util import gcodeInterpreter -from Cura.util import exporer +from Cura.util import explorer class Action(object): pass @@ -984,7 +984,7 @@ class ProjectSliceProgressWindow(wx.Frame): self.sizer.Add(self.closeButton, (3,0), span=(1,1)) self.sizer.Add(self.printButton, (3,1), span=(1,1)) self.sizer.Add(self.logButton, (3,2), span=(1,1)) - if exporer.hasExporer(): + if explorer.hasExplorer(): self.openFileLocationButton = wx.Button(self, -1, "Open file location") self.Bind(wx.EVT_BUTTON, self.OnOpenFileLocation, self.openFileLocationButton) self.sizer.Add(self.openFileLocationButton, (3,3), span=(1,1)) @@ -1006,7 +1006,7 @@ class ProjectSliceProgressWindow(wx.Frame): shutil.copy(self.resultFilename, os.path.join(profile.getPreference('sdpath'), filename)) def OnOpenFileLocation(self, e): - exporer.openExporer(self.resultFilename) + explorer.openExplorer(self.resultFilename) def OnPrint(self, e): printWindow.printFile(self.resultFilename) diff --git a/Cura/gui/sliceProgressPanel.py b/Cura/gui/sliceProgressPanel.py index c1a992c5..91cea9ac 100644 --- a/Cura/gui/sliceProgressPanel.py +++ b/Cura/gui/sliceProgressPanel.py @@ -12,7 +12,7 @@ from Cura.gui import preferencesDialog from Cura.gui.util import taskbar from Cura.util import profile from Cura.util import sliceRun -from Cura.util import exporer +from Cura.util import explorer from Cura.util import gcodeInterpreter class sliceProgressPanel(wx.Panel): @@ -62,7 +62,7 @@ class sliceProgressPanel(wx.Panel): LogWindow('\n'.join(self.progressLog)) def OnOpenFileLocation(self, e): - exporer.openExporer(sliceRun.getExportFilename(self.filelist[0])) + explorer.openExplorer(sliceRun.getExportFilename(self.filelist[0])) def OnCopyToSD(self, e): if profile.getPreference('sdpath') == '': @@ -112,7 +112,7 @@ class sliceProgressPanel(wx.Panel): if cost is not None: status += " Cost: %s" % (cost) self.statusText.SetLabel(status) - if exporer.hasExporer(): + if explorer.hasExplorer(): self.openFileLocationButton = wx.Button(self, -1, "Open file location") self.Bind(wx.EVT_BUTTON, self.OnOpenFileLocation, self.openFileLocationButton) self.sizer.Add(self.openFileLocationButton, 0) diff --git a/Cura/util/explorer.py b/Cura/util/explorer.py index 9bf2cc0b..80b2465d 100644 --- a/Cura/util/explorer.py +++ b/Cura/util/explorer.py @@ -4,7 +4,7 @@ import sys import os import subprocess -def hasExporer(): +def hasExplorer(): if sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'darwin': return True if sys.platform == 'linux2': @@ -14,7 +14,7 @@ def hasExporer(): return True return False -def openExporer(filename): +def openExplorer(filename): if sys.platform == 'win32' or sys.platform == 'cygwin': subprocess.Popen(r'explorer /select,"%s"' % (filename)) if sys.platform == 'darwin': @@ -25,7 +25,7 @@ def openExporer(filename): elif os.path.isfile('/usr/bin/dolphin'): subprocess.Popen(['/usr/bin/dolphin', os.path.split(filename)[0]]) -def openExporerPath(filename): +def openExplorerPath(filename): if sys.platform == 'win32' or sys.platform == 'cygwin': subprocess.Popen(r'explorer "%s"' % (filename)) if sys.platform == 'darwin':