Commit 7a8819e4 authored by kliment's avatar kliment

Pronterface: remember dir across opened files

parent b513383d
#!/usr/bin/python #!/usr/bin/env python
from serial import Serial from serial import Serial
from threading import Thread from threading import Thread
import time import time
......
#!/usr/bin/env python
import cmd, printcore, sys import cmd, printcore, sys
#help(cmd)
import glob, os, time import glob, os, time
if os.name=="nt": if os.name=="nt":
try: try:
......
...@@ -437,7 +437,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -437,7 +437,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
thread(target=self.skein_monitor).start() thread(target=self.skein_monitor).start()
def loadfile(self,event): def loadfile(self,event):
dlg=wx.FileDialog(self,"Open file to print") dlg=wx.FileDialog(self,"Open file to print",style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST|wx.FD_CHANGE_DIR)
dlg.SetWildcard("STL and GCODE files (;*.gcode;*.g;*.stl;)") dlg.SetWildcard("STL and GCODE files (;*.gcode;*.g;*.stl;)")
if(dlg.ShowModal() == wx.ID_OK): if(dlg.ShowModal() == wx.ID_OK):
name=dlg.GetPath() name=dlg.GetPath()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment