]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Dialog.py
don't really enable the window when its parent is disabled, just remember to do it...
[wxWidgets.git] / wxPython / demo / Dialog.py
index 2ef15a0f492e9604c69ea3863099615734d232d7..4c75b19c5bc7d94680eac1d376cd6d3e1462a6b6 100644 (file)
@@ -5,7 +5,7 @@ import  wx
 # Create and set a help provider.  Normally you would do this in
 # the app's OnInit as it must be done before any SetHelpText calls.
 provider = wx.SimpleHelpProvider()
-wx.HelpProvider_Set(provider)
+wx.HelpProvider.Set(provider)
 
 #---------------------------------------------------------------------------
 
@@ -110,8 +110,8 @@ class TestPanel(wx.Panel):
             useMetal = self.cb.IsChecked()
             
         dlg = TestDialog(self, -1, "Sample Dialog", size=(350, 200),
-                         #style=wxCAPTION | wxSYSTEM_MENU | wxTHICK_FRAME,
-                         style=wx.DEFAULT_DIALOG_STYLE,
+                         #style=wx.CAPTION | wx.SYSTEM_MENU | wx.THICK_FRAME,
+                         style=wx.DEFAULT_DIALOG_STYLE, # & ~wx.CLOSE_BOX,
                          useMetal=useMetal,
                          )
         dlg.CenterOnScreen()