<reponame>fuqinshen/Python--<filename>src/prototype/Main.py
from MessageBox import MessageBox
from UnderlinePen import UnderlinePen
from prototype.framework.Manager import Manager

if __name__ == '__main__':
    manager = Manager()
    upen = UnderlinePen("~")
    mbox = MessageBox('*')
    sbox = MessageBox('/')
    manager.register("strong message", upen)
    manager.register("warning box", mbox)
    manager.register("slash box", sbox)

    p1 = manager.create("strong message")
    p1.use("Hello, world.")
    p2 = manager.create("warning box")
    p2.use("Hello, world.")
    p3 = manager.create("slash box")
    p3.use("Hello, world.")

from MessageBox import MessageBox
from UnderlinePen import UnderlinePen
from prototype.framework.Manager import Manager

if __name__ == '__main__':
    manager = Manager()
    upen = UnderlinePen("~")
    mbox = MessageBox('*')
    sbox = MessageBox('/')
    manager.register("strong message", upen)
    manager.register("warning box", mbox)
    manager.register("slash box", sbox)

    p1 = manager.create("strong message")
    p1.use("Hello, world.")
    p2 = manager.create("warning box")
    p2.use("Hello, world.")
    p3 = manager.create("slash box")
    p3.use("Hello, world.")