]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/help.py
1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
14 from controls
import *
19 def EVT_HELP(win
, id, func
):
20 win
.Connect(id, -1, wxEVT_HELP
, func
)
22 def EVT_HELP_RANGE(win
, id, id2
, func
):
23 win
.Connect(id, id2
, wxEVT_HELP
, func
)
25 def EVT_DETAILED_HELP(win
, id, func
):
26 win
.Connect(id, -1, wxEVT_DETAILED_HELP
, func
)
28 def EVT_DETAILED_HELP_RANGE(win
, id, id2
, func
):
29 win
.Connect(id, id2
, wxEVT_DETAILED_HELP
, func
)
31 class wxHelpEventPtr(wxCommandEventPtr
):
32 def __init__(self
,this
):
35 def GetPosition(self
, *_args
, **_kwargs
):
36 val
= helpc
.wxHelpEvent_GetPosition(self
, *_args
, **_kwargs
)
37 if val
: val
= wxPointPtr(val
)
39 def SetPosition(self
, *_args
, **_kwargs
):
40 val
= helpc
.wxHelpEvent_SetPosition(self
, *_args
, **_kwargs
)
42 def GetLink(self
, *_args
, **_kwargs
):
43 val
= helpc
.wxHelpEvent_GetLink(self
, *_args
, **_kwargs
)
45 def SetLink(self
, *_args
, **_kwargs
):
46 val
= helpc
.wxHelpEvent_SetLink(self
, *_args
, **_kwargs
)
48 def GetTarget(self
, *_args
, **_kwargs
):
49 val
= helpc
.wxHelpEvent_GetTarget(self
, *_args
, **_kwargs
)
51 def SetTarget(self
, *_args
, **_kwargs
):
52 val
= helpc
.wxHelpEvent_SetTarget(self
, *_args
, **_kwargs
)
55 return "<%s.%s instance; proxy of C++ wxHelpEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
56 class wxHelpEvent(wxHelpEventPtr
):
57 def __init__(self
,*_args
,**_kwargs
):
58 self
.this
= helpc
.new_wxHelpEvent(*_args
,**_kwargs
)
64 class wxContextHelpPtr(wxObjectPtr
):
65 def __init__(self
,this
):
68 def __del__(self
, delfunc
=helpc
.delete_wxContextHelp
):
74 def BeginContextHelp(self
, *_args
, **_kwargs
):
75 val
= helpc
.wxContextHelp_BeginContextHelp(self
, *_args
, **_kwargs
)
77 def EndContextHelp(self
, *_args
, **_kwargs
):
78 val
= helpc
.wxContextHelp_EndContextHelp(self
, *_args
, **_kwargs
)
81 return "<%s.%s instance; proxy of C++ wxContextHelp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
82 class wxContextHelp(wxContextHelpPtr
):
83 def __init__(self
,*_args
,**_kwargs
):
84 self
.this
= helpc
.new_wxContextHelp(*_args
,**_kwargs
)
90 class wxContextHelpButtonPtr(wxBitmapButtonPtr
):
91 def __init__(self
,this
):
95 return "<%s.%s instance; proxy of C++ wxContextHelpButton instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
96 class wxContextHelpButton(wxContextHelpButtonPtr
):
97 def __init__(self
,*_args
,**_kwargs
):
98 self
.this
= helpc
.new_wxContextHelpButton(*_args
,**_kwargs
)
100 self
._setOORInfo
(self
)
105 class wxHelpProviderPtr
:
106 def __init__(self
,this
):
109 def GetHelp(self
, *_args
, **_kwargs
):
110 val
= helpc
.wxHelpProvider_GetHelp(self
, *_args
, **_kwargs
)
112 def ShowHelp(self
, *_args
, **_kwargs
):
113 val
= helpc
.wxHelpProvider_ShowHelp(self
, *_args
, **_kwargs
)
115 def AddHelp(self
, *_args
, **_kwargs
):
116 val
= helpc
.wxHelpProvider_AddHelp(self
, *_args
, **_kwargs
)
118 def AddHelpById(self
, *_args
, **_kwargs
):
119 val
= helpc
.wxHelpProvider_AddHelpById(self
, *_args
, **_kwargs
)
121 def Destroy(self
, *_args
, **_kwargs
):
122 val
= helpc
.wxHelpProvider_Destroy(self
, *_args
, **_kwargs
)
125 return "<%s.%s instance; proxy of C++ wxHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
126 class wxHelpProvider(wxHelpProviderPtr
):
127 def __init__(self
,this
):
133 class wxSimpleHelpProviderPtr(wxHelpProviderPtr
):
134 def __init__(self
,this
):
138 return "<%s.%s instance; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
139 class wxSimpleHelpProvider(wxSimpleHelpProviderPtr
):
140 def __init__(self
,*_args
,**_kwargs
):
141 self
.this
= helpc
.new_wxSimpleHelpProvider(*_args
,**_kwargs
)
149 #-------------- FUNCTION WRAPPERS ------------------
151 def wxHelpProvider_Set(*_args
, **_kwargs
):
152 val
= helpc
.wxHelpProvider_Set(*_args
,**_kwargs
)
153 if val
: val
= wxHelpProviderPtr(val
)
156 def wxHelpProvider_Get(*_args
, **_kwargs
):
157 val
= helpc
.wxHelpProvider_Get(*_args
,**_kwargs
)
158 if val
: val
= wxHelpProviderPtr(val
)
163 #-------------- VARIABLE WRAPPERS ------------------
165 wxFRAME_EX_CONTEXTHELP
= helpc
.wxFRAME_EX_CONTEXTHELP
166 wxDIALOG_EX_CONTEXTHELP
= helpc
.wxDIALOG_EX_CONTEXTHELP
167 wxID_CONTEXT_HELP
= helpc
.wxID_CONTEXT_HELP
168 wxEVT_HELP
= helpc
.wxEVT_HELP
169 wxEVT_DETAILED_HELP
= helpc
.wxEVT_DETAILED_HELP
172 #-------------- USER INCLUDE -----------------------
174 # Stuff these names into the wx namespace so wxPyConstructObject can find them
176 wx
.wxHelpEventPtr
= wxHelpEventPtr
177 wx
.wxContextHelpButtonPtr
= wxContextHelpButtonPtr