Add wx.MiniFrame

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-06-30 21:00:54 +00:00
parent aacea1b672
commit 1009fcf166
4 changed files with 70 additions and 2 deletions

View File

@@ -126,14 +126,13 @@ other dev stuff
* filehistory
* fswatcher
* headerctrl
* minifram
* mousemanager
* msgout
* palette ?
* persist ?
* quantize
* rawbmp
* richmsgdlg
* richmsgdlg (requires wrappers for wxGenericMessageDialog)
* textdlg
* valgen
* valnum

View File

@@ -185,6 +185,7 @@ INCLUDES = [ # base and core stuff
'mdi',
'fontdlg',
'rearrangectrl',
'minifram',
# misc
'power',

47
etg/minifram.py Normal file
View File

@@ -0,0 +1,47 @@
#---------------------------------------------------------------------------
# Name: etg/minifram.py
# Author: Robin Dunn
#
# Created: 28-Jun-2012
# Copyright: (c) 2012 by Total Control Software
# License: wxWindows License
#---------------------------------------------------------------------------
import etgtools
import etgtools.tweaker_tools as tools
PACKAGE = "wx"
MODULE = "_core"
NAME = "minifram" # 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 = [ "wxMiniFrame",
]
#---------------------------------------------------------------------------
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('wxMiniFrame')
assert isinstance(c, etgtools.ClassDef)
tools.fixTopLevelWindowClass(c)
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)
#---------------------------------------------------------------------------
if __name__ == '__main__':
run()

View File

@@ -0,0 +1,21 @@
import imp_unittest, unittest
import wtc
import wx
#---------------------------------------------------------------------------
class minifram_Tests(wtc.WidgetTestCase):
def test_minifram1(self):
f = wx.MiniFrame()
f.Create(self.frame, title="Hello")
f.Show()
def test_minifram2(self):
f = wx.MiniFrame(self.frame, title="Hello")
f.Show()
#---------------------------------------------------------------------------
if __name__ == '__main__':
unittest.main()