Python Forum
How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file?
#6
(Jun-19-2018, 02:41 PM)JohnJSal Wrote: Oh, so this is already installed?
Exactly the opposite. Python Standard Library provides core functionality and python-docx is one of the third-party packages on PyPI that extend the core functionality. You need to install it via pip.
Now there are some python distributions that have some external modules pre-installed, but I refer to pure python distribution, available at python.org
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? - by buran - Jun-19-2018, 03:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What does .flush do? How can I change this to write to the file? Pedroski55 3 330 Apr-22-2024, 01:15 PM
Last Post: snippsat
  Last record in file doesn't write to newline gonksoup 3 510 Jan-22-2024, 12:56 PM
Last Post: deanhystad
  Python code for alignment and font size 1418 0 367 Jan-14-2024, 03:56 AM
Last Post: 1418
  write to csv file problem jacksfrustration 11 1,674 Nov-09-2023, 01:56 PM
Last Post: deanhystad
  python Read each xlsx file and write it into csv with pipe delimiter mg24 4 1,630 Nov-09-2023, 10:56 AM
Last Post: mg24
  logging: change log file permission with RotatingFileHandler erg 0 1,126 Aug-09-2023, 01:24 PM
Last Post: erg
  How can I change the uuid name of a file to his original file? MaddoxMB 2 1,007 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Change font in a list or tuple apffal 4 2,760 Jun-16-2023, 02:55 AM
Last Post: schriftartenio
  How do I read and write a binary file in Python? blackears 6 7,364 Jun-06-2023, 06:37 PM
Last Post: rajeshgk
  Converted EXE file size is too large Rajasekaran 0 1,570 Mar-30-2023, 11:50 AM
Last Post: Rajasekaran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020