def toggle_icontext(self, state):
        """Toggle icon text"""
        self.sig_option_changed.emit('show_icontext', state)
        for widget in self.action_widgets:
            if widget is not self.button_menu:
                if state:
                    widget.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
                else:
                    widget.setToolButtonStyle(Qt.ToolButtonIconOnly)
def toggle_icontext ( self , state ) : self . sig_option_changed . emit ( 'show_icontext' , state ) for widget in self . action_widgets : if widget is not self . button_menu : if state : widget . setToolButtonStyle ( Qt . ToolButtonTextBesideIcon ) else : widget . setToolButtonStyle ( Qt . ToolButtonIconOnly )
Toggle icon text