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