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