Example #1
0
    def move_cuthead(self, hpgl):
        dev = Device(self.read_dev_settings())
        if self.gui['cmb_plotlang'].get_active() == 0:
            hpgl = hpgl
        else:
            hpgl = self.plot.toDMPL(hpgl,
                                    self.gui['cmb_plotlang'].get_active())
#		message = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
#		message.set_markup('Data to plotter:' + hpgl  )
#		message.run()
#		message.destroy()
        dev.plot(None, hpgl)
Example #2
0
 def on_test_connection_clicked(self, widget):
     #		message = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK)
     #		message.set_markup('Widget: ' + self.gui['device1'] )
     #		message.run()
     #		message.destroy()
     self.set_device_combo(self.gui['device1'])
     dev = Device(self.read_dev_settings())
     hpgl = "IN;PU0,0;PD0,2000;PD2000,2000;PD2000,0;PD0,0;PU0,0;IN;"
     self.move_cuthead(hpgl)
Example #3
0
	def on_send_clicked(self,button):
		dev = Device(self.read_dev_settings())

		if os.name == 'nt':
			dev.plot("c:\\temp\\plot.hpgl")
		else:
			dev.plot(os.path.join(appPath,'tmp','plot.hpgl'))
Example #4
0
 def on_send_clicked(self, button):
     dev = Device(self.read_dev_settings())
     dev.plot(os.path.join(appPath, 'tmp', 'plot.hpgl'), None)
Example #5
0
 def on_test_connection_clicked(self,widget):
     dev = Device(self.read_dev_settings())
     dev.plot(os.path.join(appPath,'tests','test.hpgl'))
Example #6
0
 def on_send_clicked(self,button):
     dev = Device(self.read_dev_settings())
     dev.plot(os.path.join(appPath,'tmp','plot.hpgl'))
Example #7
0
 def on_test_connection_clicked(self, widget):
     dev = Device(self.read_dev_settings())
     dev.plot(os.path.join(appPath, 'tests', 'test.hpgl'))