X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84bc0d49e411fd74ddac8b13318fc2edfba9258a..ffe3c9ed98c5e9c6960491e9ca4fce29ac5110fe:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 856b88c575..ba1b091059 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -71,6 +71,8 @@ _treeList = [ 'GraphicsContext', 'CollapsiblePane', 'ComboCtrl', + 'OwnerDrawnComboBox', + 'BitmapComboBox', ]), # managed windows == things with a (optional) caption you can close @@ -114,7 +116,6 @@ _treeList = [ 'CheckListBox', 'Choice', 'ComboBox', - 'ComboCtrl', 'Gauge', 'Grid', 'Grid_MegaExample', @@ -176,7 +177,7 @@ _treeList = [ 'ActiveX_FlashWindow', 'ActiveX_IEHtmlWindow', 'ActiveX_PDFWindow', - #'RightTextCtrl', deprecated as we have wxTE_RIGHT now. + 'BitmapComboBox', 'Calendar', 'CalendarCtrl', 'CheckListCtrlMixin', @@ -200,6 +201,7 @@ _treeList = [ 'MaskedNumCtrl', 'MediaCtrl', 'MultiSplitterWindow', + 'OwnerDrawnComboBox', 'Pickers', 'PyCrust', 'PyPlot', @@ -1303,6 +1305,8 @@ class wxPythonDemo(wx.Frame): # Set up a log window self.log = wx.TextCtrl(splitter2, -1, style = wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL) + if wx.Platform == "__WXMAC__": + self.log.MacCheckSpelling(False) # Set the wxWindows log target to be this textctrl #wx.Log_SetActiveTarget(wx.LogTextCtrl(self.log)) @@ -1367,7 +1371,7 @@ class wxPythonDemo(wx.Frame): filter = self.filter.GetValue() for category, items in _treeList: if filter: - items = [item for item in items if filter in item.lower()] + items = [item for item in items if filter.lower() in item.lower()] if items: child = self.tree.AppendItem(self.root, category) if not firstChild: firstChild = child @@ -1768,8 +1772,9 @@ class MySplashScreen(wx.SplashScreen): if self.fc.IsRunning(): self.Raise() +import wx.lib.mixins.inspect -class MyApp(wx.App): +class MyApp(wx.App, wx.lib.mixins.inspect.InspectionMixin): def OnInit(self): """ Create and show the splash screen. It will then create and show @@ -1790,6 +1795,9 @@ class MyApp(wx.App): splash = MySplashScreen() splash.Show() + # Setup the InspectionMixin + self.Init() + return True