Rotating a picture
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
Hi, which IDE would you recommend for a python ? -- http://mail.python.org/mailman/listinfo/python-list
static python classes ?
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 ?
> 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 -- http://mail.python.org/mailman/listinfo/python-list
Get a control over a window
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
Re: Get a control over a window
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) return res def listWindowsNames(): return (map(GetWindowText, listWindowsHandles())) def minimizeWindow(): a_hwnd = listWindowsHandles() [listWindowsNames().index(sys.argv[1])] ShowWindow(a_hwnd, SW_MINIMIZE) minimizeWindow() -- http://mail.python.org/mailman/listinfo/python-list
Re: Get a control over a window
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) return res def listWindowsNames(): return (map(GetWindowText, listWindowsHandles())) def minimizeWindow(): a_hwnd = listWindowsHandles() [listWindowsNames().index(sys.argv[1])] ShowWindow(a_hwnd, SW_MINIMIZE) minimizeWindow() -- http://mail.python.org/mailman/listinfo/python-list
Embedding the python interpreter
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
Re: Embedding the python interpreter
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 to run the script as an executable) ? > > Hey, > > This question is asked at least once a week. I'm surprised you > didn't see the threads. [It probably should be int he FAQ, but > isn't.] > > http://www.py2exe.org/http://sourceforge.net/projects/cx-freeze/http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgihttp://cheeseshop.python.org/pypi/py2app/ > > -- > Grant Edwards grante Yow! Could I have a drug > at overdose? >visi.com Thanks a lot ! -- http://mail.python.org/mailman/listinfo/python-list