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