Re: Embedding the python interpreter

2007-08-30 Thread Tom Gur
On Aug 28, 4:03 pm, Grant Edwards [EMAIL PROTECTED] wrote: On 2007-08-28, Tom Gur [EMAIL PROTECTED] wrote: Hey, Do you know an easy way to embed the python interpreter in a python program (so a non-technical user, which has no idea how to install the python interpreter would be able

Embedding the python interpreter

2007-08-28 Thread Tom Gur
Hey, Do you know an easy way to embed the python interpreter in a python program (so a non-technical user, which has no idea how to install the python interpreter would be able to run the script as an executable) ? -- http://mail.python.org/mailman/listinfo/python-list

Rotating a picture

2007-06-19 Thread Tom Gur
Hi, I'm trying to build a small spaceship battle game as an exercise, using pygame. How can I rotate the gif file of my ship by X degrees ? -- http://mail.python.org/mailman/listinfo/python-list

Python IDE

2007-06-19 Thread Tom Gur
Hi, which IDE would you recommend for a python ? -- http://mail.python.org/mailman/listinfo/python-list

static python classes ?

2007-06-19 Thread Tom Gur
Hi, I'm new to python, and I can't seem to find in the docs how to create the python equivalent of what's called in most OOP languages static classes, can you give me a hint ? -- http://mail.python.org/mailman/listinfo/python-list

Re: static python classes ?

2007-06-19 Thread Tom Gur
Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html Example: class C: @staticmethod def f(arg1, arg2, ...): ... Oops, sorry for the confusion - I've actually meant a static method, and Gerald's answer works fine. Thanks alot --

Re: Get a control over a window

2007-05-17 Thread Tom Gur
Thanks guys, especially Duncan ! That's what I'm using now: import sys from win32gui import GetWindowText, EnumWindows, ShowWindow from win32con import SW_MINIMIZE def listWindowsHandles(): res = [] def callback(hwnd, arg): res.append(hwnd) EnumWindows(callback, 0)

Re: Get a control over a window

2007-05-17 Thread Tom Gur
Thanks guys, especially Duncan ! That's what I'm using now: import sys from win32gui import GetWindowText, EnumWindows, ShowWindow from win32con import SW_MINIMIZE def listWindowsHandles(): res = [] def callback(hwnd, arg): res.append(hwnd) EnumWindows(callback, 0)

Get a control over a window

2007-05-15 Thread Tom Gur
Hi, I was wondering how do I get control over a window (Win32). to be more specific, I need to find a handle to a window of a certain program and minimize the window. -- http://mail.python.org/mailman/listinfo/python-list