parameters: (self, component)
return_statement: return max((text_width * 15) + 0.1, 0.1 * nr)
docstring: Get the horizontal width of a component.
docstring_summary: Get the horizontal width of a component.
docstring_tokens: Get the horizontal width of a component .
function: def get_component_width(self, component):
  		"""
  		Get the horizontal width of a component.
  		"""
  
  		# width of text
  		text_width = text.text(0, 0, r"\bf %s" % component, self.textattrs).width.x
  
  		# number of arrows
  		nr = len(component.events.subscribe) + len(component.events.publish)
  
  		# Add actions if desired
  		if self.options.actions:
  			nr = nr + len(component.actions)
  
  		return max((text_width * 15) + 0.1, 0.1 * nr)
function_tokens: def get_component_width ( self , component ) : # width of text text_width = text . text ( 0 , 0 , r"\bf %s" % component , self . textattrs ) . width . x # number of arrows nr = len ( component . events . subscribe ) + len ( component . events . publish ) # Add actions if desired if self . options . actions : nr = nr + len ( component . actions ) return max ( ( text_width * 15 ) + 0.1 , 0.1 * nr )