title: Python-docx set the text direction RTL
body: <p>I am trying to create a docunent with RTL (Right-To-Left) text direction </p>
  
  <pre><code>def printExam():
  
    #get the exam questions 
  
    rows = db(db.exam_questions.exam == request.vars.exam).select()
  
    # create the documnet
    document = Document()
    document.add_heading(u"أختبار", 0)
  
    #for row in rows:
    row = rows[0] 
    run = document.add_paragraph().add_run(str(row.question.questionText).decode( "utf-8" ))
    font = run.font
    font.rtl = True
  </code></pre>
  
  <p>I got the following exception:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\web2py-src\gluon\restricted.py", line 227, in restricted
      exec ccode in environment
    File "C:/Users/web2py-src/applications/draft/controllers/question.py", line 96, in &lt;module&gt;
    File "C:\Users\web2py-src\gluon\globals.py", line 417, in &lt;lambda&gt;
      self._caller = lambda f: f()
    File "C:/Users/web2py-src/applications/draft/controllers/question.py", line 68, in printExam
      font.rtl = True
  AttributeError: 'Font' object attribute 'rtl' is read-only
  </code></pre>