# get Tkinter
from Tkinter import *
from LEDSetting import *

class SmallLEDSquareFunc:
    
    setting = [] # an array to hold LEDSettingDraw     
    
    def __init__(self, led):#, master):
        self.led = led
        self.name = led.getName()
        self.dutyCycle = led.getDutyCycle()
        #self.master = master
        
    def doNothing2(self):
        print "HEY WE'RE AT THE FOLLOWING POSITION!!!", self.name

    def ledSettingBox(self, master):
        # only make a new LED settings pane if we don't already have one
        if (len(self.setting) == 0):
            self.sett = LEDSettingDraw(master, self.led).retSettingFrame()
            self.sett.grid() # add setting pane to grid (GUI)
            self.setting.append(self.sett) # add setting pane to the array (for housekeeping)
        
    def ledSettingBoxRem(self):
        self.sett.destroy()
        # remove the setting pane from the array so we may make another later
        self.setting.pop() 
        
    def setName(self, naming):
        self.name = naming
        
    def setDutyCycle(self, setting):
        self.dutyCycle = setting

        
