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

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

src/e/d/editxt-HEAD/editxt/controls/statscrollview.py   editxt(Download)
    def initWithFrame_(self, frame):
        super(StatusbarScrollView, self).initWithFrame_(frame)
        rect = fn.NSMakeRect(0, 0, 0, ak.NSScroller.scrollerWidth())
        self.status_view = StatusView.alloc().initWithFrame_(rect)
        try:
            return
 
        scrollw = ak.NSScroller.scrollerWidth()
        rect = self.bounds()
        # (status+hscroll) | (content+vscroll)
            y = -1
        width = max(width, 50)
        height = ak.NSScroller.scrollerWidth() + 1
        line_rect = fn.NSMakeRect(x, y, rwidth, height)
        col_rect = fn.NSMakeRect(x + rwidth - 1, y, width, height)