Source code for enamlnative.widgets.view_switcher
"""
Copyright (c) 2017, CodeLV.
Distributed under the terms of the MIT License.
The full license is in the file LICENSE, distributed with this software.
Created on May 20, 2017
@author: jrm
"""
from atom.api import (
Typed, ForwardTyped, observe
)
from enaml.core.declarative import d_
from .view_animator import ViewAnimator, ProxyViewAnimator
[docs]class ProxyViewSwitcher(ProxyViewAnimator):
""" The abstract definition of a proxy ViewSwitcher object.
"""
#: A reference to the declaration.
declaration = ForwardTyped(lambda: ViewSwitcher)
[docs]class ViewSwitcher(ViewAnimator):
""" A simple control for a ViewSwitcher.
"""
#: A reference to the ProxyViewSwitcher object.
proxy = Typed(ProxyViewSwitcher)