mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 21:10:06 +01:00
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:
3
TODO.txt
3
TODO.txt
@@ -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
|
||||
|
||||
@@ -185,6 +185,7 @@ INCLUDES = [ # base and core stuff
|
||||
'mdi',
|
||||
'fontdlg',
|
||||
'rearrangectrl',
|
||||
'minifram',
|
||||
|
||||
# misc
|
||||
'power',
|
||||
|
||||
47
etg/minifram.py
Normal file
47
etg/minifram.py
Normal 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()
|
||||
|
||||
21
unittests/test_minifram.py
Normal file
21
unittests/test_minifram.py
Normal 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()
|
||||
Reference in New Issue
Block a user