X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..3d8a2fd724f6a36d6597aad39a2e99317b11d157:/wxPython/demo/Main.py?ds=sidebyside diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 0eeda26ad1..ba79bc8e44 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -30,19 +30,9 @@ import images _treeList = [ # new stuff - ('Recent Additions', [ - 'VListBox', - 'Listbook', - 'MaskedNumCtrl', + ('Recent Additions/Updates', [ + 'OGL', 'FloatCanvas', - 'XmlResourceSubclass', - 'GridBagSizer', - 'Cursor', - 'PyPlot', - 'ImageAlpha', - 'ActiveX_FlashWindow', - 'ActiveX_IEHtmlWindow', - 'ActiveX_PDFWindow', ]), # managed windows == things with a (optional) caption you can close @@ -261,7 +251,7 @@ class MyTP(wx.PyTipProvider): # try: - ##raise ImportError + ##raise ImportError # for testing the alternate implementation from wx import stc from StyledTextCtrl_2 import PythonSTC class DemoCodeViewer(PythonSTC): @@ -445,8 +435,11 @@ class wxPythonDemo(wx.Frame): if wx.Platform != '__WXMAC__': # setup a taskbar icon, and catch some events from it + dim = 16 # (may want to use 22 on wxGTK...) icon = wx.IconFromBitmap( - images.getMondrianImage().Scale(16,16).ConvertToBitmap() ) + images.getMondrianImage().Scale(dim,dim).ConvertToBitmap() ) + #icon = wx.Icon('bmp_source/mondrian.ico', wx.BITMAP_TYPE_ICO) + #icon = images.getMondrianIcon() self.tbicon = wx.TaskBarIcon() self.tbicon.SetIcon(icon, "wxPython Demo") self.tbicon.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.OnTaskBarActivate) @@ -921,14 +914,12 @@ class MyApp(wx.App): the main frame when it is time to do so. """ - wx.InitAllImageHandlers() - # Normally when using a SplashScreen you would create it, show # it and then continue on with the applicaiton's # initialization, finally creating and showing the main # application window(s). In this case we have nothing else to # do so we'll delay showing the main frame until later (see - # OnClose above) so the users can see the SplashScrren effect. + # OnClose above) so the users can see the SplashScreen effect. splash = MySplashScreen() splash.Show() @@ -955,13 +946,12 @@ def main(): overview = """

wxPython

-

wxPython is a GUI toolkit for the Python programming language. It -allows Python programmers to create programs with a robust, highly -functional graphical user interface, simply and easily. It is -implemented as a Python extension module (native code) that wraps the -popular wxWindows cross -platform GUI library, which is written in C++. +

wxPython is a GUI toolkit for the Python programming +language. It allows Python programmers to create programs with a +robust, highly functional graphical user interface, simply and easily. +It is implemented as a Python extension module (native code) that +wraps the popular wxWindows cross platform GUI library, which is +written in C++.

Like Python and wxWindows, wxPython is Open Source which means that it is free for anyone to use and the source code is