def __init__(self,
                 content=None,
                 width=None,
                 height=None,
                 is_fixed_size=False):
        if is_fixed_size:
            assert width is not None and height is not None
        Wrapper.__init__(self, content)
        ControllerManager.__init__(self)
        self.max_width = width
        self.max_height = height
        self.is_fixed_size = is_fixed_size

        self._hscrollbar = None
        self._vscrollbar = None
        self._content_width = 0
        self._content_height = 0
        self._content_x = 0
        self._content_y = 0

        # We emulate some aspects of Manager here.
        self._theme = None
        self.batch = None
        self.root_group = None
        self.group = {
            'panel': None,
            'background': None,
            'foreground': None,
            'highlight': None
        }
Beispiel #2
0
 def __init__(self, content, path=None, image_name='image',
              is_expandable=False, anchor=ANCHOR_CENTER):
     Wrapper.__init__(self, content, is_expandable=is_expandable, anchor=anchor)
     # private
     self._frame = None
     if path is None:
         self._path = ['frame']
     else:
         self._path = [path]
     self._image_name = image_name
Beispiel #3
0
    def __init__(self, content, path=None, image_name='image',
                 is_expandable=False, anchor=ANCHOR_CENTER):
        Wrapper.__init__(self, content, is_expandable=is_expandable, anchor=anchor)

        # private
        self._frame = None
        if path is None:
            self._path = ['frame']
        else:
            self._path = path
        self._image_name = image_name
Beispiel #4
0
    def __init__(self, content=None, width=None, height=None, is_fixed_size=False):
        if is_fixed_size:
            assert width is not None and height is not None
        Wrapper.__init__(self, content)
        ControllerManager.__init__(self)
        self.max_width = width
        self.max_height = height
        self.is_fixed_size = is_fixed_size

        self._hscrollbar = None
        self._vscrollbar = None
        self._content_width = 0
        self._content_height = 0
        self._content_x = 0
        self._content_y = 0

        # We emulate some aspects of Manager here.
        self._theme = None
        self.batch = None
        self.root_group = None
        self.group = {'panel': None, 'background': None, 'foreground': None, 'highlight': None}