def toSerial(self): self.filename = self.imInput.get() if self.paths == []: self.paths = im2g.imToPaths(self.filename) im2g.toSerial(self.paths)
def toText(self): self.filename = self.imInput.get() if self.paths == []: self.paths = im2g.imToPaths(self.filename) outfile = self.filename.rsplit(".", 1)[0] + ".gcode" im2g.toTextFile(outfile, self.paths)
def plot(self): self.filename = self.imInput.get() if self.paths == []: self.paths = im2g.imToPaths(self.filename) self.turtleDraw()