Logo Search packages:      
Sourcecode: ipython version File versions  Download package

def IPython::Extensions::astyle::Style::__init__ (   self,
  fg,
  bg,
  attrs = 0 
)

Create a ``Style`` object with ``fg`` as the foreground color,
``bg`` as the background color and ``attrs`` as the attributes.

Examples:
>>> Style(COLOR_RED, COLOR_BLACK)
<Style fg=red bg=black attrs=0>

>>> Style(COLOR_YELLOW, COLOR_BLUE, A_BOLD|A_UNDERLINE)
<Style fg=yellow bg=blue attrs=bold|underline>

Definition at line 58 of file astyle.py.

00058                                        :
        """
        Create a ``Style`` object with ``fg`` as the foreground color,
        ``bg`` as the background color and ``attrs`` as the attributes.

        Examples:
        >>> Style(COLOR_RED, COLOR_BLACK)
        <Style fg=red bg=black attrs=0>

        >>> Style(COLOR_YELLOW, COLOR_BLUE, A_BOLD|A_UNDERLINE)
        <Style fg=yellow bg=blue attrs=bold|underline>
        """
        self.fg = fg
        self.bg = bg
        self.attrs = attrs

    def __call__(self, *args):


Generated by  Doxygen 1.6.0   Back to index