]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/help.py
Updated note about wxSTC using wxPopupWindow
[wxWidgets.git] / wxPython / src / msw / help.py
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
10 from fonts import *
11
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
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 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,)
79 class 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
87 class 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,)
93 class wxContextHelpButton(wxContextHelpButtonPtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(helpc.new_wxContextHelpButton,_args,_kwargs)
96 self.thisown = 1
97 self._setOORInfo(self)
98
99
100
101
102 class 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,)
123 class wxHelpProvider(wxHelpProviderPtr):
124 def __init__(self,this):
125 self.this = this
126
127
128
129
130 class 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,)
136 class 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
148 def wxHelpProvider_Set(*_args, **_kwargs):
149 val = apply(helpc.wxHelpProvider_Set,_args,_kwargs)
150 if val: val = wxHelpProviderPtr(val)
151 return val
152
153 def 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
162 wxFRAME_EX_CONTEXTHELP = helpc.wxFRAME_EX_CONTEXTHELP
163 wxDIALOG_EX_CONTEXTHELP = helpc.wxDIALOG_EX_CONTEXTHELP
164 wxID_CONTEXT_HELP = helpc.wxID_CONTEXT_HELP
165 wxEVT_HELP = helpc.wxEVT_HELP
166 wxEVT_DETAILED_HELP = helpc.wxEVT_DETAILED_HELP
167
168
169 #-------------- USER INCLUDE -----------------------
170
171 # Stuff these names into the wx namespace so wxPyConstructObject can find them
172 import wx
173 wx.wxHelpEventPtr = wxHelpEventPtr