

def __init__(self, pygsurf, region=None, fgcolor=None, bgcolor=None, text='', wrap=True, border='basic', caption='', margin=0, marginleft=None, marginright=None, margintop=None, marginbottom=None, shadow=None, shadowamount=51):
    self.pygsurf = pygsurf
    (self.x, self.y, self.width, self.height) = pygsurf.getregion(region, False)
    self.fgcolor = (((fgcolor is None) and pygsurf.fgcolor) or getpygamecolor(fgcolor))
    self.bgcolor = (((bgcolor is None) and pygsurf.bgcolor) or getpygamecolor(bgcolor))
    self.text = text
    self.wrap = wrap
    self.border = border
    self.caption = caption
    self.margintop = margin
    self.marginbottom = margin
    self.marginleft = margin
    self.marginright = margin
    if (margintop is not None):
        self.margintop = margintop
    if (marginbottom is not None):
        self.marginbottom = marginbottom
    if (marginright is not None):
        self.marginright = marginright
    if (marginleft is not None):
        self.marginleft = marginleft
    self.shadow = shadow
    self.shadowamount = shadowamount
    self.shadowxoffset = 1
    self.shadowyoffset = 1

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseTextbox.__init__/original