Use a MessagePanel instead of a MessageDialog for samples that may not
be runnable in certain conditions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -196,12 +196,10 @@ def runTest(frame, nb, log):
 | 
			
		||||
        win = TestPanel(nb, log)
 | 
			
		||||
        return win
 | 
			
		||||
    else:
 | 
			
		||||
        dlg = wx.MessageDialog(
 | 
			
		||||
                frame, 'wx.PopupWindow is not available on this platform.',
 | 
			
		||||
                'Sorry', wx.OK | wx.ICON_INFORMATION
 | 
			
		||||
                )
 | 
			
		||||
        dlg.ShowModal()
 | 
			
		||||
        dlg.Destroy()
 | 
			
		||||
        from Main import MessagePanel
 | 
			
		||||
        win = MessagePanel(nb, 'wx.PopupWindow is not available on this platform.',
 | 
			
		||||
                           'Sorry', wx.ICON_WARNING)
 | 
			
		||||
        return win
 | 
			
		||||
 | 
			
		||||
#---------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user