]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/stattool.py
added a "lib" target for generating a wxPython library for static
[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 class 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>"
48 class 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
63 class 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>"
165 class wxToolBarTool(wxToolBarToolPtr):
166 def __init__(self) :
167 self.this = stattoolc.new_wxToolBarTool()
168 self.thisown = 1
169
170
171
172
173 class wxToolBarPtr(wxControlPtr):
174 def __init__(self,this):
175 self.this = this
176 self.thisown = 0
177 def AddSeparator(self):
178 val = stattoolc.wxToolBar_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.wxToolBar_AddTool,(self.this,arg0,arg1.this,)+args)
186 val = wxToolBarToolPtr(val)
187 return val
188 def EnableTool(self,arg0,arg1):
189 val = stattoolc.wxToolBar_EnableTool(self.this,arg0,arg1)
190 return val
191 def FindToolForPosition(self,arg0,arg1):
192 val = stattoolc.wxToolBar_FindToolForPosition(self.this,arg0,arg1)
193 val = wxToolBarToolPtr(val)
194 return val
195 def GetToolSize(self):
196 val = stattoolc.wxToolBar_GetToolSize(self.this)
197 val = wxSizePtr(val)
198 val.thisown = 1
199 return val
200 def GetToolBitmapSize(self):
201 val = stattoolc.wxToolBar_GetToolBitmapSize(self.this)
202 val = wxSizePtr(val)
203 val.thisown = 1
204 return val
205 def GetMaxSize(self):
206 val = stattoolc.wxToolBar_GetMaxSize(self.this)
207 val = wxSizePtr(val)
208 val.thisown = 1
209 return val
210 def GetToolEnabled(self,arg0):
211 val = stattoolc.wxToolBar_GetToolEnabled(self.this,arg0)
212 return val
213 def GetToolLongHelp(self,arg0):
214 val = stattoolc.wxToolBar_GetToolLongHelp(self.this,arg0)
215 return val
216 def GetToolPacking(self):
217 val = stattoolc.wxToolBar_GetToolPacking(self.this)
218 return val
219 def GetToolSeparation(self):
220 val = stattoolc.wxToolBar_GetToolSeparation(self.this)
221 return val
222 def GetToolShortHelp(self,arg0):
223 val = stattoolc.wxToolBar_GetToolShortHelp(self.this,arg0)
224 return val
225 def GetToolState(self,arg0):
226 val = stattoolc.wxToolBar_GetToolState(self.this,arg0)
227 return val
228 def Realize(self):
229 val = stattoolc.wxToolBar_Realize(self.this)
230 return val
231 def SetToolBitmapSize(self,arg0):
232 val = stattoolc.wxToolBar_SetToolBitmapSize(self.this,arg0.this)
233 return val
234 def SetToolLongHelp(self,arg0,arg1):
235 val = stattoolc.wxToolBar_SetToolLongHelp(self.this,arg0,arg1)
236 return val
237 def SetToolShortHelp(self,arg0,arg1):
238 val = stattoolc.wxToolBar_SetToolShortHelp(self.this,arg0,arg1)
239 return val
240 def SetMargins(self,arg0):
241 val = stattoolc.wxToolBar_SetMargins(self.this,arg0.this)
242 return val
243 def SetToolPacking(self,arg0):
244 val = stattoolc.wxToolBar_SetToolPacking(self.this,arg0)
245 return val
246 def SetToolSeparation(self,arg0):
247 val = stattoolc.wxToolBar_SetToolSeparation(self.this,arg0)
248 return val
249 def ToggleTool(self,arg0,arg1):
250 val = stattoolc.wxToolBar_ToggleTool(self.this,arg0,arg1)
251 return val
252 def __repr__(self):
253 return "<C wxToolBar instance>"
254 class wxToolBar(wxToolBarPtr):
255 def __init__(self,arg0,arg1,*args) :
256 argl = map(None,args)
257 try: argl[0] = argl[0].this
258 except: pass
259 try: argl[1] = argl[1].this
260 except: pass
261 args = tuple(argl)
262 self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args)
263 self.thisown = 1
264 wxp._StdWindowCallbacks(self)
265
266
267
268
269
270
271 #-------------- FUNCTION WRAPPERS ------------------
272
273
274
275 #-------------- VARIABLE WRAPPERS ------------------
276