'This is used to add a new tab for the device config. The new tab will always be added
as immediately before the "Extra Customization" tab.'

def addDeviceTab(self, tab, label):

    extra_tab_pos = self.indexOf(self.extra_tab)
    self.insertTab(extra_tab_pos, tab, label)
