opening wordpad or notpad from wx.python

Thanks

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, December 05, 2007 6:18 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] opening wordpad or notpad from wx.python

Thippana, Prasoonadevi wrote:

Hi Everybody,

I have a WordPad file. I created a button on my frame. So when I click

the button, is there a way to open the WordPad file and display it.

import os
os.startfile("c:/path/to/file/thedocument.rtf")

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org