Re: os.mkdir simple help

2006-02-20 Thread XBello
I'm new to python too, but I've read that sys.stdin.readline() is
preferred. Is that right?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: can't find a way to display and print pdf through python.

2007-02-13 Thread XBello
On Feb 12, 4:56 pm, Larry Bates <[EMAIL PROTECTED]> wrote:
> krishnakant Mane wrote:
> > hello all,
> > I am stuck with a strange requirement.
> > I need a library that can help me display a pdf file as a report and
> > also want a way to print the same pdf file in a platform independent
> > way.
> > if that's not possible then I at least need the code for useing some
> > library for connecting to acrobat reader and giving the print command
> > on windows and some thing similar on ubuntu linux.
> > the problem is that I want to display reports in my application.  the
> > user should be able to view the formatted report on screen and at his
> > choice click the print button on the screen to send it to the printer.
> > I have reportlab installed and that is sufficient to generate pdf reports.
> > but I still can't fine the way to display it directly and print it
> > directly.
> > Please help me.
> > Krishnakant.
>
> Just let the registered .PDF viewer do it for you.
>
> os.start('myfile.pdf')
>
> Launches whatever is registered as .PDF viewer and user
> can then print, save, zoom, etc. on their own.
>
> -Larry


os.startfile('pathToTheFile') should work. Under Library Reference- >
os -> Process Management

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can Python installation be as clean as PHP?

2006-05-10 Thread XBello
It's possible to work with php just with these single file? Maybe I'm
doing the wrong thing, because to start to program I needed to install
a web server too (a large bunch of files). Also I've been looking into
http://www.modpython.org/, which appears to be a modular kind of python
with less than 400kb.

Thanks,
Xabier.

-- 
http://mail.python.org/mailman/listinfo/python-list