home *** CD-ROM | disk | FTP | other *** search
/ com!online 2005 April / com_0405_1.iso / opensource / BTpp-0.5.4-bin.exe / $INSTDIR / BT++.exe / wxPython / help.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-04-19  |  11.3 KB  |  231 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. import helpc
  5. from windows import *
  6. from misc import *
  7. from gdi import *
  8. from fonts import *
  9. from clip_dnd import *
  10. from controls import *
  11. from events import *
  12.  
  13. def EVT_HELP(win, id, func):
  14.     win.Connect(id, -1, wxEVT_HELP, func)
  15.  
  16.  
  17. def EVT_HELP_RANGE(win, id, id2, func):
  18.     win.Connect(id, id2, wxEVT_HELP, func)
  19.  
  20.  
  21. def EVT_DETAILED_HELP(win, id, func):
  22.     win.Connect(id, -1, wxEVT_DETAILED_HELP, func)
  23.  
  24.  
  25. def EVT_DETAILED_HELP_RANGE(win, id, id2, func):
  26.     win.Connect(id, id2, wxEVT_DETAILED_HELP, func)
  27.  
  28.  
  29. class wxHelpEventPtr(wxCommandEventPtr):
  30.     
  31.     def __init__(self, this):
  32.         self.this = this
  33.         self.thisown = 0
  34.  
  35.     
  36.     def GetPosition(self, *_args, **_kwargs):
  37.         val = apply(helpc.wxHelpEvent_GetPosition, (self,) + _args, _kwargs)
  38.         if val:
  39.             val = wxPointPtr(val)
  40.         
  41.         return val
  42.  
  43.     
  44.     def SetPosition(self, *_args, **_kwargs):
  45.         val = apply(helpc.wxHelpEvent_SetPosition, (self,) + _args, _kwargs)
  46.         return val
  47.  
  48.     
  49.     def GetLink(self, *_args, **_kwargs):
  50.         val = apply(helpc.wxHelpEvent_GetLink, (self,) + _args, _kwargs)
  51.         return val
  52.  
  53.     
  54.     def SetLink(self, *_args, **_kwargs):
  55.         val = apply(helpc.wxHelpEvent_SetLink, (self,) + _args, _kwargs)
  56.         return val
  57.  
  58.     
  59.     def GetTarget(self, *_args, **_kwargs):
  60.         val = apply(helpc.wxHelpEvent_GetTarget, (self,) + _args, _kwargs)
  61.         return val
  62.  
  63.     
  64.     def SetTarget(self, *_args, **_kwargs):
  65.         val = apply(helpc.wxHelpEvent_SetTarget, (self,) + _args, _kwargs)
  66.         return val
  67.  
  68.     
  69.     def __repr__(self):
  70.         return '<C wxHelpEvent instance at %s>' % (self.this,)
  71.  
  72.  
  73.  
  74. class wxHelpEvent(wxHelpEventPtr):
  75.     
  76.     def __init__(self, *_args, **_kwargs):
  77.         self.this = apply(helpc.new_wxHelpEvent, _args, _kwargs)
  78.         self.thisown = 1
  79.  
  80.  
  81.  
  82. class wxContextHelpPtr(wxObjectPtr):
  83.     
  84.     def __init__(self, this):
  85.         self.this = this
  86.         self.thisown = 0
  87.  
  88.     
  89.     def __del__(self, delfunc = helpc.delete_wxContextHelp):
  90.         if self.thisown == 1:
  91.             
  92.             try:
  93.                 delfunc(self)
  94.             except:
  95.                 pass
  96.  
  97.         
  98.  
  99.     
  100.     def BeginContextHelp(self, *_args, **_kwargs):
  101.         val = apply(helpc.wxContextHelp_BeginContextHelp, (self,) + _args, _kwargs)
  102.         return val
  103.  
  104.     
  105.     def EndContextHelp(self, *_args, **_kwargs):
  106.         val = apply(helpc.wxContextHelp_EndContextHelp, (self,) + _args, _kwargs)
  107.         return val
  108.  
  109.     
  110.     def __repr__(self):
  111.         return '<C wxContextHelp instance at %s>' % (self.this,)
  112.  
  113.  
  114.  
  115. class wxContextHelp(wxContextHelpPtr):
  116.     
  117.     def __init__(self, *_args, **_kwargs):
  118.         self.this = apply(helpc.new_wxContextHelp, _args, _kwargs)
  119.         self.thisown = 1
  120.  
  121.  
  122.  
  123. class wxContextHelpButtonPtr(wxBitmapButtonPtr):
  124.     
  125.     def __init__(self, this):
  126.         self.this = this
  127.         self.thisown = 0
  128.  
  129.     
  130.     def __repr__(self):
  131.         return '<C wxContextHelpButton instance at %s>' % (self.this,)
  132.  
  133.  
  134.  
  135. class wxContextHelpButton(wxContextHelpButtonPtr):
  136.     
  137.     def __init__(self, *_args, **_kwargs):
  138.         self.this = apply(helpc.new_wxContextHelpButton, _args, _kwargs)
  139.         self.thisown = 1
  140.         self._setOORInfo(self)
  141.  
  142.  
  143.  
  144. class wxHelpProviderPtr:
  145.     
  146.     def __init__(self, this):
  147.         self.this = this
  148.         self.thisown = 0
  149.  
  150.     
  151.     def GetHelp(self, *_args, **_kwargs):
  152.         val = apply(helpc.wxHelpProvider_GetHelp, (self,) + _args, _kwargs)
  153.         return val
  154.  
  155.     
  156.     def ShowHelp(self, *_args, **_kwargs):
  157.         val = apply(helpc.wxHelpProvider_ShowHelp, (self,) + _args, _kwargs)
  158.         return val
  159.  
  160.     
  161.     def AddHelp(self, *_args, **_kwargs):
  162.         val = apply(helpc.wxHelpProvider_AddHelp, (self,) + _args, _kwargs)
  163.         return val
  164.  
  165.     
  166.     def AddHelpById(self, *_args, **_kwargs):
  167.         val = apply(helpc.wxHelpProvider_AddHelpById, (self,) + _args, _kwargs)
  168.         return val
  169.  
  170.     
  171.     def Destroy(self, *_args, **_kwargs):
  172.         val = apply(helpc.wxHelpProvider_Destroy, (self,) + _args, _kwargs)
  173.         return val
  174.  
  175.     
  176.     def __repr__(self):
  177.         return '<C wxHelpProvider instance at %s>' % (self.this,)
  178.  
  179.  
  180.  
  181. class wxHelpProvider(wxHelpProviderPtr):
  182.     
  183.     def __init__(self, this):
  184.         self.this = this
  185.  
  186.  
  187.  
  188. class wxSimpleHelpProviderPtr(wxHelpProviderPtr):
  189.     
  190.     def __init__(self, this):
  191.         self.this = this
  192.         self.thisown = 0
  193.  
  194.     
  195.     def __repr__(self):
  196.         return '<C wxSimpleHelpProvider instance at %s>' % (self.this,)
  197.  
  198.  
  199.  
  200. class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
  201.     
  202.     def __init__(self, *_args, **_kwargs):
  203.         self.this = apply(helpc.new_wxSimpleHelpProvider, _args, _kwargs)
  204.         self.thisown = 1
  205.  
  206.  
  207.  
  208. def wxHelpProvider_Set(*_args, **_kwargs):
  209.     val = apply(helpc.wxHelpProvider_Set, _args, _kwargs)
  210.     if val:
  211.         val = wxHelpProviderPtr(val)
  212.     
  213.     return val
  214.  
  215.  
  216. def wxHelpProvider_Get(*_args, **_kwargs):
  217.     val = apply(helpc.wxHelpProvider_Get, _args, _kwargs)
  218.     if val:
  219.         val = wxHelpProviderPtr(val)
  220.     
  221.     return val
  222.  
  223. wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP
  224. wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP
  225. wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP
  226. wxEVT_HELP = helpc.wxEVT_HELP
  227. wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
  228. import wx
  229. wx.wxHelpEventPtr = wxHelpEventPtr
  230. wx.wxContextHelpButtonPtr = wxContextHelpButtonPtr
  231.