git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			18 lines
		
	
	
		
			360 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			360 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import sys, os
 | |
| import wx
 | |
| 
 | |
| class MyApp(wx.App):
 | |
|     def OnInit(self):
 | |
|         f = wx.Frame(None, title="Hello World")
 | |
|         f.Show()
 | |
|         return True
 | |
|     
 | |
|     def MacOpenFile(self, filename):
 | |
|         # code to load filename goes here.
 | |
|         wx.MessageBox(
 | |
|             "You requested to open this file:\n\"%s\"" % filename)
 | |
| 
 | |
| app = MyApp()
 | |
| app.MainLoop()
 | |
| 
 |