Fixed #211
This commit is contained in:
parent
3d79309a77
commit
13ee51bca2
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ class mainWindow(configBase.configWindowBase):
|
||||||
|
|
||||||
def OnLoadProfileFromGcode(self, e):
|
def OnLoadProfileFromGcode(self, e):
|
||||||
dlg=wx.FileDialog(self, "Select gcode file to load profile from", os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
|
dlg=wx.FileDialog(self, "Select gcode file to load profile from", os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
|
||||||
dlg.SetWildcard("gcode files (*.gcode)|*.gcode")
|
dlg.SetWildcard("gcode files (*.gcode)|*.gcode;*.g")
|
||||||
if dlg.ShowModal() == wx.ID_OK:
|
if dlg.ShowModal() == wx.ID_OK:
|
||||||
gcodeFile = dlg.GetPath()
|
gcodeFile = dlg.GetPath()
|
||||||
f = open(gcodeFile, 'r')
|
f = open(gcodeFile, 'r')
|
||||||
|
|
Loading…
Reference in a new issue