# Path: mGui/gui.py
# def _collect_mappings():
# def wrap(control, replace_events=False):
# def derive(control):
# 
# Path: mGui/forms.py
# def physical_controls(widget):
#     def __init__(self, key=None, **kwargs):
#     def _fill(self, ctrl, *sides, **kwargs):
#     def top(self, ctrl, margin=None):
#     def left(self, ctrl, margin=None):
#     def right(self, ctrl, margin=None):
#     def bottom(self, ctrl, margin=None):
#     def fill(self, ctrl, margin=None):
#     def snap(self, ctrl1, ctrl2, edge, space=None):
#     def form_attachments(self, *sides):
#     def form_series(self, side):
#     def percentage_series(self, side):
#     def equal_series(self, side):
#     def dock(self, ctrl, top=None, left=None, right=None, bottom=None):
#     def detach(self, *controls):
#     def __init__(self, key=None):
#     def __enter__(self):
#     def __exit__(self, typ, value, tb):
#     def fake_create(*args, **kwargs):
#     def forget(self, *args, **kwargs):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
# class Form(FormLayout):
# class LayoutDialogForm(Form):
# class FillForm(Form):
# class VerticalForm(Form):
# class HorizontalForm(Form):
# class VerticalExpandForm(Form):
# class HorizontalExpandForm(Form):
# class HorizontalStretchForm(Form):
# class VerticalStretchForm(Form):
# class VerticalThreePane(Form):
# class HorizontalThreePane(Form):
# class FooterForm(VerticalForm):
# class HeaderForm(VerticalForm):
# class NavForm(HorizontalForm):


import maya.cmds as cmds
from mGui import gui, forms
        with forms.FillForm(width=320, margin=(12, 12)) as main:
            for label, command in COMMANDS:
                gui.Button(label="Expands to fill form").command += command

    window.show()


def example_FooterForm(*args, **kwargs):
    """
    Warning: If you give this layout less than one child there will be an error.
    Example:
    import mGui.examples.formExamples as formExamples
    formExamples.example_FooterForm()
    """
    with gui.Window(title="FooterForm") as window:
        with forms.FooterForm(width=320, margin=(12, 12)) as main:
            gui.ScrollField(text="expandable top section")
            gui.Button(label='footer')
    window.show()


def example_HeaderForm(*args, **kwargs):
    """
    Warning: If you give this layout less than one child there will be an error.
    Example:
    import mGui.examples.formExamples as formExamples
    formExamples.example_HeaderForm()
    """
    with gui.Window(title="HeaderForm") as window:
        with forms.HeaderForm(width=320, margin=(12, 12)) as main:

# Path: mGui/gui.py
# def _collect_mappings():
# def wrap(control, replace_events=False):
# def derive(control):
# 
# Path: mGui/forms.py
# def physical_controls(widget):
#     def __init__(self, key=None, **kwargs):
#     def _fill(self, ctrl, *sides, **kwargs):
#     def top(self, ctrl, margin=None):
#     def left(self, ctrl, margin=None):
#     def right(self, ctrl, margin=None):
#     def bottom(self, ctrl, margin=None):
#     def fill(self, ctrl, margin=None):
#     def snap(self, ctrl1, ctrl2, edge, space=None):
#     def form_attachments(self, *sides):
#     def form_series(self, side):
#     def percentage_series(self, side):
#     def equal_series(self, side):
#     def dock(self, ctrl, top=None, left=None, right=None, bottom=None):
#     def detach(self, *controls):
#     def __init__(self, key=None):
#     def __enter__(self):
#     def __exit__(self, typ, value, tb):
#     def fake_create(*args, **kwargs):
#     def forget(self, *args, **kwargs):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
#     def layout(self):
# class Form(FormLayout):
# class LayoutDialogForm(Form):
# class FillForm(Form):
# class VerticalForm(Form):
# class HorizontalForm(Form):
# class VerticalExpandForm(Form):
# class HorizontalExpandForm(Form):
# class HorizontalStretchForm(Form):
# class VerticalStretchForm(Form):
# class VerticalThreePane(Form):
# class HorizontalThreePane(Form):
# class FooterForm(VerticalForm):
# class HeaderForm(VerticalForm):
# class NavForm(HorizontalForm):


# Path: mGui/examples/formExamples.py
import maya.cmds as cmds
from mGui import gui, forms

        with forms.FillForm(width=320, margin=(12, 12)) as main:
            for label, command in COMMANDS:
                gui.Button(label="Expands to fill form").command += command

    window.show()


def example_FooterForm(*args, **kwargs):
    """
    Warning: If you give this layout less than one child there will be an error.
    Example:
    import mGui.examples.formExamples as formExamples
    formExamples.example_FooterForm()
    """
    with gui.Window(title="FooterForm") as window:
        with forms.FooterForm(width=320, margin=(12, 12)) as main:
            gui.ScrollField(text="expandable top section")
            gui.Button(label='footer')
    window.show()


def example_HeaderForm(*args, **kwargs):
    """
    Warning: If you give this layout less than one child there will be an error.
    Example:
    import mGui.examples.formExamples as formExamples
    formExamples.example_HeaderForm()
    """
    with gui.Window(title="HeaderForm") as window:
        with forms.HeaderForm(width=320, margin=(12, 12)) as main:

            gui.Button(label='header')