]>
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): | |
1fded56b | 36 | val = helpc.wxHelpEvent_GetPosition(self, *_args, **_kwargs) |
cd096152 RD |
37 | if val: val = wxPointPtr(val) |
38 | return val | |
39 | def SetPosition(self, *_args, **_kwargs): | |
1fded56b | 40 | val = helpc.wxHelpEvent_SetPosition(self, *_args, **_kwargs) |
cd096152 RD |
41 | return val |
42 | def GetLink(self, *_args, **_kwargs): | |
1fded56b | 43 | val = helpc.wxHelpEvent_GetLink(self, *_args, **_kwargs) |
cd096152 RD |
44 | return val |
45 | def SetLink(self, *_args, **_kwargs): | |
1fded56b | 46 | val = helpc.wxHelpEvent_SetLink(self, *_args, **_kwargs) |
cd096152 RD |
47 | return val |
48 | def GetTarget(self, *_args, **_kwargs): | |
1fded56b | 49 | val = helpc.wxHelpEvent_GetTarget(self, *_args, **_kwargs) |
cd096152 RD |
50 | return val |
51 | def SetTarget(self, *_args, **_kwargs): | |
1fded56b | 52 | val = helpc.wxHelpEvent_SetTarget(self, *_args, **_kwargs) |
cd096152 RD |
53 | return val |
54 | def __repr__(self): | |
1fded56b | 55 | return "<%s.%s instance; proxy of C++ wxHelpEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cd096152 RD |
56 | class wxHelpEvent(wxHelpEventPtr): |
57 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 58 | self.this = helpc.new_wxHelpEvent(*_args,**_kwargs) |
cd096152 RD |
59 | self.thisown = 1 |
60 | ||
61 | ||
62 | ||
63 | ||
cd096152 RD |
64 | class wxContextHelpPtr(wxObjectPtr): |
65 | def __init__(self,this): | |
66 | self.this = this | |
67 | self.thisown = 0 | |
b67a9327 RD |
68 | def __del__(self, delfunc=helpc.delete_wxContextHelp): |
69 | if self.thisown == 1: | |
70 | try: | |
71 | delfunc(self) | |
72 | except: | |
73 | pass | |
cd096152 | 74 | def BeginContextHelp(self, *_args, **_kwargs): |
1fded56b | 75 | val = helpc.wxContextHelp_BeginContextHelp(self, *_args, **_kwargs) |
cd096152 RD |
76 | return val |
77 | def EndContextHelp(self, *_args, **_kwargs): | |
1fded56b | 78 | val = helpc.wxContextHelp_EndContextHelp(self, *_args, **_kwargs) |
cd096152 RD |
79 | return val |
80 | def __repr__(self): | |
1fded56b | 81 | return "<%s.%s instance; proxy of C++ wxContextHelp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cd096152 RD |
82 | class wxContextHelp(wxContextHelpPtr): |
83 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 84 | self.this = helpc.new_wxContextHelp(*_args,**_kwargs) |
cd096152 RD |
85 | self.thisown = 1 |
86 | ||
87 | ||
88 | ||
89 | ||
90 | class wxContextHelpButtonPtr(wxBitmapButtonPtr): | |
91 | def __init__(self,this): | |
92 | self.this = this | |
93 | self.thisown = 0 | |
94 | def __repr__(self): | |
1fded56b | 95 | return "<%s.%s instance; proxy of C++ wxContextHelpButton instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cd096152 RD |
96 | class wxContextHelpButton(wxContextHelpButtonPtr): |
97 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 98 | self.this = helpc.new_wxContextHelpButton(*_args,**_kwargs) |
cd096152 | 99 | self.thisown = 1 |
0220cbc1 | 100 | self._setOORInfo(self) |
cd096152 RD |
101 | |
102 | ||
103 | ||
104 | ||
105 | class wxHelpProviderPtr : | |
106 | def __init__(self,this): | |
107 | self.this = this | |
108 | self.thisown = 0 | |
109 | def GetHelp(self, *_args, **_kwargs): | |
1fded56b | 110 | val = helpc.wxHelpProvider_GetHelp(self, *_args, **_kwargs) |
cd096152 RD |
111 | return val |
112 | def ShowHelp(self, *_args, **_kwargs): | |
1fded56b | 113 | val = helpc.wxHelpProvider_ShowHelp(self, *_args, **_kwargs) |
cd096152 RD |
114 | return val |
115 | def AddHelp(self, *_args, **_kwargs): | |
1fded56b | 116 | val = helpc.wxHelpProvider_AddHelp(self, *_args, **_kwargs) |
cd096152 RD |
117 | return val |
118 | def AddHelpById(self, *_args, **_kwargs): | |
1fded56b | 119 | val = helpc.wxHelpProvider_AddHelpById(self, *_args, **_kwargs) |
cd096152 RD |
120 | return val |
121 | def Destroy(self, *_args, **_kwargs): | |
1fded56b | 122 | val = helpc.wxHelpProvider_Destroy(self, *_args, **_kwargs) |
cd096152 RD |
123 | return val |
124 | def __repr__(self): | |
1fded56b | 125 | return "<%s.%s instance; proxy of C++ wxHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cd096152 RD |
126 | class wxHelpProvider(wxHelpProviderPtr): |
127 | def __init__(self,this): | |
128 | self.this = this | |
129 | ||
130 | ||
131 | ||
132 | ||
133 | class wxSimpleHelpProviderPtr(wxHelpProviderPtr): | |
134 | def __init__(self,this): | |
135 | self.this = this | |
136 | self.thisown = 0 | |
137 | def __repr__(self): | |
1fded56b | 138 | return "<%s.%s instance; proxy of C++ wxSimpleHelpProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
cd096152 RD |
139 | class wxSimpleHelpProvider(wxSimpleHelpProviderPtr): |
140 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 141 | self.this = helpc.new_wxSimpleHelpProvider(*_args,**_kwargs) |
cd096152 RD |
142 | self.thisown = 1 |
143 | ||
144 | ||
145 | ||
146 | ||
147 | ||
148 | ||
149 | #-------------- FUNCTION WRAPPERS ------------------ | |
150 | ||
151 | def wxHelpProvider_Set(*_args, **_kwargs): | |
1fded56b | 152 | val = helpc.wxHelpProvider_Set(*_args,**_kwargs) |
cd096152 RD |
153 | if val: val = wxHelpProviderPtr(val) |
154 | return val | |
155 | ||
156 | def wxHelpProvider_Get(*_args, **_kwargs): | |
1fded56b | 157 | val = helpc.wxHelpProvider_Get(*_args,**_kwargs) |
cd096152 RD |
158 | if val: val = wxHelpProviderPtr(val) |
159 | return val | |
160 | ||
161 | ||
162 | ||
163 | #-------------- VARIABLE WRAPPERS ------------------ | |
164 | ||
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 | |
cd096152 RD |
170 | |
171 | ||
172 | #-------------- USER INCLUDE ----------------------- | |
173 | ||
174 | # Stuff these names into the wx namespace so wxPyConstructObject can find them | |
175 | import wx | |
176 | wx.wxHelpEventPtr = wxHelpEventPtr | |
b67a9327 | 177 | wx.wxContextHelpButtonPtr = wxContextHelpButtonPtr |