Ejemplo n.º 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
Ejemplo n.º 2
0
Archivo: cells.py Proyecto: yconst/toga
 def init(self):
     self = ObjCInstance(send_super(__class__, self, 'init'))
     return self.setup()
Ejemplo n.º 3
0
Archivo: cells.py Proyecto: yconst/toga
 def initWithFrame_(self, frame: CGRect):
     self = ObjCInstance(send_super(__class__, self, 'initWithFrame:', frame))
     return self.setup()