示例#1
0
文件: dfb.py 项目: clones/kaa
    def __init__(self, size):
        self._dfb = EvasDirectFB(size)
        super(DirectFBCanvas, self).__init__()

        self["size"] = size

        self._wrap(self._dfb.get_evas())
示例#2
0
文件: dfb.py 项目: clones/kaa
class DirectFBCanvas(Canvas):

    def __init__(self, size):
        self._dfb = EvasDirectFB(size)
        super(DirectFBCanvas, self).__init__()

        self["size"] = size

        self._wrap(self._dfb.get_evas())

    def _render(self):
        regions = self._o.render()
        if regions:
            self.signals["updated"].emit(regions)
        return regions