473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Loading an exe icon into a pixmap/bitmap

I've been searching for a way to load an icon from an executable into
something that I can eventually display either through pygame or
pygtk. I've tried the stuff found at
http://groups.google.com/group/comp....f38c1ced504e43
but the tests just output all black (not surprising, as that guy
couldn't get it to work either). I've mucked around with taht code and
the ExtractIcon stuff from pywin32, but still am stuck. I've seen some
reference to a wxpython ways to do it, but I'm trying to not have to
convert over to that. Any help is appreciated. Thanks
Dec 12 '07 #1
2 1402
Are you looking for these kinds of tools?
In Debian:
icoutils - Extract MS Windows icons and cursors

I don't recall where I saw this:
FileJuicer - Extract images from Powerpoint, PDF, HTML, and CAB files
ob*****@gmail.com wrote:
I've been searching for a way to load an icon from an executable into
something that I can eventually display either through pygame or
pygtk. I've tried the stuff found at
http://groups.google.com/group/comp....f38c1ced504e43
but the tests just output all black (not surprising, as that guy
couldn't get it to work either). I've mucked around with taht code and
the ExtractIcon stuff from pywin32, but still am stuck. I've seen some
reference to a wxpython ways to do it, but I'm trying to not have to
convert over to that. Any help is appreciated. Thanks

--
Shane Geiger
IT Director
National Council on Economic Education
sg*****@ncee.net | 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

Dec 12 '07 #2
On Dec 12, 12:09 am, ob.l...@gmail.com wrote:
I've been searching for a way to load an icon from an executable into
something that I can eventually display either through pygame or
pygtk. I've tried the stuff found athttp://groups.google.com/group/comp.lang.python/browse_thread/thread/...
but the tests just output all black (not surprising, as that guy
couldn't get it to work either). I've mucked around with taht code and
the ExtractIcon stuff from pywin32, but still am stuck. I've seen some
reference to a wxpython ways to do it, but I'm trying to not have to
convert over to that. Any help is appreciated. Thanks
wxPython uses an included tool called img2py. The source looks pretty
straight-forward. You may be able to modify it or re-create it using
your GUI toolkit of choice.

If you install wxPython, you'll find it (approx.) here:

C:\Python24\Lib\site-packages\wx-2.8-msw-unicode\wx\tools

Mike
Dec 12 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Wilhelm Kutting | last post by:
Hi i want to use the following layout: ----------------- | | | | Text line 1 | | | Text line 2 | image.jpg | | ... | | | | | |
5
by: yxq | last post by:
Hello The icons with the alpha channel are supported in WindowsXP. If use the System.Drawing.Bitmap.ToBitmap on the icon handle(ico.ToBitmap), the alpha channel won't be preserved, resulting in an...
11
by: Juan Romero | last post by:
Hey guys, I have an ImageList control that stores my icons. What I need to do is find out if the icon at hand already exists in the ImageList so I dont enter it twice. How can I do that? ...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.