]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/gizmos/gizmos.py
digital mars updated
[wxWidgets.git] / wxPython / contrib / gizmos / gizmos.py
1 # This file was created automatically by SWIG.
2 import gizmosc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from fonts import *
13
14 from clip_dnd import *
15
16 from events import *
17
18 from streams import *
19
20 from utils import *
21
22 from mdi import *
23
24 from frames import *
25
26 from stattool import *
27
28 from controls import *
29
30 from controls2 import *
31
32 from windows2 import *
33
34 from cmndlgs import *
35
36 from windows3 import *
37
38 from image import *
39
40 from printfw import *
41
42 from sizers import *
43
44 from filesys import *
45
46 def EVT_DYNAMIC_SASH_SPLIT(win, id, func):
47 win.Connect(id, -1, wxEVT_DYNAMIC_SASH_SPLIT, func)
48
49 def EVT_DYNAMIC_SASH_UNIFY(win, id, func):
50 win.Connect(id, -1, wxEVT_DYNAMIC_SASH_UNIFY, func)
51
52 class wxDynamicSashSplitEventPtr(wxCommandEventPtr):
53 def __init__(self,this):
54 self.this = this
55 self.thisown = 0
56 def __repr__(self):
57 return "<C wxDynamicSashSplitEvent instance at %s>" % (self.this,)
58 class wxDynamicSashSplitEvent(wxDynamicSashSplitEventPtr):
59 def __init__(self,*_args,**_kwargs):
60 self.this = apply(gizmosc.new_wxDynamicSashSplitEvent,_args,_kwargs)
61 self.thisown = 1
62
63
64
65
66 class wxDynamicSashUnifyEventPtr(wxCommandEventPtr):
67 def __init__(self,this):
68 self.this = this
69 self.thisown = 0
70 def __repr__(self):
71 return "<C wxDynamicSashUnifyEvent instance at %s>" % (self.this,)
72 class wxDynamicSashUnifyEvent(wxDynamicSashUnifyEventPtr):
73 def __init__(self,*_args,**_kwargs):
74 self.this = apply(gizmosc.new_wxDynamicSashUnifyEvent,_args,_kwargs)
75 self.thisown = 1
76
77
78
79
80 class wxDynamicSashWindowPtr(wxWindowPtr):
81 def __init__(self,this):
82 self.this = this
83 self.thisown = 0
84 def Create(self, *_args, **_kwargs):
85 val = apply(gizmosc.wxDynamicSashWindow_Create,(self,) + _args, _kwargs)
86 return val
87 def GetHScrollBar(self, *_args, **_kwargs):
88 val = apply(gizmosc.wxDynamicSashWindow_GetHScrollBar,(self,) + _args, _kwargs)
89 if val: val = wxScrollBarPtr(val)
90 return val
91 def GetVScrollBar(self, *_args, **_kwargs):
92 val = apply(gizmosc.wxDynamicSashWindow_GetVScrollBar,(self,) + _args, _kwargs)
93 if val: val = wxScrollBarPtr(val)
94 return val
95 def __repr__(self):
96 return "<C wxDynamicSashWindow instance at %s>" % (self.this,)
97 class wxDynamicSashWindow(wxDynamicSashWindowPtr):
98 def __init__(self,*_args,**_kwargs):
99 self.this = apply(gizmosc.new_wxDynamicSashWindow,_args,_kwargs)
100 self.thisown = 1
101 self._setOORInfo(self)
102
103
104
105 def wxPreDynamicSashWindow(*_args,**_kwargs):
106 val = wxDynamicSashWindowPtr(apply(gizmosc.new_wxPreDynamicSashWindow,_args,_kwargs))
107 val.thisown = 1
108 val._setOORInfo(val)
109 return val
110
111
112 class wxEditableListBoxPtr(wxPanelPtr):
113 def __init__(self,this):
114 self.this = this
115 self.thisown = 0
116 def SetStrings(self, *_args, **_kwargs):
117 val = apply(gizmosc.wxEditableListBox_SetStrings,(self,) + _args, _kwargs)
118 return val
119 def GetStrings(self, *_args, **_kwargs):
120 val = apply(gizmosc.wxEditableListBox_GetStrings,(self,) + _args, _kwargs)
121 return val
122 def GetListCtrl(self, *_args, **_kwargs):
123 val = apply(gizmosc.wxEditableListBox_GetListCtrl,(self,) + _args, _kwargs)
124 return val
125 def GetDelButton(self, *_args, **_kwargs):
126 val = apply(gizmosc.wxEditableListBox_GetDelButton,(self,) + _args, _kwargs)
127 return val
128 def GetNewButton(self, *_args, **_kwargs):
129 val = apply(gizmosc.wxEditableListBox_GetNewButton,(self,) + _args, _kwargs)
130 return val
131 def GetUpButton(self, *_args, **_kwargs):
132 val = apply(gizmosc.wxEditableListBox_GetUpButton,(self,) + _args, _kwargs)
133 return val
134 def GetDownButton(self, *_args, **_kwargs):
135 val = apply(gizmosc.wxEditableListBox_GetDownButton,(self,) + _args, _kwargs)
136 return val
137 def GetEditButton(self, *_args, **_kwargs):
138 val = apply(gizmosc.wxEditableListBox_GetEditButton,(self,) + _args, _kwargs)
139 return val
140 def __repr__(self):
141 return "<C wxEditableListBox instance at %s>" % (self.this,)
142 class wxEditableListBox(wxEditableListBoxPtr):
143 def __init__(self,*_args,**_kwargs):
144 self.this = apply(gizmosc.new_wxEditableListBox,_args,_kwargs)
145 self.thisown = 1
146 self._setOORInfo(self)
147
148
149
150
151 class wxRemotelyScrolledTreeCtrlPtr(wxTreeCtrlPtr):
152 def __init__(self,this):
153 self.this = this
154 self.thisown = 0
155 def HideVScrollbar(self, *_args, **_kwargs):
156 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_HideVScrollbar,(self,) + _args, _kwargs)
157 return val
158 def AdjustRemoteScrollbars(self, *_args, **_kwargs):
159 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars,(self,) + _args, _kwargs)
160 return val
161 def GetScrolledWindow(self, *_args, **_kwargs):
162 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetScrolledWindow,(self,) + _args, _kwargs)
163 if val: val = wxScrolledWindowPtr(val)
164 return val
165 def ScrollToLine(self, *_args, **_kwargs):
166 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_ScrollToLine,(self,) + _args, _kwargs)
167 return val
168 def SetCompanionWindow(self, *_args, **_kwargs):
169 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_SetCompanionWindow,(self,) + _args, _kwargs)
170 return val
171 def GetCompanionWindow(self, *_args, **_kwargs):
172 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetCompanionWindow,(self,) + _args, _kwargs)
173 return val
174 def __repr__(self):
175 return "<C wxRemotelyScrolledTreeCtrl instance at %s>" % (self.this,)
176 class wxRemotelyScrolledTreeCtrl(wxRemotelyScrolledTreeCtrlPtr):
177 def __init__(self,*_args,**_kwargs):
178 self.this = apply(gizmosc.new_wxRemotelyScrolledTreeCtrl,_args,_kwargs)
179 self.thisown = 1
180 self._setOORInfo(self)
181
182
183
184
185 class wxTreeCompanionWindowPtr(wxWindowPtr):
186 def __init__(self,this):
187 self.this = this
188 self.thisown = 0
189 def _setCallbackInfo(self, *_args, **_kwargs):
190 val = apply(gizmosc.wxTreeCompanionWindow__setCallbackInfo,(self,) + _args, _kwargs)
191 return val
192 def GetTreeCtrl(self, *_args, **_kwargs):
193 val = apply(gizmosc.wxTreeCompanionWindow_GetTreeCtrl,(self,) + _args, _kwargs)
194 if val: val = wxRemotelyScrolledTreeCtrlPtr(val)
195 return val
196 def SetTreeCtrl(self, *_args, **_kwargs):
197 val = apply(gizmosc.wxTreeCompanionWindow_SetTreeCtrl,(self,) + _args, _kwargs)
198 return val
199 def __repr__(self):
200 return "<C wxTreeCompanionWindow instance at %s>" % (self.this,)
201 class wxTreeCompanionWindow(wxTreeCompanionWindowPtr):
202 def __init__(self,*_args,**_kwargs):
203 self.this = apply(gizmosc.new_wxTreeCompanionWindow,_args,_kwargs)
204 self.thisown = 1
205 self._setCallbackInfo(self, wxTreeCompanionWindow)
206 self._setOORInfo(self)
207
208
209
210
211 class wxThinSplitterWindowPtr(wxSplitterWindowPtr):
212 def __init__(self,this):
213 self.this = this
214 self.thisown = 0
215 def __repr__(self):
216 return "<C wxThinSplitterWindow instance at %s>" % (self.this,)
217 class wxThinSplitterWindow(wxThinSplitterWindowPtr):
218 def __init__(self,*_args,**_kwargs):
219 self.this = apply(gizmosc.new_wxThinSplitterWindow,_args,_kwargs)
220 self.thisown = 1
221 self._setOORInfo(self)
222
223
224
225
226 class wxSplitterScrolledWindowPtr(wxScrolledWindowPtr):
227 def __init__(self,this):
228 self.this = this
229 self.thisown = 0
230 def __repr__(self):
231 return "<C wxSplitterScrolledWindow instance at %s>" % (self.this,)
232 class wxSplitterScrolledWindow(wxSplitterScrolledWindowPtr):
233 def __init__(self,*_args,**_kwargs):
234 self.this = apply(gizmosc.new_wxSplitterScrolledWindow,_args,_kwargs)
235 self.thisown = 1
236 self._setOORInfo(self)
237
238
239
240
241 class wxLEDNumberCtrlPtr(wxControlPtr):
242 def __init__(self,this):
243 self.this = this
244 self.thisown = 0
245 def Create(self, *_args, **_kwargs):
246 val = apply(gizmosc.wxLEDNumberCtrl_Create,(self,) + _args, _kwargs)
247 return val
248 def GetAlignment(self, *_args, **_kwargs):
249 val = apply(gizmosc.wxLEDNumberCtrl_GetAlignment,(self,) + _args, _kwargs)
250 return val
251 def GetDrawFaded(self, *_args, **_kwargs):
252 val = apply(gizmosc.wxLEDNumberCtrl_GetDrawFaded,(self,) + _args, _kwargs)
253 return val
254 def GetValue(self, *_args, **_kwargs):
255 val = apply(gizmosc.wxLEDNumberCtrl_GetValue,(self,) + _args, _kwargs)
256 return val
257 def SetAlignment(self, *_args, **_kwargs):
258 val = apply(gizmosc.wxLEDNumberCtrl_SetAlignment,(self,) + _args, _kwargs)
259 return val
260 def SetDrawFaded(self, *_args, **_kwargs):
261 val = apply(gizmosc.wxLEDNumberCtrl_SetDrawFaded,(self,) + _args, _kwargs)
262 return val
263 def SetValue(self, *_args, **_kwargs):
264 val = apply(gizmosc.wxLEDNumberCtrl_SetValue,(self,) + _args, _kwargs)
265 return val
266 def __repr__(self):
267 return "<C wxLEDNumberCtrl instance at %s>" % (self.this,)
268 class wxLEDNumberCtrl(wxLEDNumberCtrlPtr):
269 def __init__(self,*_args,**_kwargs):
270 self.this = apply(gizmosc.new_wxLEDNumberCtrl,_args,_kwargs)
271 self.thisown = 1
272 self._setOORInfo(self)
273
274
275
276 def wxPreLEDNumberCtrl(*_args,**_kwargs):
277 val = wxLEDNumberCtrlPtr(apply(gizmosc.new_wxPreLEDNumberCtrl,_args,_kwargs))
278 val.thisown = 1
279 val._setOORInfo(val)
280 return val
281
282
283
284
285 #-------------- FUNCTION WRAPPERS ------------------
286
287
288
289 #-------------- VARIABLE WRAPPERS ------------------
290
291 wxEVT_DYNAMIC_SASH_SPLIT = gizmosc.wxEVT_DYNAMIC_SASH_SPLIT
292 wxEVT_DYNAMIC_SASH_UNIFY = gizmosc.wxEVT_DYNAMIC_SASH_UNIFY
293 wxDS_MANAGE_SCROLLBARS = gizmosc.wxDS_MANAGE_SCROLLBARS
294 wxDS_DRAG_CORNER = gizmosc.wxDS_DRAG_CORNER
295 wxEL_ALLOW_NEW = gizmosc.wxEL_ALLOW_NEW
296 wxEL_ALLOW_EDIT = gizmosc.wxEL_ALLOW_EDIT
297 wxEL_ALLOW_DELETE = gizmosc.wxEL_ALLOW_DELETE
298 wxLED_ALIGN_LEFT = gizmosc.wxLED_ALIGN_LEFT
299 wxLED_ALIGN_RIGHT = gizmosc.wxLED_ALIGN_RIGHT
300 wxLED_ALIGN_CENTER = gizmosc.wxLED_ALIGN_CENTER
301 wxLED_ALIGN_MASK = gizmosc.wxLED_ALIGN_MASK
302 wxLED_DRAW_FADED = gizmosc.wxLED_DRAW_FADED
303
304
305 #-------------- USER INCLUDE -----------------------
306
307 # Stuff these names into the wx namespace so wxPyConstructObject can find them
308
309 wx.wxDynamicSashSplitEventPtr = wxDynamicSashSplitEventPtr
310 wx.wxDynamicSashUnifyEventPtr = wxDynamicSashUnifyEventPtr
311 wx.wxDynamicSashWindowPtr = wxDynamicSashWindowPtr
312
313 wx.wxEditableListBoxPtr = wxEditableListBoxPtr
314
315 wx.wxRemotelyScrolledTreeCtrlPtr = wxRemotelyScrolledTreeCtrlPtr
316 wx.wxTreeCompanionWindowPtr = wxTreeCompanionWindowPtr
317 wx.wxThinSplitterWindowPtr = wxThinSplitterWindowPtr
318 wx.wxSplitterScrolledWindowPtr = wxSplitterScrolledWindowPtr