Re: Warning with code generation
Dietmar Schwertberger <[email protected]> Mon, 7 Nov 2022 20:31:29 +0100
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
Hi Igor!
I did not implement this for C++ as I could not test it.
Could you please copy the related code from
edit_sizers/py_sizers_codegen.py to cpp_sizers_codegen.py, test the
generated code and submit a PR?
These are the fragments that need to be added to ccp_sizers_codegen.py:
class PythonStdDialogButtonSizerBuilder(BasePythonSizerBuilder):
tmpl = '%(sizer_name)s = %(klass)s()\n'
def initialize():
...
cn['EditStdDialogButtonSizer'] = 'wxStdDialogButtonSizer'
...
awh('wxStdDialogButtonSizer', PythonStdDialogButtonSizerBuilder())
The generated code will use this instead of supplying the stock buttons
as flags:
tmpl_sizeritem_button = '%s->AddButton(%s)\n'
Regards,
Dietmar
_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general