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 threading import Thread
import time
......
#!/usr/bin/env python
import cmd, printcore, sys
#help(cmd)
import glob, os, time
if os.name=="nt":
try:
......
......@@ -437,7 +437,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
thread(target=self.skein_monitor).start()
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;)")
if(dlg.ShowModal() == wx.ID_OK):
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