mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
* move wxPen to etg/pen.py
* move wxBrush to etg/brush.py * move wxBookCtrlBase and wxBookCtrlEvent to etg/bookctrl.py * move wxBitmapButton to etg/bmpbuttn.py * move wxArrayString MappedType and add wxArrayInt plus some unittests * add checking for default values for pos and size parameters in fixWindowClass * set out parameter flags for wxImageHistogram.FindFirstUnusedColour * Restore layout constraints classes and related methods * Create a MappedType for wxClientData * update used of wxClientData in wx.CommandEvent * Move wxControlWithItems, wxItemContainer and wxControlWithItems to etg/ctrlsub.py * enable some Append, Insert and Set overloads in wxControlWithItems * addGetterSetterProps: don't make setter-only properties * addGetterSetterProps: ensure that the getter can be called with zero args * addGetterSetterProps: ensure that the setter can be called with just 1 arg * restore version checking code * moved DC classes to other etg files to match interface file names. * allow both overloads for wx.DC.GetTextExtent and GetMultiLineTextExtent by renaming 1 * add wx.DC.GetPartialTextExtents * and some other stuff git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
50
etg/bmpbuttn.py
Normal file
50
etg/bmpbuttn.py
Normal file
@@ -0,0 +1,50 @@
|
||||
#---------------------------------------------------------------------------
|
||||
# Name: etg/bmpbuttn.py
|
||||
# Author: Robin Dunn
|
||||
#
|
||||
# Created: 31-Aug-2011
|
||||
# Copyright: (c) 2011 by Total Control Software
|
||||
# License: wxWindows License
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
|
||||
PACKAGE = "wx"
|
||||
MODULE = "_core"
|
||||
NAME = "bmpbuttn" # Base name of the file to generate to for this script
|
||||
DOCSTRING = ""
|
||||
|
||||
# The classes and/or the basename of the Doxygen XML files to be processed by
|
||||
# this script.
|
||||
ITEMS = [ 'wxBitmapButton' ]
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def run():
|
||||
# Parse the XML file(s) building a collection of Extractor objects
|
||||
module = etgtools.ModuleDef(PACKAGE, MODULE, NAME, DOCSTRING)
|
||||
etgtools.parseDoxyXML(module, ITEMS)
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
# Tweak the parsed meta objects in the module object as needed for
|
||||
# customizing the generated code and docstrings.
|
||||
|
||||
c = module.find('wxBitmapButton')
|
||||
c.find('wxBitmapButton.bitmap').default = 'wxNullBitmap'
|
||||
c.find('Create.bitmap').default = 'wxNullBitmap'
|
||||
|
||||
tools.fixWindowClass(c)
|
||||
tools.removeVirtuals(c)
|
||||
tools.addWindowVirtuals(c)
|
||||
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
tools.doCommonTweaks(module)
|
||||
tools.runGenerators(module)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
if __name__ == '__main__':
|
||||
run()
|
||||
|
||||
Reference in New Issue
Block a user