chiark / gitweb /
Fixed class/method name typo 'exporer'
authorsmorloc <smorloc@gmail.com>
Tue, 22 Jan 2013 19:24:34 +0000 (14:24 -0500)
committersmorloc <smorloc@gmail.com>
Tue, 22 Jan 2013 19:24:34 +0000 (14:24 -0500)
Cura/gui/pluginPanel.py
Cura/gui/projectPlanner.py
Cura/gui/sliceProgressPanel.py
Cura/util/explorer.py

index ebeddb91f039a3da01dfb4a4766ac63c3288ebec..e816de8c37194180512f2cea7928754ce0226ebe 100644 (file)
@@ -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])
index 4ce44aa4df25672c65b1e0ee07dd279b53afbb29..9ac08b0fe40986ed0e8ecd0d5a06b9f7af2e7eea 100644 (file)
@@ -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)
index c1a992c5f30c021dec42f326581e78d8f34486ef..91cea9ac3253fdda40a507ef9b934d98152fad40 100644 (file)
@@ -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)
index 9bf2cc0bce9cea7a93fc416a4aa62f1ced6ae7f4..80b2465d97d13d76a7a34e4f0d661fe371df5884 100644 (file)
@@ -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':