diff options
author | greenarrow <greenarrow> | 2008-10-15 22:06:39 +0000 |
---|---|---|
committer | greenarrow <greenarrow@cb376a5e-1013-0410-a455-b6b1f9ac8223> | 2008-10-15 22:06:39 +0000 |
commit | b5cd17b0e357bfc29655501455b6d83ab2128111 (patch) | |
tree | 29e4f000b0ccfc69a86e64373d82170f263332f9 | |
parent | be9064f8059e3f2fe80ed1cecf12c6fe58a444c8 (diff) | |
download | reprap-b5cd17b0e357bfc29655501455b6d83ab2128111.tar.gz reprap-b5cd17b0e357bfc29655501455b6d83ab2128111.zip |
pyRepRap: Added docs, split replath
git-svn-id: https://reprap.svn.sourceforge.net/svnroot/reprap@2118 cb376a5e-1013-0410-a455-b6b1f9ac8223
-rwxr-xr-x | trunk/users/stef/pyRepRap/scripts/wxreprapcontrol | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/trunk/users/stef/pyRepRap/scripts/wxreprapcontrol b/trunk/users/stef/pyRepRap/scripts/wxreprapcontrol new file mode 100755 index 00000000..fbee91c3 --- /dev/null +++ b/trunk/users/stef/pyRepRap/scripts/wxreprapcontrol @@ -0,0 +1,24 @@ +#!/usr/bin/env 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() |