1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
17 def EVT_HELP(win
, id, func
):
18 win
.Connect(id, -1, wxEVT_HELP
, func
)
20 def EVT_HELP_RANGE(win
, id, id2
, func
):
21 win
.Connect(id, id2
, wxEVT_HELP
, func
)
23 def EVT_DETAILED_HELP(win
, id, func
):
24 win
.Connect(id, -1, wxEVT_DETAILED_HELP
, func
)
26 def EVT_DETAILED_HELP_RANGE(win
, id, id2
, func
):
27 win
.Connect(id, id2
, wxEVT_DETAILED_HELP
, func
)
29 def EVT_CONTEXT_MENU(win
, func
):
30 win
.Connect(-1, -1, wxEVT_CONTEXT_MENU
, func
)
32 class wxHelpEventPtr(wxCommandEventPtr
):
33 def __init__(self
,this
):
36 def GetPosition(self
, *_args
, **_kwargs
):
37 val
= apply(helpc
.wxHelpEvent_GetPosition
,(self
,) + _args
, _kwargs
)
38 if val
: val
= wxPointPtr(val
)
40 def SetPosition(self
, *_args
, **_kwargs
):
41 val
= apply(helpc
.wxHelpEvent_SetPosition
,(self
,) + _args
, _kwargs
)
43 def GetLink(self
, *_args
, **_kwargs
):
44 val
= apply(helpc
.wxHelpEvent_GetLink
,(self
,) + _args
, _kwargs
)
46 def SetLink(self
, *_args
, **_kwargs
):
47 val
= apply(helpc
.wxHelpEvent_SetLink
,(self
,) + _args
, _kwargs
)
49 def GetTarget(self
, *_args
, **_kwargs
):
50 val
= apply(helpc
.wxHelpEvent_GetTarget
,(self
,) + _args
, _kwargs
)
52 def SetTarget(self
, *_args
, **_kwargs
):
53 val
= apply(helpc
.wxHelpEvent_SetTarget
,(self
,) + _args
, _kwargs
)
56 return "<C wxHelpEvent instance at %s>" % (self
.this
,)
57 class wxHelpEvent(wxHelpEventPtr
):
58 def __init__(self
,*_args
,**_kwargs
):
59 self
.this
= apply(helpc
.new_wxHelpEvent
,_args
,_kwargs
)
65 class wxContextMenuEventPtr(wxCommandEventPtr
):
66 def __init__(self
,this
):
69 def GetPosition(self
, *_args
, **_kwargs
):
70 val
= apply(helpc
.wxContextMenuEvent_GetPosition
,(self
,) + _args
, _kwargs
)
71 if val
: val
= wxPointPtr(val
)
73 def SetPosition(self
, *_args
, **_kwargs
):
74 val
= apply(helpc
.wxContextMenuEvent_SetPosition
,(self
,) + _args
, _kwargs
)
77 return "<C wxContextMenuEvent instance at %s>" % (self
.this
,)
78 class wxContextMenuEvent(wxContextMenuEventPtr
):
79 def __init__(self
,*_args
,**_kwargs
):
80 self
.this
= apply(helpc
.new_wxContextMenuEvent
,_args
,_kwargs
)
86 class wxContextHelpPtr(wxObjectPtr
):
87 def __init__(self
,this
):
90 def __del__(self
,helpc
=helpc
):
91 if self
.thisown
== 1 :
92 helpc
.delete_wxContextHelp(self
)
93 def BeginContextHelp(self
, *_args
, **_kwargs
):
94 val
= apply(helpc
.wxContextHelp_BeginContextHelp
,(self
,) + _args
, _kwargs
)
96 def EndContextHelp(self
, *_args
, **_kwargs
):
97 val
= apply(helpc
.wxContextHelp_EndContextHelp
,(self
,) + _args
, _kwargs
)
100 return "<C wxContextHelp instance at %s>" % (self
.this
,)
101 class wxContextHelp(wxContextHelpPtr
):
102 def __init__(self
,*_args
,**_kwargs
):
103 self
.this
= apply(helpc
.new_wxContextHelp
,_args
,_kwargs
)
109 class wxContextHelpButtonPtr(wxBitmapButtonPtr
):
110 def __init__(self
,this
):
114 return "<C wxContextHelpButton instance at %s>" % (self
.this
,)
115 class wxContextHelpButton(wxContextHelpButtonPtr
):
116 def __init__(self
,*_args
,**_kwargs
):
117 self
.this
= apply(helpc
.new_wxContextHelpButton
,_args
,_kwargs
)
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
188 wxEVT_CONTEXT_MENU
= helpc
.wxEVT_CONTEXT_MENU
191 #-------------- USER INCLUDE -----------------------
193 # Stuff these names into the wx namespace so wxPyConstructObject can find them
195 wx
.wxHelpEventPtr
= wxHelpEventPtr
196 wx
.wxContextMenuEventPtr
= wxContextMenuEventPtr