1 # This file was created automatically by SWIG.
10 from controls
import *
13 class wxStatusBarPtr(wxWindowPtr
):
14 def __init__(self
,this
):
17 def GetFieldRect(self
,arg0
):
18 val
= stattoolc
.wxStatusBar_GetFieldRect(self
.this
,arg0
)
22 def GetFieldsCount(self
):
23 val
= stattoolc
.wxStatusBar_GetFieldsCount(self
.this
)
25 def GetStatusText(self
,*args
):
26 val
= apply(stattoolc
.wxStatusBar_GetStatusText
,(self
.this
,)+args
)
28 def DrawField(self
,arg0
,arg1
):
29 val
= stattoolc
.wxStatusBar_DrawField(self
.this
,arg0
.this
,arg1
)
31 def DrawFieldText(self
,arg0
,arg1
):
32 val
= stattoolc
.wxStatusBar_DrawFieldText(self
.this
,arg0
.this
,arg1
)
34 def InitColours(self
):
35 val
= stattoolc
.wxStatusBar_InitColours(self
.this
)
37 def SetFieldsCount(self
,*args
):
38 val
= apply(stattoolc
.wxStatusBar_SetFieldsCount
,(self
.this
,)+args
)
40 def SetStatusText(self
,arg0
,*args
):
41 val
= apply(stattoolc
.wxStatusBar_SetStatusText
,(self
.this
,arg0
,)+args
)
43 def SetStatusWidths(self
,arg0
,*args
):
44 val
= apply(stattoolc
.wxStatusBar_SetStatusWidths
,(self
.this
,arg0
,)+args
)
47 return "<C wxStatusBar instance>"
48 class wxStatusBar(wxStatusBarPtr
):
49 def __init__(self
,arg0
,arg1
,*args
) :
51 try: argl
[0] = argl
[0].this
53 try: argl
[1] = argl
[1].this
56 self
.this
= apply(stattoolc
.new_wxStatusBar
,(arg0
.this
,arg1
,)+args
)
58 wxp
._StdWindowCallbacks
(self
)
63 class wxToolBarToolPtr
:
64 def __init__(self
,this
):
68 if self
.thisown
== 1 :
69 stattoolc
.delete_wxToolBarTool(self
.this
)
70 def SetSize(self
,arg0
,arg1
):
71 val
= stattoolc
.wxToolBarTool_SetSize(self
.this
,arg0
,arg1
)
74 val
= stattoolc
.wxToolBarTool_GetWidth(self
.this
)
77 val
= stattoolc
.wxToolBarTool_GetHeight(self
.this
)
79 def __setattr__(self
,name
,value
):
80 if name
== "m_toolStyle" :
81 stattoolc
.wxToolBarTool_m_toolStyle_set(self
.this
,value
)
83 if name
== "m_clientData" :
84 stattoolc
.wxToolBarTool_m_clientData_set(self
.this
,value
)
86 if name
== "m_index" :
87 stattoolc
.wxToolBarTool_m_index_set(self
.this
,value
)
90 stattoolc
.wxToolBarTool_m_x_set(self
.this
,value
)
93 stattoolc
.wxToolBarTool_m_y_set(self
.this
,value
)
95 if name
== "m_width" :
96 stattoolc
.wxToolBarTool_m_width_set(self
.this
,value
)
98 if name
== "m_height" :
99 stattoolc
.wxToolBarTool_m_height_set(self
.this
,value
)
101 if name
== "m_toggleState" :
102 stattoolc
.wxToolBarTool_m_toggleState_set(self
.this
,value
)
104 if name
== "m_isToggle" :
105 stattoolc
.wxToolBarTool_m_isToggle_set(self
.this
,value
)
107 if name
== "m_deleteSecondBitmap" :
108 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
.this
,value
)
110 if name
== "m_enabled" :
111 stattoolc
.wxToolBarTool_m_enabled_set(self
.this
,value
)
113 if name
== "m_bitmap1" :
114 stattoolc
.wxToolBarTool_m_bitmap1_set(self
.this
,value
.this
)
116 if name
== "m_bitmap2" :
117 stattoolc
.wxToolBarTool_m_bitmap2_set(self
.this
,value
.this
)
119 if name
== "m_isMenuCommand" :
120 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
.this
,value
)
122 if name
== "m_shortHelpString" :
123 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
.this
,value
)
125 if name
== "m_longHelpString" :
126 stattoolc
.wxToolBarTool_m_longHelpString_set(self
.this
,value
)
128 self
.__dict
__[name
] = value
129 def __getattr__(self
,name
):
130 if name
== "m_toolStyle" :
131 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
.this
)
132 if name
== "m_clientData" :
133 return stattoolc
.wxToolBarTool_m_clientData_get(self
.this
)
134 if name
== "m_index" :
135 return stattoolc
.wxToolBarTool_m_index_get(self
.this
)
137 return stattoolc
.wxToolBarTool_m_x_get(self
.this
)
139 return stattoolc
.wxToolBarTool_m_y_get(self
.this
)
140 if name
== "m_width" :
141 return stattoolc
.wxToolBarTool_m_width_get(self
.this
)
142 if name
== "m_height" :
143 return stattoolc
.wxToolBarTool_m_height_get(self
.this
)
144 if name
== "m_toggleState" :
145 return stattoolc
.wxToolBarTool_m_toggleState_get(self
.this
)
146 if name
== "m_isToggle" :
147 return stattoolc
.wxToolBarTool_m_isToggle_get(self
.this
)
148 if name
== "m_deleteSecondBitmap" :
149 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
.this
)
150 if name
== "m_enabled" :
151 return stattoolc
.wxToolBarTool_m_enabled_get(self
.this
)
152 if name
== "m_bitmap1" :
153 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
.this
))
154 if name
== "m_bitmap2" :
155 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
.this
))
156 if name
== "m_isMenuCommand" :
157 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
.this
)
158 if name
== "m_shortHelpString" :
159 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
.this
)
160 if name
== "m_longHelpString" :
161 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
.this
)
162 raise AttributeError,name
164 return "<C wxToolBarTool instance>"
165 class wxToolBarTool(wxToolBarToolPtr
):
167 self
.this
= stattoolc
.new_wxToolBarTool()
173 class wxToolBarPtr(wxControlPtr
):
174 def __init__(self
,this
):
177 def AddSeparator(self
):
178 val
= stattoolc
.wxToolBar_AddSeparator(self
.this
)
180 def AddTool(self
,arg0
,arg1
,*args
):
181 argl
= map(None,args
)
182 try: argl
[0] = argl
[0].this
185 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
.this
,arg0
,arg1
.this
,)+args
)
186 val
= wxToolBarToolPtr(val
)
188 def EnableTool(self
,arg0
,arg1
):
189 val
= stattoolc
.wxToolBar_EnableTool(self
.this
,arg0
,arg1
)
191 def FindToolForPosition(self
,arg0
,arg1
):
192 val
= stattoolc
.wxToolBar_FindToolForPosition(self
.this
,arg0
,arg1
)
193 val
= wxToolBarToolPtr(val
)
195 def GetToolSize(self
):
196 val
= stattoolc
.wxToolBar_GetToolSize(self
.this
)
200 def GetToolBitmapSize(self
):
201 val
= stattoolc
.wxToolBar_GetToolBitmapSize(self
.this
)
205 def GetMaxSize(self
):
206 val
= stattoolc
.wxToolBar_GetMaxSize(self
.this
)
210 def GetToolEnabled(self
,arg0
):
211 val
= stattoolc
.wxToolBar_GetToolEnabled(self
.this
,arg0
)
213 def GetToolLongHelp(self
,arg0
):
214 val
= stattoolc
.wxToolBar_GetToolLongHelp(self
.this
,arg0
)
216 def GetToolPacking(self
):
217 val
= stattoolc
.wxToolBar_GetToolPacking(self
.this
)
219 def GetToolSeparation(self
):
220 val
= stattoolc
.wxToolBar_GetToolSeparation(self
.this
)
222 def GetToolShortHelp(self
,arg0
):
223 val
= stattoolc
.wxToolBar_GetToolShortHelp(self
.this
,arg0
)
225 def GetToolState(self
,arg0
):
226 val
= stattoolc
.wxToolBar_GetToolState(self
.this
,arg0
)
229 val
= stattoolc
.wxToolBar_Realize(self
.this
)
231 def SetToolBitmapSize(self
,arg0
):
232 val
= stattoolc
.wxToolBar_SetToolBitmapSize(self
.this
,arg0
.this
)
234 def SetToolLongHelp(self
,arg0
,arg1
):
235 val
= stattoolc
.wxToolBar_SetToolLongHelp(self
.this
,arg0
,arg1
)
237 def SetToolShortHelp(self
,arg0
,arg1
):
238 val
= stattoolc
.wxToolBar_SetToolShortHelp(self
.this
,arg0
,arg1
)
240 def SetMargins(self
,arg0
):
241 val
= stattoolc
.wxToolBar_SetMargins(self
.this
,arg0
.this
)
243 def SetToolPacking(self
,arg0
):
244 val
= stattoolc
.wxToolBar_SetToolPacking(self
.this
,arg0
)
246 def SetToolSeparation(self
,arg0
):
247 val
= stattoolc
.wxToolBar_SetToolSeparation(self
.this
,arg0
)
249 def ToggleTool(self
,arg0
,arg1
):
250 val
= stattoolc
.wxToolBar_ToggleTool(self
.this
,arg0
,arg1
)
253 return "<C wxToolBar instance>"
254 class wxToolBar(wxToolBarPtr
):
255 def __init__(self
,arg0
,arg1
,*args
) :
256 argl
= map(None,args
)
257 try: argl
[0] = argl
[0].this
259 try: argl
[1] = argl
[1].this
262 self
.this
= apply(stattoolc
.new_wxToolBar
,(arg0
.this
,arg1
,)+args
)
264 wxp
._StdWindowCallbacks
(self
)
271 #-------------- FUNCTION WRAPPERS ------------------
275 #-------------- VARIABLE WRAPPERS ------------------