1 # This file was created automatically by SWIG.
10 from controls
import *
14 class wxStatusBarPtr(wxWindowPtr
):
15 def __init__(self
,this
):
18 def GetFieldRect(self
, *_args
, **_kwargs
):
19 val
= apply(stattoolc
.wxStatusBar_GetFieldRect
,(self
,) + _args
, _kwargs
)
20 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
22 def GetFieldsCount(self
, *_args
, **_kwargs
):
23 val
= apply(stattoolc
.wxStatusBar_GetFieldsCount
,(self
,) + _args
, _kwargs
)
25 def GetStatusText(self
, *_args
, **_kwargs
):
26 val
= apply(stattoolc
.wxStatusBar_GetStatusText
,(self
,) + _args
, _kwargs
)
28 def DrawField(self
, *_args
, **_kwargs
):
29 val
= apply(stattoolc
.wxStatusBar_DrawField
,(self
,) + _args
, _kwargs
)
31 def DrawFieldText(self
, *_args
, **_kwargs
):
32 val
= apply(stattoolc
.wxStatusBar_DrawFieldText
,(self
,) + _args
, _kwargs
)
34 def InitColours(self
, *_args
, **_kwargs
):
35 val
= apply(stattoolc
.wxStatusBar_InitColours
,(self
,) + _args
, _kwargs
)
37 def SetFieldsCount(self
, *_args
, **_kwargs
):
38 val
= apply(stattoolc
.wxStatusBar_SetFieldsCount
,(self
,) + _args
, _kwargs
)
40 def SetStatusText(self
, *_args
, **_kwargs
):
41 val
= apply(stattoolc
.wxStatusBar_SetStatusText
,(self
,) + _args
, _kwargs
)
43 def SetStatusWidths(self
, *_args
, **_kwargs
):
44 val
= apply(stattoolc
.wxStatusBar_SetStatusWidths
,(self
,) + _args
, _kwargs
)
47 return "<C wxStatusBar instance at %s>" % (self
.this
,)
48 class wxStatusBar(wxStatusBarPtr
):
49 def __init__(self
,*_args
,**_kwargs
):
50 self
.this
= apply(stattoolc
.new_wxStatusBar
,_args
,_kwargs
)
52 wx
._StdWindowCallbacks
(self
)
57 class wxToolBarToolPtr
:
58 def __init__(self
,this
):
61 def __del__(self
,stattoolc
=stattoolc
):
62 if self
.thisown
== 1 :
63 stattoolc
.delete_wxToolBarTool(self
)
64 def SetSize(self
, *_args
, **_kwargs
):
65 val
= apply(stattoolc
.wxToolBarTool_SetSize
,(self
,) + _args
, _kwargs
)
67 def GetWidth(self
, *_args
, **_kwargs
):
68 val
= apply(stattoolc
.wxToolBarTool_GetWidth
,(self
,) + _args
, _kwargs
)
70 def GetHeight(self
, *_args
, **_kwargs
):
71 val
= apply(stattoolc
.wxToolBarTool_GetHeight
,(self
,) + _args
, _kwargs
)
73 def __setattr__(self
,name
,value
):
74 if name
== "m_toolStyle" :
75 stattoolc
.wxToolBarTool_m_toolStyle_set(self
,value
)
77 if name
== "m_clientData" :
78 stattoolc
.wxToolBarTool_m_clientData_set(self
,value
)
80 if name
== "m_index" :
81 stattoolc
.wxToolBarTool_m_index_set(self
,value
)
84 stattoolc
.wxToolBarTool_m_x_set(self
,value
)
87 stattoolc
.wxToolBarTool_m_y_set(self
,value
)
89 if name
== "m_width" :
90 stattoolc
.wxToolBarTool_m_width_set(self
,value
)
92 if name
== "m_height" :
93 stattoolc
.wxToolBarTool_m_height_set(self
,value
)
95 if name
== "m_toggleState" :
96 stattoolc
.wxToolBarTool_m_toggleState_set(self
,value
)
98 if name
== "m_isToggle" :
99 stattoolc
.wxToolBarTool_m_isToggle_set(self
,value
)
101 if name
== "m_deleteSecondBitmap" :
102 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
,value
)
104 if name
== "m_enabled" :
105 stattoolc
.wxToolBarTool_m_enabled_set(self
,value
)
107 if name
== "m_bitmap1" :
108 stattoolc
.wxToolBarTool_m_bitmap1_set(self
,value
.this
)
110 if name
== "m_bitmap2" :
111 stattoolc
.wxToolBarTool_m_bitmap2_set(self
,value
.this
)
113 if name
== "m_isMenuCommand" :
114 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
,value
)
116 if name
== "m_shortHelpString" :
117 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
,value
)
119 if name
== "m_longHelpString" :
120 stattoolc
.wxToolBarTool_m_longHelpString_set(self
,value
)
122 self
.__dict
__[name
] = value
123 def __getattr__(self
,name
):
124 if name
== "m_toolStyle" :
125 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
)
126 if name
== "m_clientData" :
127 return stattoolc
.wxToolBarTool_m_clientData_get(self
)
128 if name
== "m_index" :
129 return stattoolc
.wxToolBarTool_m_index_get(self
)
131 return stattoolc
.wxToolBarTool_m_x_get(self
)
133 return stattoolc
.wxToolBarTool_m_y_get(self
)
134 if name
== "m_width" :
135 return stattoolc
.wxToolBarTool_m_width_get(self
)
136 if name
== "m_height" :
137 return stattoolc
.wxToolBarTool_m_height_get(self
)
138 if name
== "m_toggleState" :
139 return stattoolc
.wxToolBarTool_m_toggleState_get(self
)
140 if name
== "m_isToggle" :
141 return stattoolc
.wxToolBarTool_m_isToggle_get(self
)
142 if name
== "m_deleteSecondBitmap" :
143 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
)
144 if name
== "m_enabled" :
145 return stattoolc
.wxToolBarTool_m_enabled_get(self
)
146 if name
== "m_bitmap1" :
147 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
))
148 if name
== "m_bitmap2" :
149 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
))
150 if name
== "m_isMenuCommand" :
151 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
)
152 if name
== "m_shortHelpString" :
153 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
)
154 if name
== "m_longHelpString" :
155 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
)
156 raise AttributeError,name
158 return "<C wxToolBarTool instance at %s>" % (self
.this
,)
159 class wxToolBarTool(wxToolBarToolPtr
):
160 def __init__(self
,*_args
,**_kwargs
):
161 self
.this
= apply(stattoolc
.new_wxToolBarTool
,_args
,_kwargs
)
167 class wxToolBarPtr(wxControlPtr
):
168 def __init__(self
,this
):
171 def AddSeparator(self
, *_args
, **_kwargs
):
172 val
= apply(stattoolc
.wxToolBar_AddSeparator
,(self
,) + _args
, _kwargs
)
174 def AddTool(self
, *_args
, **_kwargs
):
175 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
,) + _args
, _kwargs
)
176 if val
: val
= wxToolBarToolPtr(val
)
178 def AddSimpleTool(self
, *_args
, **_kwargs
):
179 val
= apply(stattoolc
.wxToolBar_AddSimpleTool
,(self
,) + _args
, _kwargs
)
180 if val
: val
= wxToolBarToolPtr(val
)
182 def EnableTool(self
, *_args
, **_kwargs
):
183 val
= apply(stattoolc
.wxToolBar_EnableTool
,(self
,) + _args
, _kwargs
)
185 def FindToolForPosition(self
, *_args
, **_kwargs
):
186 val
= apply(stattoolc
.wxToolBar_FindToolForPosition
,(self
,) + _args
, _kwargs
)
187 if val
: val
= wxToolBarToolPtr(val
)
189 def GetToolSize(self
, *_args
, **_kwargs
):
190 val
= apply(stattoolc
.wxToolBar_GetToolSize
,(self
,) + _args
, _kwargs
)
191 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
193 def GetToolBitmapSize(self
, *_args
, **_kwargs
):
194 val
= apply(stattoolc
.wxToolBar_GetToolBitmapSize
,(self
,) + _args
, _kwargs
)
195 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
197 def SetToolBitmapSize(self
, *_args
, **_kwargs
):
198 val
= apply(stattoolc
.wxToolBar_SetToolBitmapSize
,(self
,) + _args
, _kwargs
)
200 def GetMaxSize(self
, *_args
, **_kwargs
):
201 val
= apply(stattoolc
.wxToolBar_GetMaxSize
,(self
,) + _args
, _kwargs
)
202 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
204 def GetToolEnabled(self
, *_args
, **_kwargs
):
205 val
= apply(stattoolc
.wxToolBar_GetToolEnabled
,(self
,) + _args
, _kwargs
)
207 def GetToolLongHelp(self
, *_args
, **_kwargs
):
208 val
= apply(stattoolc
.wxToolBar_GetToolLongHelp
,(self
,) + _args
, _kwargs
)
210 def GetToolPacking(self
, *_args
, **_kwargs
):
211 val
= apply(stattoolc
.wxToolBar_GetToolPacking
,(self
,) + _args
, _kwargs
)
213 def GetToolSeparation(self
, *_args
, **_kwargs
):
214 val
= apply(stattoolc
.wxToolBar_GetToolSeparation
,(self
,) + _args
, _kwargs
)
216 def GetToolShortHelp(self
, *_args
, **_kwargs
):
217 val
= apply(stattoolc
.wxToolBar_GetToolShortHelp
,(self
,) + _args
, _kwargs
)
219 def GetToolState(self
, *_args
, **_kwargs
):
220 val
= apply(stattoolc
.wxToolBar_GetToolState
,(self
,) + _args
, _kwargs
)
222 def Realize(self
, *_args
, **_kwargs
):
223 val
= apply(stattoolc
.wxToolBar_Realize
,(self
,) + _args
, _kwargs
)
225 def SetToolLongHelp(self
, *_args
, **_kwargs
):
226 val
= apply(stattoolc
.wxToolBar_SetToolLongHelp
,(self
,) + _args
, _kwargs
)
228 def SetToolShortHelp(self
, *_args
, **_kwargs
):
229 val
= apply(stattoolc
.wxToolBar_SetToolShortHelp
,(self
,) + _args
, _kwargs
)
231 def SetMargins(self
, *_args
, **_kwargs
):
232 val
= apply(stattoolc
.wxToolBar_SetMargins
,(self
,) + _args
, _kwargs
)
234 def SetToolPacking(self
, *_args
, **_kwargs
):
235 val
= apply(stattoolc
.wxToolBar_SetToolPacking
,(self
,) + _args
, _kwargs
)
237 def SetToolSeparation(self
, *_args
, **_kwargs
):
238 val
= apply(stattoolc
.wxToolBar_SetToolSeparation
,(self
,) + _args
, _kwargs
)
240 def ToggleTool(self
, *_args
, **_kwargs
):
241 val
= apply(stattoolc
.wxToolBar_ToggleTool
,(self
,) + _args
, _kwargs
)
244 return "<C wxToolBar instance at %s>" % (self
.this
,)
245 class wxToolBar(wxToolBarPtr
):
246 def __init__(self
,*_args
,**_kwargs
):
247 self
.this
= apply(stattoolc
.new_wxToolBar
,_args
,_kwargs
)
249 wx
._StdWindowCallbacks
(self
)
256 #-------------- FUNCTION WRAPPERS ------------------
260 #-------------- VARIABLE WRAPPERS ------------------