def hide_button_menu_indicator(button):
 name = button.__class__.__name__
 stylesheet = u'\n        %(name)s::menu-indicator {\n            image: none;\n        }\n    '
 if (name == u'QPushButton'):
  stylesheet += u'\n            %(name)s {\n                border-style: none;\n            }\n        '
 button.setStyleSheet((stylesheet % dict(name=name)))

def hide_button_menu_indicator ( button ) : name = button . __class__ . __name__ stylesheet = u'\n        %(name)s::menu-indicator {\n            image: none;\n        }\n    ' if ( name == u'QPushButton' ) : stylesheet += u'\n            %(name)s {\n                border-style: none;\n            }\n        ' button . setStyleSheet ( ( stylesheet % dict ( name = name ) ) )
hide the menu indicator icon on buttons .