]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/gizmos/gizmos.py
Added component control accessors to wxEditableListBox
[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 if val: val = wxListCtrlPtr(val)
125 return val
126 def GetDelButton(self, *_args, **_kwargs):
127 val = apply(gizmosc.wxEditableListBox_GetDelButton,(self,) + _args, _kwargs)
128 if val: val = wxBitmapButtonPtr(val)
129 return val
130 def GetNewButton(self, *_args, **_kwargs):
131 val = apply(gizmosc.wxEditableListBox_GetNewButton,(self,) + _args, _kwargs)
132 if val: val = wxBitmapButtonPtr(val)
133 return val
134 def GetUpButton(self, *_args, **_kwargs):
135 val = apply(gizmosc.wxEditableListBox_GetUpButton,(self,) + _args, _kwargs)
136 if val: val = wxBitmapButtonPtr(val)
137 return val
138 def GetDownButton(self, *_args, **_kwargs):
139 val = apply(gizmosc.wxEditableListBox_GetDownButton,(self,) + _args, _kwargs)
140 if val: val = wxBitmapButtonPtr(val)
141 return val
142 def GetEditButton(self, *_args, **_kwargs):
143 val = apply(gizmosc.wxEditableListBox_GetEditButton,(self,) + _args, _kwargs)
144 if val: val = wxBitmapButtonPtr(val)
145 return val
146 def __repr__(self):
147 return "<C wxEditableListBox instance at %s>" % (self.this,)
148 class wxEditableListBox(wxEditableListBoxPtr):
149 def __init__(self,*_args,**_kwargs):
150 self.this = apply(gizmosc.new_wxEditableListBox,_args,_kwargs)
151 self.thisown = 1
152 self._setOORInfo(self)
153
154
155
156
157 class wxRemotelyScrolledTreeCtrlPtr(wxTreeCtrlPtr):
158 def __init__(self,this):
159 self.this = this
160 self.thisown = 0
161 def HideVScrollbar(self, *_args, **_kwargs):
162 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_HideVScrollbar,(self,) + _args, _kwargs)
163 return val
164 def AdjustRemoteScrollbars(self, *_args, **_kwargs):
165 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars,(self,) + _args, _kwargs)
166 return val
167 def GetScrolledWindow(self, *_args, **_kwargs):
168 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetScrolledWindow,(self,) + _args, _kwargs)
169 if val: val = wxScrolledWindowPtr(val)
170 return val
171 def ScrollToLine(self, *_args, **_kwargs):
172 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_ScrollToLine,(self,) + _args, _kwargs)
173 return val
174 def SetCompanionWindow(self, *_args, **_kwargs):
175 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_SetCompanionWindow,(self,) + _args, _kwargs)
176 return val
177 def GetCompanionWindow(self, *_args, **_kwargs):
178 val = apply(gizmosc.wxRemotelyScrolledTreeCtrl_GetCompanionWindow,(self,) + _args, _kwargs)
179 return val
180 def __repr__(self):
181 return "<C wxRemotelyScrolledTreeCtrl instance at %s>" % (self.this,)
182 class wxRemotelyScrolledTreeCtrl(wxRemotelyScrolledTreeCtrlPtr):
183 def __init__(self,*_args,**_kwargs):
184 self.this = apply(gizmosc.new_wxRemotelyScrolledTreeCtrl,_args,_kwargs)
185 self.thisown = 1
186 self._setOORInfo(self)
187
188
189
190
191 class wxTreeCompanionWindowPtr(wxWindowPtr):
192 def __init__(self,this):
193 self.this = this
194 self.thisown = 0
195 def _setCallbackInfo(self, *_args, **_kwargs):
196 val = apply(gizmosc.wxTreeCompanionWindow__setCallbackInfo,(self,) + _args, _kwargs)
197 return val
198 def GetTreeCtrl(self, *_args, **_kwargs):
199 val = apply(gizmosc.wxTreeCompanionWindow_GetTreeCtrl,(self,) + _args, _kwargs)
200 if val: val = wxRemotelyScrolledTreeCtrlPtr(val)
201 return val
202 def SetTreeCtrl(self, *_args, **_kwargs):
203 val = apply(gizmosc.wxTreeCompanionWindow_SetTreeCtrl,(self,) + _args, _kwargs)
204 return val
205 def __repr__(self):
206 return "<C wxTreeCompanionWindow instance at %s>" % (self.this,)
207 class wxTreeCompanionWindow(wxTreeCompanionWindowPtr):
208 def __init__(self,*_args,**_kwargs):
209 self.this = apply(gizmosc.new_wxTreeCompanionWindow,_args,_kwargs)
210 self.thisown = 1
211 self._setCallbackInfo(self, wxTreeCompanionWindow)
212 self._setOORInfo(self)
213
214
215
216
217 class wxThinSplitterWindowPtr(wxSplitterWindowPtr):
218 def __init__(self,this):
219 self.this = this
220 self.thisown = 0
221 def __repr__(self):
222 return "<C wxThinSplitterWindow instance at %s>" % (self.this,)
223 class wxThinSplitterWindow(wxThinSplitterWindowPtr):
224 def __init__(self,*_args,**_kwargs):
225 self.this = apply(gizmosc.new_wxThinSplitterWindow,_args,_kwargs)
226 self.thisown = 1
227 self._setOORInfo(self)
228
229
230
231
232 class wxSplitterScrolledWindowPtr(wxScrolledWindowPtr):
233 def __init__(self,this):
234 self.this = this
235 self.thisown = 0
236 def __repr__(self):
237 return "<C wxSplitterScrolledWindow instance at %s>" % (self.this,)
238 class wxSplitterScrolledWindow(wxSplitterScrolledWindowPtr):
239 def __init__(self,*_args,**_kwargs):
240 self.this = apply(gizmosc.new_wxSplitterScrolledWindow,_args,_kwargs)
241 self.thisown = 1
242 self._setOORInfo(self)
243
244
245
246
247 class wxLEDNumberCtrlPtr(wxControlPtr):
248 def __init__(self,this):
249 self.this = this
250 self.thisown = 0
251 def Create(self, *_args, **_kwargs):
252 val = apply(gizmosc.wxLEDNumberCtrl_Create,(self,) + _args, _kwargs)
253 return val
254 def GetAlignment(self, *_args, **_kwargs):
255 val = apply(gizmosc.wxLEDNumberCtrl_GetAlignment,(self,) + _args, _kwargs)
256 return val
257 def GetDrawFaded(self, *_args, **_kwargs):
258 val = apply(gizmosc.wxLEDNumberCtrl_GetDrawFaded,(self,) + _args, _kwargs)
259 return val
260 def GetValue(self, *_args, **_kwargs):
261 val = apply(gizmosc.wxLEDNumberCtrl_GetValue,(self,) + _args, _kwargs)
262 return val
263 def SetAlignment(self, *_args, **_kwargs):
264 val = apply(gizmosc.wxLEDNumberCtrl_SetAlignment,(self,) + _args, _kwargs)
265 return val
266 def SetDrawFaded(self, *_args, **_kwargs):
267 val = apply(gizmosc.wxLEDNumberCtrl_SetDrawFaded,(self,) + _args, _kwargs)
268 return val
269 def SetValue(self, *_args, **_kwargs):
270 val = apply(gizmosc.wxLEDNumberCtrl_SetValue,(self,) + _args, _kwargs)
271 return val
272 def __repr__(self):
273 return "<C wxLEDNumberCtrl instance at %s>" % (self.this,)
274 class wxLEDNumberCtrl(wxLEDNumberCtrlPtr):
275 def __init__(self,*_args,**_kwargs):
276 self.this = apply(gizmosc.new_wxLEDNumberCtrl,_args,_kwargs)
277 self.thisown = 1
278 self._setOORInfo(self)
279
280
281
282 def wxPreLEDNumberCtrl(*_args,**_kwargs):
283 val = wxLEDNumberCtrlPtr(apply(gizmosc.new_wxPreLEDNumberCtrl,_args,_kwargs))
284 val.thisown = 1
285 val._setOORInfo(val)
286 return val
287
288
289
290
291 #-------------- FUNCTION WRAPPERS ------------------
292
293
294
295 #-------------- VARIABLE WRAPPERS ------------------
296
297 wxEVT_DYNAMIC_SASH_SPLIT = gizmosc.wxEVT_DYNAMIC_SASH_SPLIT
298 wxEVT_DYNAMIC_SASH_UNIFY = gizmosc.wxEVT_DYNAMIC_SASH_UNIFY
299 wxDS_MANAGE_SCROLLBARS = gizmosc.wxDS_MANAGE_SCROLLBARS
300 wxDS_DRAG_CORNER = gizmosc.wxDS_DRAG_CORNER
301 wxEL_ALLOW_NEW = gizmosc.wxEL_ALLOW_NEW
302 wxEL_ALLOW_EDIT = gizmosc.wxEL_ALLOW_EDIT
303 wxEL_ALLOW_DELETE = gizmosc.wxEL_ALLOW_DELETE
304 wxLED_ALIGN_LEFT = gizmosc.wxLED_ALIGN_LEFT
305 wxLED_ALIGN_RIGHT = gizmosc.wxLED_ALIGN_RIGHT
306 wxLED_ALIGN_CENTER = gizmosc.wxLED_ALIGN_CENTER
307 wxLED_ALIGN_MASK = gizmosc.wxLED_ALIGN_MASK
308 wxLED_DRAW_FADED = gizmosc.wxLED_DRAW_FADED
309
310
311 #-------------- USER INCLUDE -----------------------
312
313 # Stuff these names into the wx namespace so wxPyConstructObject can find them
314
315 wx.wxDynamicSashSplitEventPtr = wxDynamicSashSplitEventPtr
316 wx.wxDynamicSashUnifyEventPtr = wxDynamicSashUnifyEventPtr
317 wx.wxDynamicSashWindowPtr = wxDynamicSashWindowPtr
318
319 wx.wxEditableListBoxPtr = wxEditableListBoxPtr
320
321 wx.wxRemotelyScrolledTreeCtrlPtr = wxRemotelyScrolledTreeCtrlPtr
322 wx.wxTreeCompanionWindowPtr = wxTreeCompanionWindowPtr
323 wx.wxThinSplitterWindowPtr = wxThinSplitterWindowPtr
324 wx.wxSplitterScrolledWindowPtr = wxSplitterScrolledWindowPtr