def __init__(self, config, parent=None): """ Create a new configuration widget for the given ``touchpad``. ``config`` is the :class:`~synaptiks.config.TouchpadConfiguration` object displayed by this widget. ``parent`` is the parent :class:`~PyQt4.QtGui.QWidget` (can be ``None``). """ KTabWidget.__init__(self, parent) self.touchpad_config = config pages = [HardwarePage(self.touchpad, self), MotionPage(self), ScrollingPage(self.touchpad, self), TappingPage(self.touchpad, self)] for page in pages: self.addTab(page, page.windowTitle()) self.setWindowTitle( i18nc('@title:window', 'Touchpad configuration')) self._setup(self.touchpad_config)