mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 22:24:56 +08:00
Updated the C++ code for wx.gizmos.TreeListCtrl from the wxCode
project. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -16,14 +16,9 @@ class TestPanel(wx.Panel):
|
||||
wx.TR_DEFAULT_STYLE
|
||||
#wx.TR_TWIST_BUTTONS
|
||||
#| wx.TR_ROW_LINES
|
||||
#| wx.TR_COLUMN_LINES
|
||||
#| wx.TR_NO_LINES
|
||||
| wx.TR_FULL_ROW_HIGHLIGHT
|
||||
|
||||
# By default the style will be adjusted on
|
||||
# Mac to use twisty buttons and no lines. If
|
||||
# you would rather control this yourself then
|
||||
# add this style.
|
||||
#| wx.TR_DONT_ADJUST_MAC
|
||||
)
|
||||
|
||||
isz = (16,16)
|
||||
|
||||
@@ -196,7 +196,7 @@ wx.BitmapFromBufferRGBA factory functions. They enable loading of an
|
||||
image or bitmap directly from a Python object that implements the
|
||||
buffer interface, such as strings, arrays, etc.
|
||||
|
||||
Added wx.App.DisplayAvailable() which can be used to determine if a
|
||||
Added wx.App.IsDisplayAvailable() which can be used to determine if a
|
||||
GUI can be created in the current environment. (Still need an
|
||||
implementation for wxMSW...)
|
||||
|
||||
@@ -232,7 +232,22 @@ restrictions in how/where the toolbar can be used.
|
||||
|
||||
Added wx.Window.IsVisible.
|
||||
|
||||
Added Python properties for many of the getter/setter methods of wx
|
||||
classes. In order for the names to be predicatble for somebody
|
||||
already familiar with wxPython the property names are simply the name
|
||||
of the getter with the "Get" dropped. For example, wx.Window has a
|
||||
property named "Size" that maps to GetSize and SetSize. So far there
|
||||
is only one known name conflict using this naming convention, and that
|
||||
is wx.KeyEvent.KeyCode, however since KeyCode was formerly a
|
||||
compatibility alias for GetKeyCode (and has been for a long time) it
|
||||
was decided to just switch it to a property. If you want to use the
|
||||
method then change your calls to event.KeyCode() to
|
||||
event.GetKeyCode(), otherwise you can use it as a property just by
|
||||
dropping the parentheses.
|
||||
|
||||
Updated the C++ code for wx.gizmos.TreeListCtrl from the wxCode
|
||||
project. This has resulted in some minor API changes, most of which
|
||||
were handled in the wrapper code.
|
||||
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -684,7 +684,8 @@ if BUILD_GIZMOS:
|
||||
location = 'contrib/gizmos'
|
||||
|
||||
swig_sources = run_swig(['gizmos.i'], location, GENDIR, PKGDIR,
|
||||
USE_SWIG, swig_force, swig_args, swig_deps)
|
||||
USE_SWIG, swig_force, swig_args, swig_deps +
|
||||
[ '%s/_treelist.i' % location])
|
||||
|
||||
ext = Extension('_gizmos',
|
||||
[ '%s/treelistctrl.cpp' % opj(location, 'wxCode/src') ] + swig_sources,
|
||||
|
||||
Reference in New Issue
Block a user