]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/stattool.py
Commented out constructor causing ambiguity
[wxWidgets.git] / utils / wxPython / src / msw / stattool.py
CommitLineData
9c039d08
RD
1# This file was created automatically by SWIG.
2import stattoolc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
10from controls import *
11
12from events import *
13class wxStatusBarPtr(wxWindowPtr):
14 def __init__(self,this):
15 self.this = this
16 self.thisown = 0
17 def GetFieldRect(self,arg0):
18 val = stattoolc.wxStatusBar_GetFieldRect(self.this,arg0)
19 val = wxRectPtr(val)
20 val.thisown = 1
21 return val
22 def GetFieldsCount(self):
23 val = stattoolc.wxStatusBar_GetFieldsCount(self.this)
24 return val
25 def GetStatusText(self,*args):
26 val = apply(stattoolc.wxStatusBar_GetStatusText,(self.this,)+args)
27 return val
28 def DrawField(self,arg0,arg1):
29 val = stattoolc.wxStatusBar_DrawField(self.this,arg0.this,arg1)
30 return val
31 def DrawFieldText(self,arg0,arg1):
32 val = stattoolc.wxStatusBar_DrawFieldText(self.this,arg0.this,arg1)
33 return val
34 def InitColours(self):
35 val = stattoolc.wxStatusBar_InitColours(self.this)
36 return val
37 def SetFieldsCount(self,*args):
38 val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self.this,)+args)
39 return val
40 def SetStatusText(self,arg0,*args):
41 val = apply(stattoolc.wxStatusBar_SetStatusText,(self.this,arg0,)+args)
42 return val
43 def SetStatusWidths(self,arg0,*args):
44 val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self.this,arg0,)+args)
45 return val
46 def __repr__(self):
47 return "<C wxStatusBar instance>"
48class wxStatusBar(wxStatusBarPtr):
49 def __init__(self,arg0,arg1,*args) :
50 argl = map(None,args)
51 try: argl[0] = argl[0].this
52 except: pass
53 try: argl[1] = argl[1].this
54 except: pass
55 args = tuple(argl)
56 self.this = apply(stattoolc.new_wxStatusBar,(arg0.this,arg1,)+args)
57 self.thisown = 1
58 wxp._StdWindowCallbacks(self)
59
60
61
62
63class wxToolBarToolPtr :
64 def __init__(self,this):
65 self.this = this
66 self.thisown = 0
67 def __del__(self):
68 if self.thisown == 1 :
69 stattoolc.delete_wxToolBarTool(self.this)
70 def SetSize(self,arg0,arg1):
71 val = stattoolc.wxToolBarTool_SetSize(self.this,arg0,arg1)
72 return val
73 def GetWidth(self):
74 val = stattoolc.wxToolBarTool_GetWidth(self.this)
75 return val
76 def GetHeight(self):
77 val = stattoolc.wxToolBarTool_GetHeight(self.this)
78 return val
79 def __setattr__(self,name,value):
80 if name == "m_toolStyle" :
81 stattoolc.wxToolBarTool_m_toolStyle_set(self.this,value)
82 return
83 if name == "m_clientData" :
84 stattoolc.wxToolBarTool_m_clientData_set(self.this,value)
85 return
86 if name == "m_index" :
87 stattoolc.wxToolBarTool_m_index_set(self.this,value)
88 return
89 if name == "m_x" :
90 stattoolc.wxToolBarTool_m_x_set(self.this,value)
91 return
92 if name == "m_y" :
93 stattoolc.wxToolBarTool_m_y_set(self.this,value)
94 return
95 if name == "m_width" :
96 stattoolc.wxToolBarTool_m_width_set(self.this,value)
97 return
98 if name == "m_height" :
99 stattoolc.wxToolBarTool_m_height_set(self.this,value)
100 return
101 if name == "m_toggleState" :
102 stattoolc.wxToolBarTool_m_toggleState_set(self.this,value)
103 return
104 if name == "m_isToggle" :
105 stattoolc.wxToolBarTool_m_isToggle_set(self.this,value)
106 return
107 if name == "m_deleteSecondBitmap" :
108 stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self.this,value)
109 return
110 if name == "m_enabled" :
111 stattoolc.wxToolBarTool_m_enabled_set(self.this,value)
112 return
113 if name == "m_bitmap1" :
114 stattoolc.wxToolBarTool_m_bitmap1_set(self.this,value.this)
115 return
116 if name == "m_bitmap2" :
117 stattoolc.wxToolBarTool_m_bitmap2_set(self.this,value.this)
118 return
119 if name == "m_isMenuCommand" :
120 stattoolc.wxToolBarTool_m_isMenuCommand_set(self.this,value)
121 return
122 if name == "m_shortHelpString" :
123 stattoolc.wxToolBarTool_m_shortHelpString_set(self.this,value)
124 return
125 if name == "m_longHelpString" :
126 stattoolc.wxToolBarTool_m_longHelpString_set(self.this,value)
127 return
128 self.__dict__[name] = value
129 def __getattr__(self,name):
130 if name == "m_toolStyle" :
131 return stattoolc.wxToolBarTool_m_toolStyle_get(self.this)
132 if name == "m_clientData" :
133 return stattoolc.wxToolBarTool_m_clientData_get(self.this)
134 if name == "m_index" :
135 return stattoolc.wxToolBarTool_m_index_get(self.this)
136 if name == "m_x" :
137 return stattoolc.wxToolBarTool_m_x_get(self.this)
138 if name == "m_y" :
139 return stattoolc.wxToolBarTool_m_y_get(self.this)
140 if name == "m_width" :
141 return stattoolc.wxToolBarTool_m_width_get(self.this)
142 if name == "m_height" :
143 return stattoolc.wxToolBarTool_m_height_get(self.this)
144 if name == "m_toggleState" :
145 return stattoolc.wxToolBarTool_m_toggleState_get(self.this)
146 if name == "m_isToggle" :
147 return stattoolc.wxToolBarTool_m_isToggle_get(self.this)
148 if name == "m_deleteSecondBitmap" :
149 return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self.this)
150 if name == "m_enabled" :
151 return stattoolc.wxToolBarTool_m_enabled_get(self.this)
152 if name == "m_bitmap1" :
153 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self.this))
154 if name == "m_bitmap2" :
155 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self.this))
156 if name == "m_isMenuCommand" :
157 return stattoolc.wxToolBarTool_m_isMenuCommand_get(self.this)
158 if name == "m_shortHelpString" :
159 return stattoolc.wxToolBarTool_m_shortHelpString_get(self.this)
160 if name == "m_longHelpString" :
161 return stattoolc.wxToolBarTool_m_longHelpString_get(self.this)
162 raise AttributeError,name
163 def __repr__(self):
164 return "<C wxToolBarTool instance>"
165class wxToolBarTool(wxToolBarToolPtr):
166 def __init__(self) :
167 self.this = stattoolc.new_wxToolBarTool()
168 self.thisown = 1
169
170
171
172
173class wxToolBarBasePtr(wxControlPtr):
174 def __init__(self,this):
175 self.this = this
176 self.thisown = 0
177 def AddSeparator(self):
178 val = stattoolc.wxToolBarBase_AddSeparator(self.this)
179 return val
180 def AddTool(self,arg0,arg1,*args):
181 argl = map(None,args)
182 try: argl[0] = argl[0].this
183 except: pass
184 args = tuple(argl)
185 val = apply(stattoolc.wxToolBarBase_AddTool,(self.this,arg0,arg1.this,)+args)
186 val = wxToolBarToolPtr(val)
187 return val
188 def EnableTool(self,arg0,arg1):
189 val = stattoolc.wxToolBarBase_EnableTool(self.this,arg0,arg1)
190 return val
191 def FindToolForPosition(self,arg0,arg1):
192 val = stattoolc.wxToolBarBase_FindToolForPosition(self.this,arg0,arg1)
193 val = wxToolBarToolPtr(val)
194 return val
195 def GetToolSize(self):
196 val = stattoolc.wxToolBarBase_GetToolSize(self.this)
197 val = wxSizePtr(val)
198 val.thisown = 1
199 return val
200 def GetToolBitmapSize(self):
201 val = stattoolc.wxToolBarBase_GetToolBitmapSize(self.this)
202 val = wxSizePtr(val)
203 val.thisown = 1
204 return val
205 def GetMaxSize(self):
206 val = stattoolc.wxToolBarBase_GetMaxSize(self.this)
207 val = wxSizePtr(val)
208 val.thisown = 1
209 return val
210 def GetToolEnabled(self,arg0):
211 val = stattoolc.wxToolBarBase_GetToolEnabled(self.this,arg0)
212 return val
213 def GetToolLongHelp(self,arg0):
214 val = stattoolc.wxToolBarBase_GetToolLongHelp(self.this,arg0)
215 return val
216 def GetToolPacking(self):
217 val = stattoolc.wxToolBarBase_GetToolPacking(self.this)
218 return val
219 def GetToolSeparation(self):
220 val = stattoolc.wxToolBarBase_GetToolSeparation(self.this)
221 return val
222 def GetToolShortHelp(self,arg0):
223 val = stattoolc.wxToolBarBase_GetToolShortHelp(self.this,arg0)
224 return val
225 def GetToolState(self,arg0):
226 val = stattoolc.wxToolBarBase_GetToolState(self.this,arg0)
227 return val
228 def Realize(self):
229 val = stattoolc.wxToolBarBase_Realize(self.this)
230 return val
231 def SetToolBitmapSize(self,arg0):
232 val = stattoolc.wxToolBarBase_SetToolBitmapSize(self.this,arg0.this)
233 return val
234 def SetMargins(self,arg0):
235 val = stattoolc.wxToolBarBase_SetMargins(self.this,arg0.this)
236 return val
237 def SetToolLongHelp(self,arg0,arg1):
238 val = stattoolc.wxToolBarBase_SetToolLongHelp(self.this,arg0,arg1)
239 return val
240 def SetToolPacking(self,arg0):
241 val = stattoolc.wxToolBarBase_SetToolPacking(self.this,arg0)
242 return val
243 def SetToolShortHelp(self,arg0,arg1):
244 val = stattoolc.wxToolBarBase_SetToolShortHelp(self.this,arg0,arg1)
245 return val
246 def SetToolSeparation(self,arg0):
247 val = stattoolc.wxToolBarBase_SetToolSeparation(self.this,arg0)
248 return val
249 def ToggleTool(self,arg0,arg1):
250 val = stattoolc.wxToolBarBase_ToggleTool(self.this,arg0,arg1)
251 return val
252 def __repr__(self):
253 return "<C wxToolBarBase instance>"
254class wxToolBarBase(wxToolBarBasePtr):
255 def __init__(self,this):
256 self.this = this
257
258
259
260
261class wxToolBarPtr(wxToolBarBasePtr):
262 def __init__(self,this):
263 self.this = this
264 self.thisown = 0
265 def __repr__(self):
266 return "<C wxToolBar instance>"
267class wxToolBar(wxToolBarPtr):
268 def __init__(self,arg0,arg1,*args) :
269 argl = map(None,args)
270 try: argl[0] = argl[0].this
271 except: pass
272 try: argl[1] = argl[1].this
273 except: pass
274 args = tuple(argl)
275 self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args)
276 self.thisown = 1
277 wxp._StdWindowCallbacks(self)
278
279
280
281
282class wxToolBarSimplePtr(wxToolBarBasePtr):
283 def __init__(self,this):
284 self.this = this
285 self.thisown = 0
286 def __repr__(self):
287 return "<C wxToolBarSimple instance>"
288class wxToolBarSimple(wxToolBarSimplePtr):
289 def __init__(self,arg0,arg1,*args) :
290 argl = map(None,args)
291 try: argl[0] = argl[0].this
292 except: pass
293 try: argl[1] = argl[1].this
294 except: pass
295 args = tuple(argl)
296 self.this = apply(stattoolc.new_wxToolBarSimple,(arg0.this,arg1,)+args)
297 self.thisown = 1
298 wxp._StdWindowCallbacks(self)
299
300
301
302
303
304
305#-------------- FUNCTION WRAPPERS ------------------
306
307
308
309#-------------- VARIABLE WRAPPERS ------------------
310