コード例 #1
0
ファイル: refresh.py プロジェクト: praveen-manohar/toga
    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()