Richard Bell wrote: > Tim, > > Did you really mean: > > brush = win32ui.CreateBrush(1, 0, 0) # create a brush (hollow, no color) > > since the win32gui brush will not select into the device context? >
Perhaps the win32gui brush needs to be wrapped or unwrapped in some way. I'll have to check that out. I don't know whether it is a raw handle or a Python-wrapped handle object. In any case, it should produce the same results as what you have, except that you need to remember to delete the one you created. > Which brings me to the real question: > > What's the difference between win32ui and win32gui anyway and what's the > best online reference for them? > As I understand it, win32gui exposes the raw GDI APIs and deals with raw GDI handles as plain integers. win32ui is an attempt to wrap the raw GDI interfaces with Pythonic wrapper objects. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32