]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/lib/PyCrust/wxd/Parameters.py
2bc3c79592f70ad987f6db413cea3b9a03eda93b
1 """Decorator classes for documentation and shell scripting.
4 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__
= "$Revision$"[11:-2]
9 # These are not the real wxPython classes. These are Python versions
10 # for documentation purposes. They are also used to apply docstrings
11 # to the real wxPython classes, which are SWIG-generated wrappers for
16 """Used by this module to represent default wxPython parameter values,
17 including parameter representations like style=wx.HSCROLL|wx.VSCROLL."""
19 def __init__(self
, value
=None):
21 value
= 'wx.' + self
.__class
__.__name
__
27 def __or__(self
, other
):
28 value
= '%s|%s' % (self
, other
)
29 return self
.__class
__(value
)
33 'DEFAULT_FRAME_STYLE',
46 'PyStatusLineNameStr',
57 ## Create classes, then instances, like this:
59 ## class BOTH(Param): pass
62 for _param
in _params
:
63 exec 'class %s(_Param): pass' % _param
64 exec '%s = %s()' % (_param
, _param
)