Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/p/y/python-pptx-0.4.2/pptx/text.py   python-pptx(Download)
from .enum.text import MSO_ANCHOR, PP_ALIGN
from .opc.constants import RELATIONSHIP_TYPE as RT
from .oxml.shared import Element, get_or_add
from .oxml.ns import _nsmap, qn
from .shapes import Subshape
        """
        anchor = MSO_ANCHOR.to_xml(value)
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')
        bodyPr.set('anchor', anchor)
 
        """
        value_map = {'square': True, 'none': False, None: None}
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')
        value = bodyPr.get('wrap')
        return value_map[value]
 
    @word_wrap.setter
    def word_wrap(self, value):
        value_map = {True: 'square', False: 'none'}
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')

src/p/y/python-pptx-HEAD/pptx/text.py   python-pptx(Download)
from .enum.text import MSO_ANCHOR, PP_ALIGN
from .opc.constants import RELATIONSHIP_TYPE as RT
from .oxml.shared import Element, get_or_add
from .oxml.ns import _nsmap, qn
from .shapes import Subshape
        """
        anchor = MSO_ANCHOR.to_xml(value)
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')
        bodyPr.set('anchor', anchor)
 
        """
        value_map = {'square': True, 'none': False, None: None}
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')
        value = bodyPr.get('wrap')
        return value_map[value]
 
    @word_wrap.setter
    def word_wrap(self, value):
        value_map = {True: 'square', False: 'none'}
        bodyPr = get_or_add(self._txBody, 'a:bodyPr')