diff --git a/docs/sphinx/itemToModuleMap.json b/docs/sphinx/itemToModuleMap.json index 189a8c75..2d8b0f4f 100644 --- a/docs/sphinx/itemToModuleMap.json +++ b/docs/sphinx/itemToModuleMap.json @@ -1249,6 +1249,7 @@ "GetSingleChoice":"wx.", "GetSingleChoiceData":"wx.", "GetSingleChoiceIndex":"wx.", +"GetStockLabel":"wx.", "GetTextFromUser":"wx.", "GetTextFromUserPromptStr":"wx.", "GetTopLevelParent":"wx.", @@ -5303,6 +5304,11 @@ "STC_YAML_OPERATOR":"wx.stc.", "STC_YAML_REFERENCE":"wx.stc.", "STC_YAML_TEXT":"wx.stc.", +"STOCK_FOR_BUTTON":"wx.", +"STOCK_NOFLAGS":"wx.", +"STOCK_WITHOUT_ELLIPSIS":"wx.", +"STOCK_WITH_ACCELERATOR":"wx.", +"STOCK_WITH_MNEMONIC":"wx.", "STREAM_EOF":"wx.", "STREAM_NO_ERROR":"wx.", "STREAM_READ_ERROR":"wx.", @@ -5491,6 +5497,7 @@ "StatusBarPane":"wx.", "StdDialogButtonSizer":"wx.", "StockCursor":"wx.", +"StockLabelQueryFlag":"wx.", "StockPreferencesPage":"wx.", "StopWatch":"wx.", "StreamBase":"wx.", diff --git a/etg/_core.py b/etg/_core.py index 00845fff..db6c6f14 100644 --- a/etg/_core.py +++ b/etg/_core.py @@ -228,6 +228,7 @@ INCLUDES = [ # base and core stuff 'preferences', 'modalhook', 'unichar', + 'stockitem', ] diff --git a/etg/stockitem.py b/etg/stockitem.py new file mode 100644 index 00000000..c66bee80 --- /dev/null +++ b/etg/stockitem.py @@ -0,0 +1,44 @@ +#--------------------------------------------------------------------------- +# Name: etg/stockitem.py +# Author: Robin Dunn +# +# Created: 28-Oct-2016 +# Copyright: (c) 2016 by Total Control Software +# License: wxWindows License +#--------------------------------------------------------------------------- + +import etgtools +import etgtools.tweaker_tools as tools + +PACKAGE = "wx" +MODULE = "_core" +NAME = "stockitem" # 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 = [ 'stockitem_8h.xml', + ] + +#--------------------------------------------------------------------------- + +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. + + + + #----------------------------------------------------------------- + tools.doCommonTweaks(module) + tools.runGenerators(module) + + +#--------------------------------------------------------------------------- +if __name__ == '__main__': + run() + diff --git a/unittests/test_stockitem.py b/unittests/test_stockitem.py new file mode 100644 index 00000000..751eb41a --- /dev/null +++ b/unittests/test_stockitem.py @@ -0,0 +1,16 @@ +import unittest +from unittests import wtc +import wx + +#--------------------------------------------------------------------------- + +class stockitem_Tests(wtc.WidgetTestCase): + + # TODO: Remove this test and add real ones. + def test_stockitem1(self): + self.fail("Unit tests for stockitem not implemented yet.") + +#--------------------------------------------------------------------------- + +if __name__ == '__main__': + unittest.main()