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
= apply(helpc
.wxHelpEvent_GetPosition
,(self
,) + _args
, _kwargs
)
37 if val
: val
= wxPointPtr(val
)
39 def SetPosition(self
, *_args
, **_kwargs
):
40 val
= apply(helpc
.wxHelpEvent_SetPosition
,(self
,) + _args
, _kwargs
)
42 def GetLink(self
, *_args
, **_kwargs
):
43 val
= apply(helpc
.wxHelpEvent_GetLink
,(self
,) + _args
, _kwargs
)
45 def SetLink(self
, *_args
, **_kwargs
):
46 val
= apply(helpc
.wxHelpEvent_SetLink
,(self
,) + _args
, _kwargs
)
48 def GetTarget(self
, *_args
, **_kwargs
):
49 val
= apply(helpc
.wxHelpEvent_GetTarget
,(self
,) + _args
, _kwargs
)
51 def SetTarget(self
, *_args
, **_kwargs
):
52 val
= apply(helpc
.wxHelpEvent_SetTarget
,(self
,) + _args
, _kwargs
)
55 return "<C wxHelpEvent instance at %s>" % (self
.this
,)
56 class wxHelpEvent(wxHelpEventPtr
):
57 def __init__(self
,*_args
,**_kwargs
):
58 self
.this
= apply(helpc
.new_wxHelpEvent
,_args
,_kwargs
)
64 class wxContextMenuEventPtr(wxCommandEventPtr
):
65 def __init__(self
,this
):
68 def GetPosition(self
, *_args
, **_kwargs
):
69 val
= apply(helpc
.wxContextMenuEvent_GetPosition
,(self
,) + _args
, _kwargs
)
70 if val
: val
= wxPointPtr(val
)
72 def SetPosition(self
, *_args
, **_kwargs
):
73 val
= apply(helpc
.wxContextMenuEvent_SetPosition
,(self
,) + _args
, _kwargs
)
76 return "<C wxContextMenuEvent instance at %s>" % (self
.this
,)
77 class wxContextMenuEvent(wxContextMenuEventPtr
):
78 def __init__(self
,*_args
,**_kwargs
):
79 self
.this
= apply(helpc
.new_wxContextMenuEvent
,_args
,_kwargs
)
85 class wxContextHelpPtr(wxObjectPtr
):
86 def __init__(self
,this
):
89 def __del__(self
,helpc
=helpc
):
90 if self
.thisown
== 1 :
91 helpc
.delete_wxContextHelp(self
)
92 def BeginContextHelp(self
, *_args
, **_kwargs
):
93 val
= apply(helpc
.wxContextHelp_BeginContextHelp
,(self
,) + _args
, _kwargs
)
95 def EndContextHelp(self
, *_args
, **_kwargs
):
96 val
= apply(helpc
.wxContextHelp_EndContextHelp
,(self
,) + _args
, _kwargs
)
99 return "<C wxContextHelp instance at %s>" % (self
.this
,)
100 class wxContextHelp(wxContextHelpPtr
):
101 def __init__(self
,*_args
,**_kwargs
):
102 self
.this
= apply(helpc
.new_wxContextHelp
,_args
,_kwargs
)
108 class wxContextHelpButtonPtr(wxBitmapButtonPtr
):
109 def __init__(self
,this
):
113 return "<C wxContextHelpButton instance at %s>" % (self
.this
,)
114 class wxContextHelpButton(wxContextHelpButtonPtr
):
115 def __init__(self
,*_args
,**_kwargs
):
116 self
.this
= apply(helpc
.new_wxContextHelpButton
,_args
,_kwargs
)
118 self
._setOORInfo
(self
)
123 class wxHelpProviderPtr
:
124 def __init__(self
,this
):
127 def GetHelp(self
, *_args
, **_kwargs
):
128 val
= apply(helpc
.wxHelpProvider_GetHelp
,(self
,) + _args
, _kwargs
)
130 def ShowHelp(self
, *_args
, **_kwargs
):
131 val
= apply(helpc
.wxHelpProvider_ShowHelp
,(self
,) + _args
, _kwargs
)
133 def AddHelp(self
, *_args
, **_kwargs
):
134 val
= apply(helpc
.wxHelpProvider_AddHelp
,(self
,) + _args
, _kwargs
)
136 def AddHelpById(self
, *_args
, **_kwargs
):
137 val
= apply(helpc
.wxHelpProvider_AddHelpById
,(self
,) + _args
, _kwargs
)
139 def Destroy(self
, *_args
, **_kwargs
):
140 val
= apply(helpc
.wxHelpProvider_Destroy
,(self
,) + _args
, _kwargs
)
143 return "<C wxHelpProvider instance at %s>" % (self
.this
,)
144 class wxHelpProvider(wxHelpProviderPtr
):
145 def __init__(self
,this
):
151 class wxSimpleHelpProviderPtr(wxHelpProviderPtr
):
152 def __init__(self
,this
):
156 return "<C wxSimpleHelpProvider instance at %s>" % (self
.this
,)
157 class wxSimpleHelpProvider(wxSimpleHelpProviderPtr
):
158 def __init__(self
,*_args
,**_kwargs
):
159 self
.this
= apply(helpc
.new_wxSimpleHelpProvider
,_args
,_kwargs
)
167 #-------------- FUNCTION WRAPPERS ------------------
169 def wxHelpProvider_Set(*_args
, **_kwargs
):
170 val
= apply(helpc
.wxHelpProvider_Set
,_args
,_kwargs
)
171 if val
: val
= wxHelpProviderPtr(val
)
174 def wxHelpProvider_Get(*_args
, **_kwargs
):
175 val
= apply(helpc
.wxHelpProvider_Get
,_args
,_kwargs
)
176 if val
: val
= wxHelpProviderPtr(val
)
181 #-------------- VARIABLE WRAPPERS ------------------
183 wxFRAME_EX_CONTEXTHELP
= helpc
.wxFRAME_EX_CONTEXTHELP
184 wxDIALOG_EX_CONTEXTHELP
= helpc
.wxDIALOG_EX_CONTEXTHELP
185 wxID_CONTEXT_HELP
= helpc
.wxID_CONTEXT_HELP
186 wxEVT_HELP
= helpc
.wxEVT_HELP
187 wxEVT_DETAILED_HELP
= helpc
.wxEVT_DETAILED_HELP
190 #-------------- USER INCLUDE -----------------------
192 # Stuff these names into the wx namespace so wxPyConstructObject can find them
194 wx
.wxHelpEventPtr
= wxHelpEventPtr
195 wx
.wxContextMenuEventPtr
= wxContextMenuEventPtr