Add stockitem for wxGetStockLabel()

This commit is contained in:
Robin Dunn
2016-10-28 14:22:59 -07:00
parent 5268ebbc73
commit e4e8eee165
4 changed files with 68 additions and 0 deletions

View File

@@ -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.",

View File

@@ -228,6 +228,7 @@ INCLUDES = [ # base and core stuff
'preferences',
'modalhook',
'unichar',
'stockitem',
]

44
etg/stockitem.py Normal file
View File

@@ -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()

View File

@@ -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()