Thanks to Robin and Vadim, I was able to come up with a solution to setting both the large and small icons in wxPython. You'll need to store them in separate files, and you'll need both win32api from the win32 extensions and the windll library (because LoadImage doesn't appear to be exposed in the win32 extensions, so I had to get at it through windll). windll is available as part of DynWin by Sam Rushing at:
http://www.nightmare.com/~rushing/dynwin/
···
##########
from wxPython.wx import *
class MyApp(wxApp):
def OnInit(self):
frame = wxFrame(NULL, -1, "My Frame", wxDefaultPosition, wxSize(350, 200))
import windll, win32api
user32 = windll.module('user32')
hIcon = user32.LoadImage(0, windll.cstring(r'myicon.ico'), 1, 0, 0, 16)
win32api.SendMessage(frame.GetHandle(), 128, 1, hIcon)
hIcon = user32.LoadImage(0, windll.cstring(r'myiconsmall.ico'), 1, 0, 0, 16)
win32api.SendMessage(frame.GetHandle(), 128, 0, hIcon)
frame.Show(TRUE)
return TRUE
app = MyApp(0)
app.MainLoop()
##########
--
- Geoff Talvola
Parlance Corporation
gtalvola@NameConnector.com
_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users