]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/gizmos/gizmos.py
Attempted to add the SplitTree gizmo classes, but it is not working on
[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
222
223 #-------------- FUNCTION WRAPPERS ------------------
224
225
226
227 #-------------- VARIABLE WRAPPERS ------------------
228
229 wxEVT_DYNAMIC_SASH_SPLIT = gizmosc.wxEVT_DYNAMIC_SASH_SPLIT
230 wxEVT_DYNAMIC_SASH_UNIFY = gizmosc.wxEVT_DYNAMIC_SASH_UNIFY
231 wxDS_MANAGE_SCROLLBARS = gizmosc.wxDS_MANAGE_SCROLLBARS
232 wxDS_DRAG_CORNER = gizmosc.wxDS_DRAG_CORNER
233
234
235 #-------------- USER INCLUDE -----------------------
236
237 # Stuff these names into the wx namespace so wxPyConstructObject can find them
238
239 wx.wxDynamicSashSplitEventPtr = wxDynamicSashSplitEventPtr
240 wx.wxDynamicSashUnifyEventPtr = wxDynamicSashUnifyEventPtr
241 wx.wxDynamicSashWindowPtr = wxDynamicSashWindowPtr
242
243 wx.wxEditableListBoxPtr = wxEditableListBoxPtr
244
245 wx.wxRemotelyScrolledTreeCtrlPtr = wxRemotelyScrolledTreeCtrlPtr
246 wx.wxTreeCompanionWindowPtr = wxTreeCompanionWindowPtr
247 wx.wxThinSplitterWindowPtr = wxThinSplitterWindowPtr
248 wx.wxSplitterScrolledWindowPtr = wxSplitterScrolledWindowPtr