Pronterface: remember dir across opened files

master
kliment 2011-06-09 16:43:03 +02:00
parent b513383d04
commit 7a8819e448
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python
from serial import Serial
from threading import Thread
import time

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python
import cmd, printcore, sys
#help(cmd)
import glob, os, time
if os.name=="nt":
try:

View File

@ -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()