]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/help.py
compilation fix for recent commit
[wxWidgets.git] / wxPython / src / gtk / help.py
CommitLineData
cd096152
RD
1# This file was created automatically by SWIG.
2import helpc
3
4from windows import *
5
6from misc import *
7
8from gdi import *
9
10from clip_dnd import *
11
12from controls import *
13
14from events import *
15
16# Help events
17def EVT_HELP(win, id, func):
18 win.Connect(id, -1, wxEVT_HELP, func)
19
20def EVT_HELP_RANGE(win, id, id2, func):
21 win.Connect(id, id2, wxEVT_HELP, func)
22
23def EVT_DETAILED_HELP(win, id, func):
24 win.Connect(id, -1, wxEVT_DETAILED_HELP, func)
25
26def EVT_DETAILED_HELP_RANGE(win, id, id2, func):
27 win.Connect(id, id2, wxEVT_DETAILED_HELP, func)
28
29def EVT_CONTEXT_MENU(win, func):
30 win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func)
31
32class wxHelpEventPtr(wxCommandEventPtr):
33 def __init__(self,this):
34 self.this = this
35 self.thisown = 0
36 def GetPosition(self, *_args, **_kwargs):
37 val = apply(helpc.wxHelpEvent_GetPosition,(self,) + _args, _kwargs)
38 if val: val = wxPointPtr(val)
39 return val
40 def SetPosition(self, *_args, **_kwargs):
41 val = apply(helpc.wxHelpEvent_SetPosition,(self,) + _args, _kwargs)
42 return val
43 def GetLink(self, *_args, **_kwargs):
44 val = apply(helpc.wxHelpEvent_GetLink,(self,) + _args, _kwargs)
45 return val
46 def SetLink(self, *_args, **_kwargs):
47 val = apply(helpc.wxHelpEvent_SetLink,(self,) + _args, _kwargs)
48 return val
49 def GetTarget(self, *_args, **_kwargs):
50 val = apply(helpc.wxHelpEvent_GetTarget,(self,) + _args, _kwargs)
51 return val
52 def SetTarget(self, *_args, **_kwargs):
53 val = apply(helpc.wxHelpEvent_SetTarget,(self,) + _args, _kwargs)
54 return val
55 def __repr__(self):
56 return "<C wxHelpEvent instance at %s>" % (self.this,)
57class wxHelpEvent(wxHelpEventPtr):
58 def __init__(self,*_args,**_kwargs):
59 self.this = apply(helpc.new_wxHelpEvent,_args,_kwargs)
60 self.thisown = 1
61
62
63
64
65class wxContextMenuEventPtr(wxCommandEventPtr):
66 def __init__(self,this):
67 self.this = this
68 self.thisown = 0
69 def GetPosition(self, *_args, **_kwargs):
70 val = apply(helpc.wxContextMenuEvent_GetPosition,(self,) + _args, _kwargs)
71 if val: val = wxPointPtr(val)
72 return val
73 def SetPosition(self, *_args, **_kwargs):
74 val = apply(helpc.wxContextMenuEvent_SetPosition,(self,) + _args, _kwargs)
75 return val
76 def __repr__(self):
77 return "<C wxContextMenuEvent instance at %s>" % (self.this,)
78class wxContextMenuEvent(wxContextMenuEventPtr):
79 def __init__(self,*_args,**_kwargs):
80 self.this = apply(helpc.new_wxContextMenuEvent,_args,_kwargs)
81 self.thisown = 1
82
83
84
85
86class wxContextHelpPtr(wxObjectPtr):
87 def __init__(self,this):
88 self.this = this
89 self.thisown = 0
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)
95 return val
96 def EndContextHelp(self, *_args, **_kwargs):
97 val = apply(helpc.wxContextHelp_EndContextHelp,(self,) + _args, _kwargs)
98 return val
99 def __repr__(self):
100 return "<C wxContextHelp instance at %s>" % (self.this,)
101class wxContextHelp(wxContextHelpPtr):
102 def __init__(self,*_args,**_kwargs):
103 self.this = apply(helpc.new_wxContextHelp,_args,_kwargs)
104 self.thisown = 1
105
106
107
108
109class wxContextHelpButtonPtr(wxBitmapButtonPtr):
110 def __init__(self,this):
111 self.this = this
112 self.thisown = 0
113 def __repr__(self):
114 return "<C wxContextHelpButton instance at %s>" % (self.this,)
115class wxContextHelpButton(wxContextHelpButtonPtr):
116 def __init__(self,*_args,**_kwargs):
117 self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs)
118 self.thisown = 1
0220cbc1 119 self._setOORInfo(self)
cd096152
RD
120
121
122
123
124class wxHelpProviderPtr :
125 def __init__(self,this):
126 self.this = this
127 self.thisown = 0
128 def GetHelp(self, *_args, **_kwargs):
129 val = apply(helpc.wxHelpProvider_GetHelp,(self,) + _args, _kwargs)
130 return val
131 def ShowHelp(self, *_args, **_kwargs):
132 val = apply(helpc.wxHelpProvider_ShowHelp,(self,) + _args, _kwargs)
133 return val
134 def AddHelp(self, *_args, **_kwargs):
135 val = apply(helpc.wxHelpProvider_AddHelp,(self,) + _args, _kwargs)
136 return val
137 def AddHelpById(self, *_args, **_kwargs):
138 val = apply(helpc.wxHelpProvider_AddHelpById,(self,) + _args, _kwargs)
139 return val
140 def Destroy(self, *_args, **_kwargs):
141 val = apply(helpc.wxHelpProvider_Destroy,(self,) + _args, _kwargs)
142 return val
143 def __repr__(self):
144 return "<C wxHelpProvider instance at %s>" % (self.this,)
145class wxHelpProvider(wxHelpProviderPtr):
146 def __init__(self,this):
147 self.this = this
148
149
150
151
152class wxSimpleHelpProviderPtr(wxHelpProviderPtr):
153 def __init__(self,this):
154 self.this = this
155 self.thisown = 0
156 def __repr__(self):
157 return "<C wxSimpleHelpProvider instance at %s>" % (self.this,)
158class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
159 def __init__(self,*_args,**_kwargs):
160 self.this = apply(helpc.new_wxSimpleHelpProvider,_args,_kwargs)
161 self.thisown = 1
162
163
164
165
166
167
168#-------------- FUNCTION WRAPPERS ------------------
169
170def wxHelpProvider_Set(*_args, **_kwargs):
171 val = apply(helpc.wxHelpProvider_Set,_args,_kwargs)
172 if val: val = wxHelpProviderPtr(val)
173 return val
174
175def wxHelpProvider_Get(*_args, **_kwargs):
176 val = apply(helpc.wxHelpProvider_Get,_args,_kwargs)
177 if val: val = wxHelpProviderPtr(val)
178 return val
179
180
181
182#-------------- VARIABLE WRAPPERS ------------------
183
184wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP
185wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP
186wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP
187wxEVT_HELP = helpc.wxEVT_HELP
188wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
189wxEVT_CONTEXT_MENU = helpc.wxEVT_CONTEXT_MENU
190
191
192#-------------- USER INCLUDE -----------------------
193
194# Stuff these names into the wx namespace so wxPyConstructObject can find them
195import wx
196wx.wxHelpEventPtr = wxHelpEventPtr
197wx.wxContextMenuEventPtr = wxContextMenuEventPtr