Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Simple tool-tip implementation

Wrap 'display_text' in a <span> and set the 'title'
attribute of the span to 'help_text'.

Note that if 'help_text' isn't set (for example, if it is
None, or an empty string) then 'display_text' is returned
unchanged.

        def makeToolTip(display_text,help_text):
    """Simple tool-tip implementation
    
    Wrap 'display_text' in a  and set the 'title'
    attribute of the span to 'help_text'.

    Note that if 'help_text' isn't set (for example, if it is
    None, or an empty string) then 'display_text' is returned
    unchanged."""
    if not help_text:
        return display_text
    else:
        return ""+\
               str(display_text)+""
        


src/e/d/edna-HEAD/libraries/EDNA2html-0.0.10a/EDNA2html.py   edna(Download)
    indexing_summary.addPara("<span class='selected_spacegroup'>" +
                             "Selected spacegroup: " +
                             Canary.makeToolTip(indexing_results.spacegroup,
                                                help.selected_spacegroup) +
                             "</span> " +
                             "<span class='requested_spacegroup'>(" +
                             "Requested spacegroup: " +
                             Canary.makeToolTip(
            edna_run.diffraction_plan.forced_spacegroup,
    folder.addContent(Canary.Para(
               Canary.makeToolTip(
        "The selected solution (" +
        str(indexing_results.selected_solution_number) +
        ") is highlighted in green",
                "<span>RMS spot deviation: " + \
                Canary.makeToolTip(
                ("%.3f" % integration.rms_spot_deviation) + " [mm]",
                help.rms_spot_deviation) + \
                "</span></div>" + \
 
    doc = Canary.Document("Strategy for image template " +
                          Canary.makeToolTip(completed_edna_run.image_template,
                                             help.image_template))
    doc.addStyle(os.path.join(edna2htmldir, "EDNA2html.css"), Canary.INLINE)

src/e/d/edna-HEAD/libraries/EDNA2html-0.0.10a/Jackdaw.py   edna(Download)
        content += "onclick=\"toggleElements('"+self.openId()+"',"
        content += "'"+self.closedId()+"');\">"
        content += Canary.makeToolTip(self.__close_link_text,
                                      self.__close_link_help_text)
        content += "</a></span>\n"
        content += "onclick=\"toggleElements('"+self.openId()+"',"
        content += "'"+self.closedId()+"');\">"
        content += Canary.makeToolTip(self.__open_link_text,
                                      self.__open_link_help_text)
        content += "</a></span>\n"
    def renderTitle(self):
        """Return the HTML code for the tab title"""
        return Canary.makeToolTip(self.__title,self.__help_text)
 
    def render(self):