Pronterface: remember dir across opened files
parent
b513383d04
commit
7a8819e448
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/env python
|
||||
from serial import Serial
|
||||
from threading import Thread
|
||||
import time
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/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()
|
||||
|
|
Loading…
Reference in New Issue