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