Re: the scaling of pics in pygame

2008-04-02 Thread Ramsey Nasser
Isn't PIL best suited for things like this? The resize function should do what you're looking for: http://www.pythonware.com/library/pil/handbook/image.htm On Wed, Apr 2, 2008 at 6:59 AM, [EMAIL PROTECTED] wrote: On Apr 1, 9:44 pm, Jimmy [EMAIL PROTECTED] wrote: Hi, everyone I am

Re: convert pdf to png

2007-12-24 Thread Ramsey Nasser
On Dec 24, 2007 7:53 AM, Carl K [EMAIL PROTECTED] wrote: I need to take the take the pdf output from reportlab and create a preview image for a web page. so png or something. I am sure ghostscript will be involved. I am guessing PIL or ImageMagic ? all sugestions welcome. Carl K --

Re: How to generate pdf file from an html page??

2007-12-16 Thread Ramsey Nasser
On Dec 16, 2007 7:26 PM, Zentrader [EMAIL PROTECTED] wrote: Sorry, I read that backwards. I do it the opposite of you. Anyway a google for html to pdf python turns up a lot of hits. Again, no reason to reinvent the wheel. -- http://mail.python.org/mailman/listinfo/python-list Like

Re: Get()

2007-12-15 Thread Ramsey Nasser
The grid method of these widgets returns None. When you say something like: ent = Entry(root, fg = '#3a3a3a', bg = 'white', relief = 'groove').grid(row = 0, padx = 3, pady = 3) You're actually assigning the value of the last method on the right hand side (in this case, grid) to the variable on

Re: Any way to program custom syntax to python prompt? I want to edit matrices.

2007-12-11 Thread Ramsey Nasser
On 11 Dec 2007 04:14:09 GMT, Stargaming [EMAIL PROTECTED] wrote: On Mon, 10 Dec 2007 16:54:08 -0800, mosi wrote: Python matrices are usually defined with numpy scipy array or similar. e.g. matrix1 = [[1, 2], [3, 4], [5, 6]] I would like to have easier way of defining matrices, for

Re: project - trivia game

2007-12-04 Thread Ramsey Nasser
Shawn, First of all, next time try and isolate the problem yourself and send a short snippet of code demonstrating the behavior you're having trouble with. This makes it easier for other people to understand what is going on and help you in a more focused way. On Dec 5, 2007 2:43 AM, Shawn