cyclone-pcb-factory/Software/PythonScripts/Replath/pyRepRap/build/scripts-2.7/wxreprapcontrol

25 lines
666 B
Plaintext
Raw Normal View History

2013-09-26 06:42:44 +07:00
#!/usr/bin/python
import wx, reprap, reprap.controlpanels
if __name__ == "__main__":
# TODO put try here with message if failes
reprap.openSerial( 0, 19200, 60 )
reprap.cartesian.x.active = True
reprap.cartesian.y.active = True
reprap.cartesian.z.active = True
reprap.extruder.active = True
reprap.cartesian.x.setNotify()
reprap.cartesian.y.setNotify()
reprap.cartesian.z.setNotify()
reprap.cartesian.setPower(70)
reprap.cartesian.setSpeed(220)
app = wx.PySimpleApp(0)
wx.InitAllImageHandlers()
frame_main = reprap.controlpanels.MainControlFrame(None, -1, "")
app.SetTopWindow(frame_main)
frame_main.Show()
app.MainLoop()
reprap.closeSerial()