]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/help.py
Compilation fixes for wxPython's wxWizard, added wxRegionFromPoints
[wxWidgets.git] / wxPython / src / msw / help.py
CommitLineData
4f3449b4
RD
1# This file was created automatically by SWIG.
2import helpc
3
4from windows import *
5
6from misc import *
7
8from gdi import *
9
68bc8549
RD
10from fonts import *
11
4f3449b4
RD
12from clip_dnd import *
13
14from controls import *
15
16from events import *
17
18# Help events
19def EVT_HELP(win, id, func):
20 win.Connect(id, -1, wxEVT_HELP, func)
21
22def EVT_HELP_RANGE(win, id, id2, func):
23 win.Connect(id, id2, wxEVT_HELP, func)
24
25def EVT_DETAILED_HELP(win, id, func):
26 win.Connect(id, -1, wxEVT_DETAILED_HELP, func)
27
28def EVT_DETAILED_HELP_RANGE(win, id, id2, func):
29 win.Connect(id, id2, wxEVT_DETAILED_HELP, func)
30
4f3449b4
RD
31class 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,)
56class 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
4f3449b4
RD
64class wxContextHelpPtr(wxObjectPtr):
65 def __init__(self,this):
66 self.this = this
67 self.thisown = 0
68 def __del__(self,helpc=helpc):
69 if self.thisown == 1 :
70 helpc.delete_wxContextHelp(self)
71 def BeginContextHelp(self, *_args, **_kwargs):
72 val = apply(helpc.wxContextHelp_BeginContextHelp,(self,) + _args, _kwargs)
73 return val
74 def EndContextHelp(self, *_args, **_kwargs):
75 val = apply(helpc.wxContextHelp_EndContextHelp,(self,) + _args, _kwargs)
76 return val
77 def __repr__(self):
78 return "<C wxContextHelp instance at %s>" % (self.this,)
79class wxContextHelp(wxContextHelpPtr):
80 def __init__(self,*_args,**_kwargs):
81 self.this = apply(helpc.new_wxContextHelp,_args,_kwargs)
82 self.thisown = 1
83
84
85
86
87class wxContextHelpButtonPtr(wxBitmapButtonPtr):
88 def __init__(self,this):
89 self.this = this
90 self.thisown = 0
91 def __repr__(self):
92 return "<C wxContextHelpButton instance at %s>" % (self.this,)
93class wxContextHelpButton(wxContextHelpButtonPtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs)
96 self.thisown = 1
0122b7e3 97 self._setOORInfo(self)
4f3449b4
RD
98
99
100
101
102class wxHelpProviderPtr :
103 def __init__(self,this):
104 self.this = this
105 self.thisown = 0
106 def GetHelp(self, *_args, **_kwargs):
107 val = apply(helpc.wxHelpProvider_GetHelp,(self,) + _args, _kwargs)
108 return val
109 def ShowHelp(self, *_args, **_kwargs):
110 val = apply(helpc.wxHelpProvider_ShowHelp,(self,) + _args, _kwargs)
111 return val
112 def AddHelp(self, *_args, **_kwargs):
113 val = apply(helpc.wxHelpProvider_AddHelp,(self,) + _args, _kwargs)
114 return val
115 def AddHelpById(self, *_args, **_kwargs):
116 val = apply(helpc.wxHelpProvider_AddHelpById,(self,) + _args, _kwargs)
117 return val
118 def Destroy(self, *_args, **_kwargs):
119 val = apply(helpc.wxHelpProvider_Destroy,(self,) + _args, _kwargs)
120 return val
121 def __repr__(self):
122 return "<C wxHelpProvider instance at %s>" % (self.this,)
123class wxHelpProvider(wxHelpProviderPtr):
124 def __init__(self,this):
125 self.this = this
126
127
128
129
130class wxSimpleHelpProviderPtr(wxHelpProviderPtr):
131 def __init__(self,this):
132 self.this = this
133 self.thisown = 0
134 def __repr__(self):
135 return "<C wxSimpleHelpProvider instance at %s>" % (self.this,)
136class wxSimpleHelpProvider(wxSimpleHelpProviderPtr):
137 def __init__(self,*_args,**_kwargs):
138 self.this = apply(helpc.new_wxSimpleHelpProvider,_args,_kwargs)
139 self.thisown = 1
140
141
142
143
144
145
146#-------------- FUNCTION WRAPPERS ------------------
147
148def wxHelpProvider_Set(*_args, **_kwargs):
149 val = apply(helpc.wxHelpProvider_Set,_args,_kwargs)
150 if val: val = wxHelpProviderPtr(val)
151 return val
152
153def wxHelpProvider_Get(*_args, **_kwargs):
154 val = apply(helpc.wxHelpProvider_Get,_args,_kwargs)
155 if val: val = wxHelpProviderPtr(val)
156 return val
157
158
159
160#-------------- VARIABLE WRAPPERS ------------------
161
162wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP
163wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP
164wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP
165wxEVT_HELP = helpc.wxEVT_HELP
166wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
4f3449b4
RD
167
168
169#-------------- USER INCLUDE -----------------------
170
171# Stuff these names into the wx namespace so wxPyConstructObject can find them
172import wx
173wx.wxHelpEventPtr = wxHelpEventPtr