chiark / gitweb /
Add uppercase STL and HEX to file dialog filters for linux/MacOS
authordaid <daid303@gmail.com>
Tue, 27 Mar 2012 14:21:53 +0000 (16:21 +0200)
committerdaid <daid303@gmail.com>
Tue, 27 Mar 2012 14:21:53 +0000 (16:21 +0200)
Cura/newui/mainWindow.py

index aecb1c5af7c585a3f25aaaef42079891b64f5553..d87c38445a864c0990c6012e6ededde18b7fbb47 100644 (file)
@@ -223,7 +223,7 @@ class mainWindow(configBase.configWindowBase):
 
        def OnCustomFirmware(self, e):
                dlg=wx.FileDialog(self, "Open firmware to upload", self.lastPath, style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
-               dlg.SetWildcard("HEX file (*.hex)|*.hex")
+               dlg.SetWildcard("HEX file (*.hex)|*.hex;*.HEX")
                if dlg.ShowModal() == wx.ID_OK:
                        filename = dlg.GetPath()
                        if not(os.path.exists(filename)):
@@ -237,7 +237,7 @@ class mainWindow(configBase.configWindowBase):
 
        def OnLoadModel(self, e):
                dlg=wx.FileDialog(self, "Open file to print", self.lastPath, style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
-               dlg.SetWildcard("STL files (*.stl)|*.stl")
+               dlg.SetWildcard("STL files (*.stl)|*.stl;*.STL")
                if dlg.ShowModal() == wx.ID_OK:
                        self.filename=dlg.GetPath()
                        profile.putPreference('lastFile', self.filename)