def __init__(self):
    super(QtGui.QWidget, self).__init__()
    self.setupUi()
    self.updateWidgets()
    notifier = Phonon.BackendCapabilities.notifier()
    notifier.capabilitiesChanged.connect(self.updateWidgets)
    notifier.availableAudioOutputDevicesChanged.connect(self.updateWidgets)
def __init__(self):
    super(QtGui.QWidget, self).__init__()
    self.setupUi()
    self.updateWidgets()
    notifier = Phonon.BackendCapabilities.notifier()
    notifier.capabilitiesChanged.connect(self.updateWidgets)
    notifier.availableAudioOutputDevicesChanged.connect(self.updateWidgets)