summaryrefslogtreecommitdiff
path: root/trunk/users/stef/pyRepRap/scripts/wxreprapcontrol
blob: fbee91c3f7130d777ec99985a95bb345092c17bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()