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
,arg0
):
19 val
= stattoolc
.wxStatusBar_GetFieldRect(self
.this
,arg0
)
23 def GetFieldsCount(self
):
24 val
= stattoolc
.wxStatusBar_GetFieldsCount(self
.this
)
26 def GetStatusText(self
,*args
):
27 val
= apply(stattoolc
.wxStatusBar_GetStatusText
,(self
.this
,)+args
)
29 def DrawField(self
,arg0
,arg1
):
30 val
= stattoolc
.wxStatusBar_DrawField(self
.this
,arg0
.this
,arg1
)
32 def DrawFieldText(self
,arg0
,arg1
):
33 val
= stattoolc
.wxStatusBar_DrawFieldText(self
.this
,arg0
.this
,arg1
)
35 def InitColours(self
):
36 val
= stattoolc
.wxStatusBar_InitColours(self
.this
)
38 def SetFieldsCount(self
,*args
):
39 val
= apply(stattoolc
.wxStatusBar_SetFieldsCount
,(self
.this
,)+args
)
41 def SetStatusText(self
,arg0
,*args
):
42 val
= apply(stattoolc
.wxStatusBar_SetStatusText
,(self
.this
,arg0
,)+args
)
44 def SetStatusWidths(self
,arg0
,*args
):
45 val
= apply(stattoolc
.wxStatusBar_SetStatusWidths
,(self
.this
,arg0
,)+args
)
48 return "<C wxStatusBar instance>"
49 class wxStatusBar(wxStatusBarPtr
):
50 def __init__(self
,arg0
,arg1
,*args
) :
52 try: argl
[0] = argl
[0].this
54 try: argl
[1] = argl
[1].this
57 self
.this
= apply(stattoolc
.new_wxStatusBar
,(arg0
.this
,arg1
,)+args
)
59 wx
._StdWindowCallbacks
(self
)
64 class wxToolBarToolPtr
:
65 def __init__(self
,this
):
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
)
75 val
= stattoolc
.wxToolBarTool_GetWidth(self
.this
)
78 val
= stattoolc
.wxToolBarTool_GetHeight(self
.this
)
80 def __setattr__(self
,name
,value
):
81 if name
== "m_toolStyle" :
82 stattoolc
.wxToolBarTool_m_toolStyle_set(self
.this
,value
)
84 if name
== "m_clientData" :
85 stattoolc
.wxToolBarTool_m_clientData_set(self
.this
,value
)
87 if name
== "m_index" :
88 stattoolc
.wxToolBarTool_m_index_set(self
.this
,value
)
91 stattoolc
.wxToolBarTool_m_x_set(self
.this
,value
)
94 stattoolc
.wxToolBarTool_m_y_set(self
.this
,value
)
96 if name
== "m_width" :
97 stattoolc
.wxToolBarTool_m_width_set(self
.this
,value
)
99 if name
== "m_height" :
100 stattoolc
.wxToolBarTool_m_height_set(self
.this
,value
)
102 if name
== "m_toggleState" :
103 stattoolc
.wxToolBarTool_m_toggleState_set(self
.this
,value
)
105 if name
== "m_isToggle" :
106 stattoolc
.wxToolBarTool_m_isToggle_set(self
.this
,value
)
108 if name
== "m_deleteSecondBitmap" :
109 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
.this
,value
)
111 if name
== "m_enabled" :
112 stattoolc
.wxToolBarTool_m_enabled_set(self
.this
,value
)
114 if name
== "m_bitmap1" :
115 stattoolc
.wxToolBarTool_m_bitmap1_set(self
.this
,value
.this
)
117 if name
== "m_bitmap2" :
118 stattoolc
.wxToolBarTool_m_bitmap2_set(self
.this
,value
.this
)
120 if name
== "m_isMenuCommand" :
121 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
.this
,value
)
123 if name
== "m_shortHelpString" :
124 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
.this
,value
)
126 if name
== "m_longHelpString" :
127 stattoolc
.wxToolBarTool_m_longHelpString_set(self
.this
,value
)
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
)
138 return stattoolc
.wxToolBarTool_m_x_get(self
.this
)
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
165 return "<C wxToolBarTool instance>"
166 class wxToolBarTool(wxToolBarToolPtr
):
168 self
.this
= stattoolc
.new_wxToolBarTool()
174 class wxToolBarPtr(wxControlPtr
):
175 def __init__(self
,this
):
178 def AddSeparator(self
):
179 val
= stattoolc
.wxToolBar_AddSeparator(self
.this
)
181 def AddTool(self
,arg0
,arg1
,*args
):
182 argl
= map(None,args
)
183 try: argl
[0] = argl
[0].this
186 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
.this
,arg0
,arg1
.this
,)+args
)
187 val
= wxToolBarToolPtr(val
)
189 def EnableTool(self
,arg0
,arg1
):
190 val
= stattoolc
.wxToolBar_EnableTool(self
.this
,arg0
,arg1
)
192 def FindToolForPosition(self
,arg0
,arg1
):
193 val
= stattoolc
.wxToolBar_FindToolForPosition(self
.this
,arg0
,arg1
)
194 val
= wxToolBarToolPtr(val
)
196 def GetToolSize(self
):
197 val
= stattoolc
.wxToolBar_GetToolSize(self
.this
)
201 def GetToolBitmapSize(self
):
202 val
= stattoolc
.wxToolBar_GetToolBitmapSize(self
.this
)
206 def GetMaxSize(self
):
207 val
= stattoolc
.wxToolBar_GetMaxSize(self
.this
)
211 def GetToolEnabled(self
,arg0
):
212 val
= stattoolc
.wxToolBar_GetToolEnabled(self
.this
,arg0
)
214 def GetToolLongHelp(self
,arg0
):
215 val
= stattoolc
.wxToolBar_GetToolLongHelp(self
.this
,arg0
)
217 def GetToolPacking(self
):
218 val
= stattoolc
.wxToolBar_GetToolPacking(self
.this
)
220 def GetToolSeparation(self
):
221 val
= stattoolc
.wxToolBar_GetToolSeparation(self
.this
)
223 def GetToolShortHelp(self
,arg0
):
224 val
= stattoolc
.wxToolBar_GetToolShortHelp(self
.this
,arg0
)
226 def GetToolState(self
,arg0
):
227 val
= stattoolc
.wxToolBar_GetToolState(self
.this
,arg0
)
230 val
= stattoolc
.wxToolBar_Realize(self
.this
)
232 def SetToolBitmapSize(self
,arg0
):
233 val
= stattoolc
.wxToolBar_SetToolBitmapSize(self
.this
,arg0
.this
)
235 def SetToolLongHelp(self
,arg0
,arg1
):
236 val
= stattoolc
.wxToolBar_SetToolLongHelp(self
.this
,arg0
,arg1
)
238 def SetToolShortHelp(self
,arg0
,arg1
):
239 val
= stattoolc
.wxToolBar_SetToolShortHelp(self
.this
,arg0
,arg1
)
241 def SetMargins(self
,arg0
):
242 val
= stattoolc
.wxToolBar_SetMargins(self
.this
,arg0
.this
)
244 def SetToolPacking(self
,arg0
):
245 val
= stattoolc
.wxToolBar_SetToolPacking(self
.this
,arg0
)
247 def SetToolSeparation(self
,arg0
):
248 val
= stattoolc
.wxToolBar_SetToolSeparation(self
.this
,arg0
)
250 def ToggleTool(self
,arg0
,arg1
):
251 val
= stattoolc
.wxToolBar_ToggleTool(self
.this
,arg0
,arg1
)
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
260 try: argl
[1] = argl
[1].this
263 self
.this
= apply(stattoolc
.new_wxToolBar
,(arg0
.this
,arg1
,)+args
)
265 wx
._StdWindowCallbacks
(self
)
272 #-------------- FUNCTION WRAPPERS ------------------
276 #-------------- VARIABLE WRAPPERS ------------------