Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

query

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


babith_cj at yahoo

Jun 2, 2003, 11:56 AM

Post #1 of 6 (752 views)
Permalink
query

Im working on python script in an organisation.
I've to generate html reports and take print outs..
pagination is a problem for that.Can anyone tell me a
solution for generating printer freindly reports ?
regards
Babith

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com


just at xs4all

Jun 2, 2003, 12:12 PM

Post #2 of 6 (693 views)
Permalink
query [In reply to]

In article <mailman.1054580224.13116.python-list [at] python>,
"Babith C.J" <babith_cj [at] yahoo> wrote:

> Im working on python script in an organisation.
> I've to generate html reports and take print outs..
> pagination is a problem for that.Can anyone tell me a
> solution for generating printer freindly reports ?

Have a look at reportlab, www.reportlab.com. It doesn't deal with HTML
(AFAIK), but is excellent for printer-friendly reports (it outputs PDF).

Just


larry.bates at websafe

Dec 21, 2006, 11:42 AM

Post #3 of 6 (690 views)
Permalink
Re: query [In reply to]

libintr [at] gmail wrote:
> can anyone help me on indentation in python and tell me some nice text
> editors used for a beginner in python?
>
You MUST tell us what platform you run on for us to make a
recommendation. Remember Python runs on Windows, Linux, Mac, ...
On Windows my current favorite is PyScripter available at:

http://mmm-experts.com/Products.aspx?ProductId=4

Another good choice is Eclipse with Python plug-in but
it is a very large application. If you do Java and other
development as well as Python that might be an excellent
choice.

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


fredrik at pythonware

Dec 21, 2006, 12:35 PM

Post #4 of 6 (706 views)
Permalink
Re: query [In reply to]

libintr [at] gmail wrote:

> can anyone help me on indentation in python and tell me some nice text
> editors used for a beginner in python?

http://effbot.org/pyfaq/tutor-whats-the-best-editor-ide-for-python

</F>

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


cjw at sympatico

Dec 22, 2006, 6:45 AM

Post #5 of 6 (694 views)
Permalink
Re: query [In reply to]

Fredrik Lundh wrote:
> libintr [at] gmail wrote:
>
>> can anyone help me on indentation in python and tell me some nice text
>> editors used for a beginner in python?
>
> http://effbot.org/pyfaq/tutor-whats-the-best-editor-ide-for-python
>
> </F>
>
In Windows, I like PyScripter.

Colin W.

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


nksmith06 at cs

Oct 9, 2007, 8:28 AM

Post #6 of 6 (686 views)
Permalink
Re: Query [In reply to]

> I want to make a binary file , which would execute on it's own.

First do
$ which python
to get the location of your python binary. The default, i think, is just
/usr/bin/python.

Then add this line to the top of your file:
#!/usr/bin/python (or whatever the `which` command returned)

then finally do this command:
$ chmod +x <file>.py

This makes <file> executable ( that's what the x stands for ).

now run it with:
$ ./<file>.py

you can also trim the .py from the file and it will work just the same.

To have your script work like installed binaries, put it in a folder in your
PATH variable. For example, if you added the path /home/<you>/bin/ to your
path variable ( PATH=$PATH:/home/<you>/bin/ ) Bash would search that
directory when you typed in a command to execute. What this means is if you
rename your <file>.py to just <file> and stick it in /home/<you>/bin/ you
could just do

$ <file>

at any time to run your program.

hope my verbosity is helpful.

--
-Nate

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.