]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/Parameters.py
   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', 
  47     'PyStatusLineNameStr', 
  58 ## Create classes, then instances, like this: 
  60 ## class BOTH(Param): pass 
  63 for _param 
in _params
: 
  64     exec 'class %s(_Param): pass' % _param
 
  65     exec '%s = %s()' % (_param
, _param
)