Process the data. This method is called automatically to process
            the data, *after* the dialog is destroyed.

def apply(self):
        ''' Process the data. This method is called automatically to process
            the data, *after* the dialog is destroyed.
        '''
        bus = self.case.buses[int(self.bus_lb.curselection()[0])]

        for attr in [a for a in BUS_ATTRS if a not in self.excluded+['mode']]:
            value = getattr(self.bus_params, attr).get()
            setattr(bus, attr, value)