# p.g.tmb : module documentation

Part of planes.gui

    tmb - planes.gui widgets with top-mid-bottom backgrounds.

    Copyright 2012, 2013 by Florian Berger <fberger@florian-berger.de>

    Module doctests:

    >>> display = planes.Display((500, 350))
    >>> display.image.fill((128, 128, 128))
    <rect(0, 0, 500, 350)>
    >>> ok_box = TMBOkBox("Welcome to a TMBOkBox!")
    >>> ok_box.rect.center = (250, 80)
    >>> display.sub(ok_box)
    >>> def callback(plane):
    ...     raise SystemExit
    >>> option_selector = TMBOptionSelector("o_s",
    ...                                     ["Option 1", "Option 2", "Option 3"],
    ...                                     callback)
    >>> option_selector.rect.center = (250, 240)
    >>> display.sub(option_selector)
    >>> clock = pygame.time.Clock()
    >>> while True:
    ...     events = pygame.event.get()
    ...     display.process(events)
    ...     display.update()
    ...     display.render()
    ...     pygame.display.flip()
    ...     clock.tick(30)
    Traceback (most recent call last):
        ...
    SystemExit

Class | TMBStyle | `This class encapsulates the top, mid and bottom images to be used as widget background.`
Class | TMBContainer | `A planes.gui.Container with fixed width and TMB background.`
Class | TMBOkBox | `A box which displays a message and an LMR OK button over a TMB background. It is destroyed when OK is clicked. The message will be wrapped at newline characters.`
Class | TMBOptionSelector | `A TMBOptionSelector wraps an lmr.LMROptionList and an OK button over a TMB background, calling a callback when a selection is confirmed.`
Class | TMBGetStringDialog | `A combination of TMBContainer, Label, TextBox and Button that asks the user for a string.`
Class | TMBFadingContainer | `A planes.gui.FadingContainer with fixed width and TMB background.`