Load the frame icons from a .py file so I don't have to figure out how

to tell distutils to install the .ico in the right place...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-25 03:39:00 +00:00
parent 03d9e55cc9
commit 7a5d2dc7e2
4 changed files with 89 additions and 18 deletions

View File

@@ -1000,8 +1000,10 @@ class Frame(wxFrame):
frame = self
wxFrame.__init__(self, None, -1, '', pos, size)
self.CreateStatusBar()
progpath = os.path.split(__file__)[0]
icon = wxIcon(os.path.join(progpath, 'xrced.ico'), wxBITMAP_TYPE_ICO)
#progpath = os.path.split(__file__)[0]
#icon = wxIcon(os.path.join(progpath, 'xrced.ico'), wxBITMAP_TYPE_ICO)
icon = wxEmptyIcon()
icon.CopyFromBitmap(images.getIconBitmap())
self.SetIcon(icon)
# Idle flag