code: def create_button(self, widget):
          
          btn = QtGui.QToolButton(self)
          btn.setIconSize(QtCore.QSize(self._iconw, self._iconh))
          self.update_button(btn, widget)
          return btn
docs: Create a button that has the given widget rendered as an icon
  
          :param widget: the widget to render as icon
          :type widget: QtGui.QWidget
          :returns: the created button
          :rtype: QtGui.QAbstractButton
          :raises: None