Images can now be embedded in Python source files.
Added tools to do the embedding. Added Constructors/methods where needed. Updated the demo to use mostly embedded images. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -16,6 +16,8 @@ from   wxPython.wx import *
 | 
			
		||||
from   wxPython.lib.splashscreen import SplashScreen
 | 
			
		||||
from   wxPython.html import wxHtmlWindow
 | 
			
		||||
 | 
			
		||||
import images
 | 
			
		||||
 | 
			
		||||
#---------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -75,10 +77,10 @@ class wxPythonDemo(wxFrame):
 | 
			
		||||
        self.cwd = os.getcwd()
 | 
			
		||||
        self.curOverview = ""
 | 
			
		||||
 | 
			
		||||
        if wxPlatform == '__WXMSW__':
 | 
			
		||||
            icon = wxIcon('bitmaps/mondrian.ico', wxBITMAP_TYPE_ICO)
 | 
			
		||||
            self.SetIcon(icon)
 | 
			
		||||
        icon = wxIconFromXPMData(images.getMondrianData())
 | 
			
		||||
        self.SetIcon(icon)
 | 
			
		||||
 | 
			
		||||
        if wxPlatform == '__WXMSW__':
 | 
			
		||||
            # setup a taskbar icon, and catch some events from it
 | 
			
		||||
            self.tbicon = wxTaskBarIcon()
 | 
			
		||||
            self.tbicon.SetIcon(icon, "wxPython Demo")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user