]>
Commit | Line | Data |
---|---|---|
b26e2dc4 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 * | |
105e45b9 | 13 | import wx |
b26e2dc4 RD |
14 | class wxStatusBarPtr(wxWindowPtr): |
15 | def __init__(self,this): | |
16 | self.this = this | |
17 | self.thisown = 0 | |
2d091820 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 | |
b26e2dc4 | 21 | return val |
2d091820 RD |
22 | def GetFieldsCount(self, *_args, **_kwargs): |
23 | val = apply(stattoolc.wxStatusBar_GetFieldsCount,(self,) + _args, _kwargs) | |
b26e2dc4 | 24 | return val |
2d091820 RD |
25 | def GetStatusText(self, *_args, **_kwargs): |
26 | val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs) | |
b26e2dc4 | 27 | return val |
2d091820 RD |
28 | def DrawField(self, *_args, **_kwargs): |
29 | val = apply(stattoolc.wxStatusBar_DrawField,(self,) + _args, _kwargs) | |
b26e2dc4 | 30 | return val |
2d091820 RD |
31 | def DrawFieldText(self, *_args, **_kwargs): |
32 | val = apply(stattoolc.wxStatusBar_DrawFieldText,(self,) + _args, _kwargs) | |
b26e2dc4 | 33 | return val |
2d091820 RD |
34 | def InitColours(self, *_args, **_kwargs): |
35 | val = apply(stattoolc.wxStatusBar_InitColours,(self,) + _args, _kwargs) | |
b26e2dc4 | 36 | return val |
2d091820 RD |
37 | def SetFieldsCount(self, *_args, **_kwargs): |
38 | val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs) | |
b26e2dc4 | 39 | return val |
2d091820 RD |
40 | def SetStatusText(self, *_args, **_kwargs): |
41 | val = apply(stattoolc.wxStatusBar_SetStatusText,(self,) + _args, _kwargs) | |
b26e2dc4 | 42 | return val |
2d091820 RD |
43 | def SetStatusWidths(self, *_args, **_kwargs): |
44 | val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs) | |
b26e2dc4 RD |
45 | return val |
46 | def __repr__(self): | |
2d091820 | 47 | return "<C wxStatusBar instance at %s>" % (self.this,) |
b26e2dc4 | 48 | class wxStatusBar(wxStatusBarPtr): |
2d091820 RD |
49 | def __init__(self,*_args,**_kwargs): |
50 | self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs) | |
b26e2dc4 | 51 | self.thisown = 1 |
105e45b9 | 52 | wx._StdWindowCallbacks(self) |
b26e2dc4 RD |
53 | |
54 | ||
55 | ||
56 | ||
57 | class wxToolBarToolPtr : | |
58 | def __init__(self,this): | |
59 | self.this = this | |
60 | self.thisown = 0 | |
2d091820 | 61 | def __del__(self,stattoolc=stattoolc): |
b26e2dc4 | 62 | if self.thisown == 1 : |
2d091820 | 63 | stattoolc.delete_wxToolBarTool(self) |
b26e2dc4 RD |
64 | def __setattr__(self,name,value): |
65 | if name == "m_toolStyle" : | |
2d091820 | 66 | stattoolc.wxToolBarTool_m_toolStyle_set(self,value) |
b26e2dc4 RD |
67 | return |
68 | if name == "m_clientData" : | |
2d091820 | 69 | stattoolc.wxToolBarTool_m_clientData_set(self,value) |
b26e2dc4 RD |
70 | return |
71 | if name == "m_index" : | |
2d091820 | 72 | stattoolc.wxToolBarTool_m_index_set(self,value) |
b26e2dc4 RD |
73 | return |
74 | if name == "m_toggleState" : | |
2d091820 | 75 | stattoolc.wxToolBarTool_m_toggleState_set(self,value) |
b26e2dc4 RD |
76 | return |
77 | if name == "m_isToggle" : | |
2d091820 | 78 | stattoolc.wxToolBarTool_m_isToggle_set(self,value) |
b26e2dc4 RD |
79 | return |
80 | if name == "m_deleteSecondBitmap" : | |
2d091820 | 81 | stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self,value) |
b26e2dc4 RD |
82 | return |
83 | if name == "m_enabled" : | |
2d091820 | 84 | stattoolc.wxToolBarTool_m_enabled_set(self,value) |
b26e2dc4 RD |
85 | return |
86 | if name == "m_bitmap1" : | |
2d091820 | 87 | stattoolc.wxToolBarTool_m_bitmap1_set(self,value.this) |
b26e2dc4 RD |
88 | return |
89 | if name == "m_bitmap2" : | |
2d091820 | 90 | stattoolc.wxToolBarTool_m_bitmap2_set(self,value.this) |
b26e2dc4 RD |
91 | return |
92 | if name == "m_isMenuCommand" : | |
2d091820 | 93 | stattoolc.wxToolBarTool_m_isMenuCommand_set(self,value) |
b26e2dc4 RD |
94 | return |
95 | if name == "m_shortHelpString" : | |
2d091820 | 96 | stattoolc.wxToolBarTool_m_shortHelpString_set(self,value) |
b26e2dc4 RD |
97 | return |
98 | if name == "m_longHelpString" : | |
2d091820 | 99 | stattoolc.wxToolBarTool_m_longHelpString_set(self,value) |
b26e2dc4 RD |
100 | return |
101 | self.__dict__[name] = value | |
102 | def __getattr__(self,name): | |
103 | if name == "m_toolStyle" : | |
2d091820 | 104 | return stattoolc.wxToolBarTool_m_toolStyle_get(self) |
b26e2dc4 | 105 | if name == "m_clientData" : |
2d091820 | 106 | return stattoolc.wxToolBarTool_m_clientData_get(self) |
b26e2dc4 | 107 | if name == "m_index" : |
2d091820 | 108 | return stattoolc.wxToolBarTool_m_index_get(self) |
b26e2dc4 | 109 | if name == "m_toggleState" : |
2d091820 | 110 | return stattoolc.wxToolBarTool_m_toggleState_get(self) |
b26e2dc4 | 111 | if name == "m_isToggle" : |
2d091820 | 112 | return stattoolc.wxToolBarTool_m_isToggle_get(self) |
b26e2dc4 | 113 | if name == "m_deleteSecondBitmap" : |
2d091820 | 114 | return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self) |
b26e2dc4 | 115 | if name == "m_enabled" : |
2d091820 | 116 | return stattoolc.wxToolBarTool_m_enabled_get(self) |
b26e2dc4 | 117 | if name == "m_bitmap1" : |
2d091820 | 118 | return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self)) |
b26e2dc4 | 119 | if name == "m_bitmap2" : |
2d091820 | 120 | return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self)) |
b26e2dc4 | 121 | if name == "m_isMenuCommand" : |
2d091820 | 122 | return stattoolc.wxToolBarTool_m_isMenuCommand_get(self) |
b26e2dc4 | 123 | if name == "m_shortHelpString" : |
2d091820 | 124 | return stattoolc.wxToolBarTool_m_shortHelpString_get(self) |
b26e2dc4 | 125 | if name == "m_longHelpString" : |
2d091820 | 126 | return stattoolc.wxToolBarTool_m_longHelpString_get(self) |
b26e2dc4 RD |
127 | raise AttributeError,name |
128 | def __repr__(self): | |
2d091820 | 129 | return "<C wxToolBarTool instance at %s>" % (self.this,) |
b26e2dc4 | 130 | class wxToolBarTool(wxToolBarToolPtr): |
2d091820 RD |
131 | def __init__(self,*_args,**_kwargs): |
132 | self.this = apply(stattoolc.new_wxToolBarTool,_args,_kwargs) | |
b26e2dc4 RD |
133 | self.thisown = 1 |
134 | ||
135 | ||
136 | ||
137 | ||
138 | class wxToolBarPtr(wxControlPtr): | |
139 | def __init__(self,this): | |
140 | self.this = this | |
141 | self.thisown = 0 | |
2d091820 RD |
142 | def AddSeparator(self, *_args, **_kwargs): |
143 | val = apply(stattoolc.wxToolBar_AddSeparator,(self,) + _args, _kwargs) | |
b26e2dc4 | 144 | return val |
2d091820 RD |
145 | def AddTool(self, *_args, **_kwargs): |
146 | val = apply(stattoolc.wxToolBar_AddTool,(self,) + _args, _kwargs) | |
147 | if val: val = wxToolBarToolPtr(val) | |
b26e2dc4 | 148 | return val |
2d091820 RD |
149 | def AddSimpleTool(self, *_args, **_kwargs): |
150 | val = apply(stattoolc.wxToolBar_AddSimpleTool,(self,) + _args, _kwargs) | |
151 | if val: val = wxToolBarToolPtr(val) | |
dd9a3de8 | 152 | return val |
2d091820 RD |
153 | def EnableTool(self, *_args, **_kwargs): |
154 | val = apply(stattoolc.wxToolBar_EnableTool,(self,) + _args, _kwargs) | |
b26e2dc4 | 155 | return val |
2d091820 RD |
156 | def GetToolEnabled(self, *_args, **_kwargs): |
157 | val = apply(stattoolc.wxToolBar_GetToolEnabled,(self,) + _args, _kwargs) | |
b26e2dc4 | 158 | return val |
2d091820 RD |
159 | def GetToolLongHelp(self, *_args, **_kwargs): |
160 | val = apply(stattoolc.wxToolBar_GetToolLongHelp,(self,) + _args, _kwargs) | |
c95e68d8 | 161 | return val |
2d091820 RD |
162 | def GetToolPacking(self, *_args, **_kwargs): |
163 | val = apply(stattoolc.wxToolBar_GetToolPacking,(self,) + _args, _kwargs) | |
c95e68d8 | 164 | return val |
2d091820 RD |
165 | def GetToolSeparation(self, *_args, **_kwargs): |
166 | val = apply(stattoolc.wxToolBar_GetToolSeparation,(self,) + _args, _kwargs) | |
c95e68d8 | 167 | return val |
2d091820 RD |
168 | def GetToolShortHelp(self, *_args, **_kwargs): |
169 | val = apply(stattoolc.wxToolBar_GetToolShortHelp,(self,) + _args, _kwargs) | |
c95e68d8 | 170 | return val |
2d091820 RD |
171 | def GetToolState(self, *_args, **_kwargs): |
172 | val = apply(stattoolc.wxToolBar_GetToolState,(self,) + _args, _kwargs) | |
b26e2dc4 | 173 | return val |
2d091820 RD |
174 | def Realize(self, *_args, **_kwargs): |
175 | val = apply(stattoolc.wxToolBar_Realize,(self,) + _args, _kwargs) | |
b26e2dc4 | 176 | return val |
2d091820 RD |
177 | def SetToolLongHelp(self, *_args, **_kwargs): |
178 | val = apply(stattoolc.wxToolBar_SetToolLongHelp,(self,) + _args, _kwargs) | |
c95e68d8 | 179 | return val |
2d091820 RD |
180 | def SetToolShortHelp(self, *_args, **_kwargs): |
181 | val = apply(stattoolc.wxToolBar_SetToolShortHelp,(self,) + _args, _kwargs) | |
c95e68d8 | 182 | return val |
2d091820 RD |
183 | def SetMargins(self, *_args, **_kwargs): |
184 | val = apply(stattoolc.wxToolBar_SetMargins,(self,) + _args, _kwargs) | |
b26e2dc4 | 185 | return val |
2d091820 RD |
186 | def SetToolPacking(self, *_args, **_kwargs): |
187 | val = apply(stattoolc.wxToolBar_SetToolPacking,(self,) + _args, _kwargs) | |
b26e2dc4 | 188 | return val |
2d091820 RD |
189 | def SetToolSeparation(self, *_args, **_kwargs): |
190 | val = apply(stattoolc.wxToolBar_SetToolSeparation,(self,) + _args, _kwargs) | |
b26e2dc4 | 191 | return val |
2d091820 RD |
192 | def ToggleTool(self, *_args, **_kwargs): |
193 | val = apply(stattoolc.wxToolBar_ToggleTool,(self,) + _args, _kwargs) | |
b26e2dc4 RD |
194 | return val |
195 | def __repr__(self): | |
2d091820 | 196 | return "<C wxToolBar instance at %s>" % (self.this,) |
b26e2dc4 | 197 | class wxToolBar(wxToolBarPtr): |
2d091820 RD |
198 | def __init__(self,*_args,**_kwargs): |
199 | self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs) | |
b26e2dc4 | 200 | self.thisown = 1 |
105e45b9 | 201 | wx._StdWindowCallbacks(self) |
b26e2dc4 RD |
202 | |
203 | ||
204 | ||
205 | ||
206 | ||
207 | ||
208 | #-------------- FUNCTION WRAPPERS ------------------ | |
209 | ||
210 | ||
211 | ||
212 | #-------------- VARIABLE WRAPPERS ------------------ | |
213 |