Example #1
0
 def __init__(self):
     self.dmx=dmx512.dmx()
     self.drawingarea = gtk.DrawingArea()
     self.color = self.drawingarea.get_colormap().alloc_color(0, 255, 0)
     self.colorseldlg = gtk.ColorSelectionDialog("Select Lamp Color")
     colorsel = self.colorseldlg.colorsel
     colorsel.set_previous_color(self.color)
     colorsel.set_current_color(self.color)
     colorsel.set_has_palette(True)
     colorsel.set_has_opacity_control(True)
     colorsel.connect("color_changed", self.update_dmx_signal)        
     colorsel.connect("delete_event", self.bye)
     self.colorseldlg.run()
     self.bye()
Example #2
0
	def __init__(self, universe=0):
		self.dmx=dmx512.dmx()