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