printrun-src/printrun/pronterface.py

changeset 42
ea4c43494a19
parent 36
f4730ef55ca8
child 43
f7e9bd735ce1
equal deleted inserted replaced
41:08d027d2a532 42:ea4c43494a19
1484 self.slice(name) 1484 self.slice(name)
1485 elif name.lower().endswith(".png") or name.lower().endswith(".jpg") or name.lower().endswith(".gif"): 1485 elif name.lower().endswith(".png") or name.lower().endswith(".jpg") or name.lower().endswith(".gif"):
1486 # Generate GCODE from IMAGE 1486 # Generate GCODE from IMAGE
1487 lc = laser.Lasercutter(pronterwindow = self) 1487 lc = laser.Lasercutter(pronterwindow = self)
1488 lc.image2gcode(name) 1488 lc.image2gcode(name)
1489 wx.CallAfter(self.endcb_lasercut)
1489 elif name.lower().endswith(".svg"): 1490 elif name.lower().endswith(".svg"):
1490 # Generate GCODE from SVG 1491 # Generate GCODE from SVG
1491 lc = laser.Lasercutter(pronterwindow = self) 1492 lc = laser.Lasercutter(pronterwindow = self)
1492 lc.svg2gcode(name) 1493 lc.svg2gcode(name)
1494 wx.CallAfter(self.endcb_lasercut)
1493 elif name.lower().endswith(".hpgl") or name.lower().endswith(".plt"): 1495 elif name.lower().endswith(".hpgl") or name.lower().endswith(".plt"):
1494 # Generate GCODE from HPGL 1496 # Generate GCODE from HPGL
1495 lc = laser.Lasercutter(pronterwindow = self) 1497 lc = laser.Lasercutter(pronterwindow = self)
1496 lc.hpgl2gcode(name) 1498 lc.hpgl2gcode(name)
1499 wx.CallAfter(self.endcb_lasercut)
1497 else: 1500 else:
1498 self.load_gcode_async(name) 1501 self.load_gcode_async(name)
1499 else: 1502 else:
1500 dlg.Destroy() 1503 dlg.Destroy()
1501 1504

mercurial