mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Add wrapper for wxGenericStaticBitmap
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
# License: wxWindows License
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
import copy
|
||||
|
||||
import etgtools
|
||||
import etgtools.tweaker_tools as tools
|
||||
|
||||
@@ -38,6 +40,16 @@ def run():
|
||||
c.find('Create.label').name = 'bitmap'
|
||||
tools.fixWindowClass(c)
|
||||
|
||||
# Make a copy of wxStaticBitmap so we can generate wrapper code for
|
||||
# wxGenericStaticBitmap too.
|
||||
module.addHeaderCode('#include <wx/generic/statbmpg.h>')
|
||||
gsb = copy.deepcopy(c)
|
||||
assert isinstance(gsb, etgtools.ClassDef)
|
||||
gsb.name = 'wxGenericStaticBitmap'
|
||||
for ctor in gsb.findAll('wxStaticBitmap'):
|
||||
ctor.name = 'wxGenericStaticBitmap'
|
||||
module.addItem(gsb)
|
||||
|
||||
module.addGlobalStr('wxStaticBitmapNameStr', c)
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user