예제 #1
0
    def createContentView(self):
        superClipView = ObjCInstance(send_super(__class__, self,
                                                'contentView'))
        if not isinstance(superClipView, RefreshableClipView):
            # create new clipview
            documentView = superClipView.documentView
            clipView = RefreshableClipView.alloc().initWithFrame(
                superClipView.frame)

            clipView.documentView = documentView
            clipView.copiesOnScroll = False
            clipView.drawsBackground = False

            self.setContentView(clipView)
            superClipView = ObjCInstance(
                send_super(__class__, self, 'contentView'))

        return superClipView
예제 #2
0
파일: cells.py 프로젝트: yconst/toga
 def init(self):
     self = ObjCInstance(send_super(__class__, self, 'init'))
     return self.setup()
예제 #3
0
파일: cells.py 프로젝트: yconst/toga
 def initWithFrame_(self, frame: CGRect):
     self = ObjCInstance(send_super(__class__, self, 'initWithFrame:', frame))
     return self.setup()