[Tkinter-discuss] How to open a Microsoft Word file from Tkinter?

Guilherme Polo ggpolo at gmail.com
Fri Jul 17 16:13:07 CEST 2009


On Fri, Jul 17, 2009 at 9:15 AM, The Helmbolds<helmrp at yahoo.com> wrote:
> I managed to open a plain *.txt file in Microsoft Notepad from TkInter by
> using Python's "spawnv" command in its "os" module.
>
> That does not seem to work for opening a *.txt or a *.doc file in Microsoft
> Word.
>
> How do I open a *.doc file in Microsoft Word from TkInter? Or is this so
> complicated it's not worth it?
>

What happens if you try os.system('start myfile.doc') ?

This is not related to Tkinter, so, if you want to extend the initial
question and include communication with ms word or anything related, I
would suggest to post this to an appropriate list.

Regards,



-- 
-- Guilherme H. Polo Goncalves


More information about the Tkinter-discuss mailing list