Re: Screen capturing on Windows

2006-06-13 Thread jUrner
Rune Strand schrieb: > Is it possible by use of pyWin32 or ctypes to make a screen capture of > an inactive, or a hidden window if the hwnd/WindowName/ClassName is > known? I've seen dedicated screen capture software do this. While > PIL.ImageGrab.grab() is excellent, it will only capture the for

ANN: Eric3-IDE documentation and wiki

2006-05-06 Thread jUrner
Happy to announce that the Eric3 python IDE has found a home for its documentation and wiki! Currently effords are taken to document the user interface of the Eric3-IDE. The documentation and wiki project is hosted at http://ericide.python-hosting.com/ . Everyone interested in Eric is heartly invi

Re: Time to bundle PythonWin

2006-05-12 Thread jUrner
The ctypes.com package is no longer part of ctypes. It has been split by Thomas Heller into a separate package comtypes. See: http://sourceforge.net/projects/comtypes/ Still in its childhood but as easy as com can get, I guess, way easier and better than pythonWin at least. Juergen -- http

Re: ANN: uuid-0.1 Released

2006-04-04 Thread jUrner
I would like to contact Ka-Ping Yee, but got no answer to my emails so far. Maybe s.o. knows how to contact Ka-Ping Yee. BTW persistant storage for clock sequence is not implemented in my module so far. I will consider it for the next release. Any ideas how to implement ? -- http://mail.python.

Re: Partially unpacking a sequence

2006-04-06 Thread jUrner
>> Thank you, everyone, for resolving my question. At one point, while >> trying to solve the problem, I typed >> > y[1,3] >> >> Traceback (most recent call last): >> File "", line 1, in ? >> TypeError: list indices must be integers >> >> The error message gave me no clue as to what I was doin

calculating system clock resolution

2006-04-07 Thread jUrner
Hello all I have the problem of how to calculate the resolution of the system clock. Its now two days of head sratching and still there is nothing more than these few lines on my huge white sheet of paper stiring at me. Lame I know. import time t1 = time.time() while True: t2 = time.time()

Re: how you know you're a programming nerd

2006-04-07 Thread jUrner
Keep on coding. It'll just go away.. -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating system clock resolution

2006-04-07 Thread jUrner
Maybe it was not too clear what I was trying to point out. I have to calculate the time time.time() requires to return the next tick of the clock. Should be about 0.01ms but this may differ from os to os. BTW (I'm new to linux) cat /proc/cpuinfo is nice but I have 2457.60 bogomips. Is this somet

Re: calculating system clock resolution

2006-04-08 Thread jUrner
def calc_time_res(): now = time.time start = now() x = start while start == x: x = now() print x, start # <-- print x - start print calc_time_res() >> 1.50203704834e-05 Something is going wrong here. If you look at the function ,time.time() returns time in microse

Re: calculating system clock resolution

2006-04-08 Thread jUrner
Starts getting confusing... on linux I get print time.time() >> xxx.23 Is it mentioned somewhere that print truncates floats ? Thats new to me. Kinda surprising that is. print '%.30' % time.time() >> xxx.23456678990... I knew it must have been hiding somewhere On windows I'd expect a resolution