]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/stattool.py
Better dependency checking
[wxWidgets.git] / utils / wxPython / src / msw / stattool.py
1 # This file was created automatically by SWIG.
2 import stattoolc
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from controls import *
11
12 from events import *
13 import wx
14 class wxStatusBarPtr(wxWindowPtr):
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def GetFieldRect(self, *_args, **_kwargs):
19 val = apply(stattoolc.wxStatusBar_GetFieldRect,(self,) + _args, _kwargs)
20 if val: val = wxRectPtr(val) ; val.thisown = 1
21 return val
22 def GetFieldsCount(self, *_args, **_kwargs):
23 val = apply(stattoolc.wxStatusBar_GetFieldsCount,(self,) + _args, _kwargs)
24 return val
25 def GetStatusText(self, *_args, **_kwargs):
26 val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
27 return val
28 def DrawField(self, *_args, **_kwargs):
29 val = apply(stattoolc.wxStatusBar_DrawField,(self,) + _args, _kwargs)
30 return val
31 def DrawFieldText(self, *_args, **_kwargs):
32 val = apply(stattoolc.wxStatusBar_DrawFieldText,(self,) + _args, _kwargs)
33 return val
34 def InitColours(self, *_args, **_kwargs):
35 val = apply(stattoolc.wxStatusBar_InitColours,(self,) + _args, _kwargs)
36 return val
37 def SetFieldsCount(self, *_args, **_kwargs):
38 val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
39 return val
40 def SetStatusText(self, *_args, **_kwargs):
41 val = apply(stattoolc.wxStatusBar_SetStatusText,(self,) + _args, _kwargs)
42 return val
43 def SetStatusWidths(self, *_args, **_kwargs):
44 val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
45 return val
46 def __repr__(self):
47 return "<C wxStatusBar instance at %s>" % (self.this,)
48 class wxStatusBar(wxStatusBarPtr):
49 def __init__(self,*_args,**_kwargs):
50 self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs)
51 self.thisown = 1
52 wx._StdWindowCallbacks(self)
53
54
55
56
57 class wxToolBarToolPtr :
58 def __init__(self,this):
59 self.this = this
60 self.thisown = 0
61 def __del__(self,stattoolc=stattoolc):
62 if self.thisown == 1 :
63 stattoolc.delete_wxToolBarTool(self)
64 def SetSize(self, *_args, **_kwargs):
65 val = apply(stattoolc.wxToolBarTool_SetSize,(self,) + _args, _kwargs)
66 return val
67 def GetWidth(self, *_args, **_kwargs):
68 val = apply(stattoolc.wxToolBarTool_GetWidth,(self,) + _args, _kwargs)
69 return val
70 def GetHeight(self, *_args, **_kwargs):
71 val = apply(stattoolc.wxToolBarTool_GetHeight,(self,) + _args, _kwargs)
72 return val
73 def __setattr__(self,name,value):
74 if name == "m_toolStyle" :
75 stattoolc.wxToolBarTool_m_toolStyle_set(self,value)
76 return
77 if name == "m_clientData" :
78 stattoolc.wxToolBarTool_m_clientData_set(self,value)
79 return
80 if name == "m_index" :
81 stattoolc.wxToolBarTool_m_index_set(self,value)
82 return
83 if name == "m_x" :
84 stattoolc.wxToolBarTool_m_x_set(self,value)
85 return
86 if name == "m_y" :
87 stattoolc.wxToolBarTool_m_y_set(self,value)
88 return
89 if name == "m_width" :
90 stattoolc.wxToolBarTool_m_width_set(self,value)
91 return
92 if name == "m_height" :
93 stattoolc.wxToolBarTool_m_height_set(self,value)
94 return
95 if name == "m_toggleState" :
96 stattoolc.wxToolBarTool_m_toggleState_set(self,value)
97 return
98 if name == "m_isToggle" :
99 stattoolc.wxToolBarTool_m_isToggle_set(self,value)
100 return
101 if name == "m_deleteSecondBitmap" :
102 stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self,value)
103 return
104 if name == "m_enabled" :
105 stattoolc.wxToolBarTool_m_enabled_set(self,value)
106 return
107 if name == "m_bitmap1" :
108 stattoolc.wxToolBarTool_m_bitmap1_set(self,value.this)
109 return
110 if name == "m_bitmap2" :
111 stattoolc.wxToolBarTool_m_bitmap2_set(self,value.this)
112 return
113 if name == "m_isMenuCommand" :
114 stattoolc.wxToolBarTool_m_isMenuCommand_set(self,value)
115 return
116 if name == "m_shortHelpString" :
117 stattoolc.wxToolBarTool_m_shortHelpString_set(self,value)
118 return
119 if name == "m_longHelpString" :
120 stattoolc.wxToolBarTool_m_longHelpString_set(self,value)
121 return
122 self.__dict__[name] = value
123 def __getattr__(self,name):
124 if name == "m_toolStyle" :
125 return stattoolc.wxToolBarTool_m_toolStyle_get(self)
126 if name == "m_clientData" :
127 return stattoolc.wxToolBarTool_m_clientData_get(self)
128 if name == "m_index" :
129 return stattoolc.wxToolBarTool_m_index_get(self)
130 if name == "m_x" :
131 return stattoolc.wxToolBarTool_m_x_get(self)
132 if name == "m_y" :
133 return stattoolc.wxToolBarTool_m_y_get(self)
134 if name == "m_width" :
135 return stattoolc.wxToolBarTool_m_width_get(self)
136 if name == "m_height" :
137 return stattoolc.wxToolBarTool_m_height_get(self)
138 if name == "m_toggleState" :
139 return stattoolc.wxToolBarTool_m_toggleState_get(self)
140 if name == "m_isToggle" :
141 return stattoolc.wxToolBarTool_m_isToggle_get(self)
142 if name == "m_deleteSecondBitmap" :
143 return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self)
144 if name == "m_enabled" :
145 return stattoolc.wxToolBarTool_m_enabled_get(self)
146 if name == "m_bitmap1" :
147 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self))
148 if name == "m_bitmap2" :
149 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self))
150 if name == "m_isMenuCommand" :
151 return stattoolc.wxToolBarTool_m_isMenuCommand_get(self)
152 if name == "m_shortHelpString" :
153 return stattoolc.wxToolBarTool_m_shortHelpString_get(self)
154 if name == "m_longHelpString" :
155 return stattoolc.wxToolBarTool_m_longHelpString_get(self)
156 raise AttributeError,name
157 def __repr__(self):
158 return "<C wxToolBarTool instance at %s>" % (self.this,)
159 class wxToolBarTool(wxToolBarToolPtr):
160 def __init__(self,*_args,**_kwargs):
161 self.this = apply(stattoolc.new_wxToolBarTool,_args,_kwargs)
162 self.thisown = 1
163
164
165
166
167 class wxToolBarPtr(wxControlPtr):
168 def __init__(self,this):
169 self.this = this
170 self.thisown = 0
171 def AddSeparator(self, *_args, **_kwargs):
172 val = apply(stattoolc.wxToolBar_AddSeparator,(self,) + _args, _kwargs)
173 return val
174 def AddTool(self, *_args, **_kwargs):
175 val = apply(stattoolc.wxToolBar_AddTool,(self,) + _args, _kwargs)
176 if val: val = wxToolBarToolPtr(val)
177 return val
178 def AddSimpleTool(self, *_args, **_kwargs):
179 val = apply(stattoolc.wxToolBar_AddSimpleTool,(self,) + _args, _kwargs)
180 if val: val = wxToolBarToolPtr(val)
181 return val
182 def EnableTool(self, *_args, **_kwargs):
183 val = apply(stattoolc.wxToolBar_EnableTool,(self,) + _args, _kwargs)
184 return val
185 def FindToolForPosition(self, *_args, **_kwargs):
186 val = apply(stattoolc.wxToolBar_FindToolForPosition,(self,) + _args, _kwargs)
187 if val: val = wxToolBarToolPtr(val)
188 return val
189 def GetToolSize(self, *_args, **_kwargs):
190 val = apply(stattoolc.wxToolBar_GetToolSize,(self,) + _args, _kwargs)
191 if val: val = wxSizePtr(val) ; val.thisown = 1
192 return val
193 def GetToolBitmapSize(self, *_args, **_kwargs):
194 val = apply(stattoolc.wxToolBar_GetToolBitmapSize,(self,) + _args, _kwargs)
195 if val: val = wxSizePtr(val) ; val.thisown = 1
196 return val
197 def SetToolBitmapSize(self, *_args, **_kwargs):
198 val = apply(stattoolc.wxToolBar_SetToolBitmapSize,(self,) + _args, _kwargs)
199 return val
200 def GetMaxSize(self, *_args, **_kwargs):
201 val = apply(stattoolc.wxToolBar_GetMaxSize,(self,) + _args, _kwargs)
202 if val: val = wxSizePtr(val) ; val.thisown = 1
203 return val
204 def GetToolEnabled(self, *_args, **_kwargs):
205 val = apply(stattoolc.wxToolBar_GetToolEnabled,(self,) + _args, _kwargs)
206 return val
207 def GetToolLongHelp(self, *_args, **_kwargs):
208 val = apply(stattoolc.wxToolBar_GetToolLongHelp,(self,) + _args, _kwargs)
209 return val
210 def GetToolPacking(self, *_args, **_kwargs):
211 val = apply(stattoolc.wxToolBar_GetToolPacking,(self,) + _args, _kwargs)
212 return val
213 def GetToolSeparation(self, *_args, **_kwargs):
214 val = apply(stattoolc.wxToolBar_GetToolSeparation,(self,) + _args, _kwargs)
215 return val
216 def GetToolShortHelp(self, *_args, **_kwargs):
217 val = apply(stattoolc.wxToolBar_GetToolShortHelp,(self,) + _args, _kwargs)
218 return val
219 def GetToolState(self, *_args, **_kwargs):
220 val = apply(stattoolc.wxToolBar_GetToolState,(self,) + _args, _kwargs)
221 return val
222 def Realize(self, *_args, **_kwargs):
223 val = apply(stattoolc.wxToolBar_Realize,(self,) + _args, _kwargs)
224 return val
225 def SetToolLongHelp(self, *_args, **_kwargs):
226 val = apply(stattoolc.wxToolBar_SetToolLongHelp,(self,) + _args, _kwargs)
227 return val
228 def SetToolShortHelp(self, *_args, **_kwargs):
229 val = apply(stattoolc.wxToolBar_SetToolShortHelp,(self,) + _args, _kwargs)
230 return val
231 def SetMargins(self, *_args, **_kwargs):
232 val = apply(stattoolc.wxToolBar_SetMargins,(self,) + _args, _kwargs)
233 return val
234 def SetToolPacking(self, *_args, **_kwargs):
235 val = apply(stattoolc.wxToolBar_SetToolPacking,(self,) + _args, _kwargs)
236 return val
237 def SetToolSeparation(self, *_args, **_kwargs):
238 val = apply(stattoolc.wxToolBar_SetToolSeparation,(self,) + _args, _kwargs)
239 return val
240 def ToggleTool(self, *_args, **_kwargs):
241 val = apply(stattoolc.wxToolBar_ToggleTool,(self,) + _args, _kwargs)
242 return val
243 def __repr__(self):
244 return "<C wxToolBar instance at %s>" % (self.this,)
245 class wxToolBar(wxToolBarPtr):
246 def __init__(self,*_args,**_kwargs):
247 self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs)
248 self.thisown = 1
249 wx._StdWindowCallbacks(self)
250
251
252
253
254
255
256 #-------------- FUNCTION WRAPPERS ------------------
257
258
259
260 #-------------- VARIABLE WRAPPERS ------------------
261