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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/e/d/editxt-HEAD/editxt/controls/linenumberview.py   editxt(Download)
                lines = self.estimate_line_count(font)
                return int((len(str(lines)) + 3) * charwidth)
        return self.ruleThickness()
 
    def requiredThickness(self):
    def invalidateRuleThickness(self):
        thickness = self.calculate_thickness()
        # TODO do not call setNeedsDisplayInRect_ if the (exact) number of lines did not change
        self.setNeedsDisplayInRect_(self.frame())
        if thickness > self.ruleThickness():