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