self.device.matrix = self.leds2matrix()
def on_btn_recibir_clicked(self, widget, *args):
- self.device.matrix = self.leds2matrix()
+ matrix = self.device.matrix
+ for row in xrange(16):
+ for col in xrange(16):
+ self.tabla[row,col].prendido = matrix[row,col]
+ etherled.protocol._print_matrix(matrix)
def on_main_window_delete_event(self, widget, event, *args):
self.quit()
etherled.protocol._print_matrix(matrix)
return matrix
- def matrix2leds(self, matrix):
- for row in xrange(16):
- for col in xrange(16):
- self.tabla[row,col].prendido = matrix[row,col]
- etherled.protocol._print_matrix(matrix)
- return matrix
-
def main():
gtk.threads_init()
main_window = MainWindow()