Exemple #1
0
def _newLineStyleRegistry():
    """
    Creates a new style registry for laying out one of the quasimode's
    text lines.
    """
    
    styles = xmltextlayout.StyleRegistry()
    styles.add( 
        "document",
        font_family = "Gentium",
        font_style = "normal",
        max_lines = "1",
        )
    styles.add(
        "line",
        text_align = "left",
        color = WHITE,
        margin_top = "0pt",
        margin_bottom = "0pt",
        )
    styles.add(
        "help",
        font_style = "italic",
        color = "#999999",
        )
    styles.add( "ins" )
    styles.add( "alt" )
    return styles
Exemple #2
0
        if self.__animating:
            self.__evtManager.removeResponder( self.animationTick )
            self.__animating = False
        self.hide()
        self.__msg = None

        self.__msgManager.onPrimaryMessageFinished()


# ----------------------------------------------------------------------------
# Xml Layout
# ----------------------------------------------------------------------------

# The master style registry for primary messages.
_styles = xmltextlayout.StyleRegistry()

_styles.add(
    "document",
    margin_top = "0.0pt",
    margin_bottom = "0.0pt",
    font_family = "Gentium",
    font_style = "normal",
    max_lines = "0",
    ellipsify = "false",
    text_align = "left",
    )

_styles.add(
    "p",
    color = "#ffffff",