Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/r/s/rst2word-HEAD/src/rst2wordlib/visitor.py   rst2word(Download)
from rst2wordlib.wrapper import Word, Excel
from rst2wordlib.constants import Constants as CST
from rst2wordlib.constants import getConstant as getCST
import os.path, re
 
                style = CST.wdStyleListBullet
            else:
                style = getCST("wdStyleListBullet%d" % self.list_level)
            self.word.setStyle(style)
            self.in_list = True
                style = CST.wdStyleListNumber
            else:
                style = getCST("wdStyleListNumber%d" % self.list_level)
            self.word.setStyle(style)
            self.word.resetListStartNumber()
            level = len(self.sections) - 1 # we do not take the first section as it is dummy
            if level > 9 : level = 9
            self.word.setStyle(getCST("wdStyleHeading%d" % level))
            bookmark_id = ILLEGAL_REX.subn("_", node.astext())[0]
            self.sections[-1].title = self.sections[-1].title + "_" + bookmark_id