projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always draw the selection of selected items, not just when they have
[wxWidgets.git]
/
wxPython
/
demo
/
Main.py
diff --git
a/wxPython/demo/Main.py
b/wxPython/demo/Main.py
index 33d9b9ecdf742564d583ce6cc1216f16f664ff57..12eb24ad90b31d71cf1176bdd9028c22688c6f9f 100644
(file)
--- a/
wxPython/demo/Main.py
+++ b/
wxPython/demo/Main.py
@@
-48,17
+48,32
@@
_treeList = [
# new stuff
('Recent Additions/Updates', [
'AnalogClock',
# new stuff
('Recent Additions/Updates', [
'AnalogClock',
- 'AUI',
+ 'AUI_DockingWindowMgr',
+ 'AUI_Notebook',
'CheckListCtrlMixin',
'CheckListCtrlMixin',
+ 'ComboTreeBox',
'Pickers',
'Pickers',
+ 'PseudoDC',
'RichTextCtrl',
'Treebook',
'Toolbook',
'RichTextCtrl',
'Treebook',
'Toolbook',
+ 'BitmapFromBuffer',
+ 'RawBitmapAccess',
+ 'DragScroller',
+ 'DelayedResult',
+ 'ExpandoTextCtrl',
+ 'ButtonPanel',
+ 'FlatNotebook',
+ 'CustomTreeCtrl',
+ 'AboutBox',
+ 'AnimateCtrl',
+ 'AlphaDrawing',
+ 'GraphicsContext',
]),
# managed windows == things with a (optional) caption you can close
('Frames and Dialogs', [
]),
# managed windows == things with a (optional) caption you can close
('Frames and Dialogs', [
- 'AUI',
+ 'AUI
_DockingWindowMgr
',
'Dialog',
'Frame',
'MDIWindows',
'Dialog',
'Frame',
'MDIWindows',
@@
-68,6
+83,7
@@
_treeList = [
# the common dialogs
('Common Dialogs', [
# the common dialogs
('Common Dialogs', [
+ 'AboutBox',
'ColourDialog',
'DirDialog',
'FileDialog',
'ColourDialog',
'DirDialog',
'FileDialog',
@@
-127,6
+143,7
@@
_treeList = [
]),
('"Book" Controls', [
]),
('"Book" Controls', [
+ 'AUI_Notebook',
'Choicebook',
'Listbook',
'Notebook',
'Choicebook',
'Listbook',
'Notebook',
@@
-136,8
+153,12
@@
_treeList = [
('Custom Controls', [
'AnalogClock',
('Custom Controls', [
'AnalogClock',
+ 'ButtonPanel',
'ColourSelect',
'ColourSelect',
+ 'ComboTreeBox',
+ 'CustomTreeCtrl',
'Editor',
'Editor',
+ 'FlatNotebook',
'GenericButtons',
'GenericDirCtrl',
'LEDNumberCtrl',
'GenericButtons',
'GenericDirCtrl',
'LEDNumberCtrl',
@@
-160,12
+181,12
@@
_treeList = [
'DatePickerCtrl',
'DynamicSashWindow',
'EditableListBox',
'DatePickerCtrl',
'DynamicSashWindow',
'EditableListBox',
+ 'ExpandoTextCtrl',
'FancyText',
'FileBrowseButton',
'FloatBar',
'FloatCanvas',
'FoldPanelBar',
'FancyText',
'FileBrowseButton',
'FloatBar',
'FloatCanvas',
'FoldPanelBar',
- 'GIFAnimationCtrl',
'HtmlWindow',
'HyperLinkCtrl',
'IntCtrl',
'HtmlWindow',
'HyperLinkCtrl',
'IntCtrl',
@@
-206,6
+227,7
@@
_treeList = [
# ditto
('Process and Events', [
# ditto
('Process and Events', [
+ 'DelayedResult',
'EventManager',
'KeyEvents',
'Process',
'EventManager',
'KeyEvents',
'Process',
@@
-224,30
+246,37
@@
_treeList = [
# Images
('Using Images', [
# Images
('Using Images', [
+ 'AlphaDrawing',
+ 'AnimationCtrl',
'ArtProvider',
'ArtProvider',
+ 'BitmapFromBuffer',
'Cursor',
'DragImage',
'Cursor',
'DragImage',
- 'GIFAnimationCtrl',
'Image',
'ImageAlpha',
'ImageFromStream',
'Mask',
'Image',
'ImageAlpha',
'ImageFromStream',
'Mask',
+ 'RawBitmapAccess',
'Throbber',
]),
# Other stuff
('Miscellaneous', [
'Throbber',
]),
# Other stuff
('Miscellaneous', [
+ 'AlphaDrawing',
'ColourDB',
##'DialogUnits', # needs more explanations
'ColourDB',
##'DialogUnits', # needs more explanations
+ 'DragScroller',
'DrawXXXList',
'FileHistory',
'FontEnumerator',
'DrawXXXList',
'FileHistory',
'FontEnumerator',
+ 'GraphicsContext',
'GLCanvas',
'Joystick',
'MimeTypesManager',
'MouseGestures',
'OGL',
'PrintFramework',
'GLCanvas',
'Joystick',
'MimeTypesManager',
'MouseGestures',
'OGL',
'PrintFramework',
+ 'PseudoDC',
'ShapedWindow',
'Sound',
'StandardPaths',
'ShapedWindow',
'Sound',
'StandardPaths',
@@
-462,6
+491,11
@@
try:
if wx.Platform == '__WXMSW__':
self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
'fore:#000000,back:#FFFFFF,face:Courier New,size:9')
if wx.Platform == '__WXMSW__':
self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
'fore:#000000,back:#FFFFFF,face:Courier New,size:9')
+ elif wx.Platform == '__WXMAC__':
+ # TODO: if this looks fine on Linux too, remove the Mac-specific case
+ # and use this whenever OS != MSW.
+ self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
+ 'fore:#000000,back:#FFFFFF,face:Courier')
else:
self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
'fore:#000000,back:#FFFFFF,face:Courier,size:9')
else:
self.StyleSetSpec(stc.STC_STYLE_DEFAULT,
'fore:#000000,back:#FFFFFF,face:Courier,size:9')
@@
-1128,8
+1162,11
@@
class wxPythonDemo(wx.Frame):
icon = images.getWXPdemoIcon()
self.SetIcon(icon)
icon = images.getWXPdemoIcon()
self.SetIcon(icon)
- self.tbicon = DemoTaskBarIcon(self)
-
+ try:
+ self.tbicon = DemoTaskBarIcon(self)
+ except:
+ self.tbicon = None
+
wx.CallAfter(self.ShowTip)
self.otherWin = None
wx.CallAfter(self.ShowTip)
self.otherWin = None
@@
-1612,7
+1649,8
@@
class wxPythonDemo(wx.Frame):
self.demoPage = None
self.codePage = None
self.mainmenu = None
self.demoPage = None
self.codePage = None
self.mainmenu = None
- self.tbicon.Destroy()
+ if self.tbicon is not None:
+ self.tbicon.Destroy()
self.Destroy()
self.Destroy()