Getting an image from a file on windows

2015-05-28 Thread IronManMark20
/IronManMark20/a83fe7ff7ea9b40c09af I need to initialize a *void pointer for the third argument for SHGetImageList (ref https://msdn.microsoft.com/en-us/library/bb762185). What should the initialization look like (please give me example code, not just Oh it should be a ctypes.c_void_p). Thanks!!! -- https

Re: Getting an image from a file on windows

2015-05-28 Thread IronManMark20
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote: On 2015-05-29 01:03, IronManMark20 wrote: Hello, I have been working on a function that gets a bitmap of the thumbnail for a file. I have had problems getting a large image (256x256) and I was wondering if someone could help me

Re: Getting an image from a file on windows

2015-05-28 Thread IronManMark20
On Thursday, May 28, 2015 at 5:37:07 PM UTC-7, MRAB wrote: On 2015-05-29 01:03, IronManMark20 wrote: Hello, I have been working on a function that gets a bitmap of the thumbnail for a file. I have had problems getting a large image (256x256) and I was wondering if someone could help me

Re: OpenCV with Python (cv or cv2)

2015-05-26 Thread IronManMark20
On Tuesday, May 26, 2015 at 6:52:00 AM UTC-7, Markos wrote: Hi, I want to use OpenCV with Python. I installed version 2.4.9 (http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/) in debian Squeeze running Python 2.6.6. Using the tutorial:

Re: Best GUI for Python

2015-04-26 Thread IronManMark20
But just curious: what is the reason you use five different kinds of GUI? It seems like it makes think difficult for you. I mean the question as enlightenment for myself. A good question :). Most of this comes from the openness to create binding for many projects. Tkinter is a binding of

Hooked, a pure Python Windows Hotkey module

2015-04-20 Thread IronManMark20
of hotkeys to be registered. * It is pure Python, which means you can go and edit things easily. * It supports all versions of Windows since 2000. * It _only_ uses the standard library. No need for pywin32. Hooked is licensed under the GPL v2. The source is here:https://github.com/IronManMark20

ctypes: using .value or .value() doesn't work for c_long

2015-04-15 Thread IronManMark20
I am using ctypes to call a few windll funcions. One of them returns a c_long object. I want to know what number the function returns. Problem is, when I try foo.value , it gives me this: AttributeError: LP_c_long object has no attribute value. Any idea of what could cause this? --