from font import font
from qt import QFont

class b( font ):
	"""
	&lt;b&gt; makes text bold.
	<p>
	<b>Properties:</b>
	<br>
	See <a href="font.html">&lt;font&gt;</a> for properties.
	"""

	def __init__( self, *args ):
		"""
		Initiate the container, contents, and properties.

		-*args, arguments for the for constructor.
		"""

		apply( font.__init__, (self,) + args )
		self.setWeight( QFont.Bold )

	def getHtml( self ):
		"""
		Get the HTML associated with this object.

		Returns a list of html strings, with each entry being a line
		in a html file.
		"""

		return [ "<b>" ] + font.getHtml( self ) + [ "</b>" ]
