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
):
68 def __del__(self
, stattoolc
=stattoolc
):
69 if self
.thisown
== 1 :
70 stattoolc
.delete_wxToolBarTool(self
.this
)
71 def __setattr__(self
,name
,value
):
72 if name
== "m_toolStyle" :
73 stattoolc
.wxToolBarTool_m_toolStyle_set(self
.this
,value
)
75 if name
== "m_clientData" :
76 stattoolc
.wxToolBarTool_m_clientData_set(self
.this
,value
)
78 if name
== "m_index" :
79 stattoolc
.wxToolBarTool_m_index_set(self
.this
,value
)
81 if name
== "m_toggleState" :
82 stattoolc
.wxToolBarTool_m_toggleState_set(self
.this
,value
)
84 if name
== "m_isToggle" :
85 stattoolc
.wxToolBarTool_m_isToggle_set(self
.this
,value
)
87 if name
== "m_deleteSecondBitmap" :
88 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
.this
,value
)
90 if name
== "m_enabled" :
91 stattoolc
.wxToolBarTool_m_enabled_set(self
.this
,value
)
93 if name
== "m_bitmap1" :
94 stattoolc
.wxToolBarTool_m_bitmap1_set(self
.this
,value
.this
)
96 if name
== "m_bitmap2" :
97 stattoolc
.wxToolBarTool_m_bitmap2_set(self
.this
,value
.this
)
99 if name
== "m_isMenuCommand" :
100 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
.this
,value
)
102 if name
== "m_shortHelpString" :
103 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
.this
,value
)
105 if name
== "m_longHelpString" :
106 stattoolc
.wxToolBarTool_m_longHelpString_set(self
.this
,value
)
108 self
.__dict
__[name
] = value
109 def __getattr__(self
,name
):
110 if name
== "m_toolStyle" :
111 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
.this
)
112 if name
== "m_clientData" :
113 return stattoolc
.wxToolBarTool_m_clientData_get(self
.this
)
114 if name
== "m_index" :
115 return stattoolc
.wxToolBarTool_m_index_get(self
.this
)
116 if name
== "m_toggleState" :
117 return stattoolc
.wxToolBarTool_m_toggleState_get(self
.this
)
118 if name
== "m_isToggle" :
119 return stattoolc
.wxToolBarTool_m_isToggle_get(self
.this
)
120 if name
== "m_deleteSecondBitmap" :
121 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
.this
)
122 if name
== "m_enabled" :
123 return stattoolc
.wxToolBarTool_m_enabled_get(self
.this
)
124 if name
== "m_bitmap1" :
125 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
.this
))
126 if name
== "m_bitmap2" :
127 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
.this
))
128 if name
== "m_isMenuCommand" :
129 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
.this
)
130 if name
== "m_shortHelpString" :
131 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
.this
)
132 if name
== "m_longHelpString" :
133 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
.this
)
134 raise AttributeError,name
136 return "<C wxToolBarTool instance>"
137 class wxToolBarTool(wxToolBarToolPtr
):
139 self
.this
= stattoolc
.new_wxToolBarTool()
145 class wxToolBarPtr(wxControlPtr
):
146 def __init__(self
,this
):
149 def AddSeparator(self
):
150 val
= stattoolc
.wxToolBar_AddSeparator(self
.this
)
152 def AddTool(self
,arg0
,arg1
,*args
):
153 argl
= map(None,args
)
154 try: argl
[0] = argl
[0].this
157 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
.this
,arg0
,arg1
.this
,)+args
)
158 val
= wxToolBarToolPtr(val
)
160 def AddSimpleTool(self
,arg0
,arg1
,*args
):
161 val
= apply(stattoolc
.wxToolBar_AddSimpleTool
,(self
.this
,arg0
,arg1
.this
,)+args
)
162 val
= wxToolBarToolPtr(val
)
164 def EnableTool(self
,arg0
,arg1
):
165 val
= stattoolc
.wxToolBar_EnableTool(self
.this
,arg0
,arg1
)
167 def GetToolEnabled(self
,arg0
):
168 val
= stattoolc
.wxToolBar_GetToolEnabled(self
.this
,arg0
)
170 def GetToolLongHelp(self
,arg0
):
171 val
= stattoolc
.wxToolBar_GetToolLongHelp(self
.this
,arg0
)
173 def GetToolPacking(self
):
174 val
= stattoolc
.wxToolBar_GetToolPacking(self
.this
)
176 def GetToolSeparation(self
):
177 val
= stattoolc
.wxToolBar_GetToolSeparation(self
.this
)
179 def GetToolShortHelp(self
,arg0
):
180 val
= stattoolc
.wxToolBar_GetToolShortHelp(self
.this
,arg0
)
182 def GetToolState(self
,arg0
):
183 val
= stattoolc
.wxToolBar_GetToolState(self
.this
,arg0
)
186 val
= stattoolc
.wxToolBar_Realize(self
.this
)
188 def SetToolLongHelp(self
,arg0
,arg1
):
189 val
= stattoolc
.wxToolBar_SetToolLongHelp(self
.this
,arg0
,arg1
)
191 def SetToolShortHelp(self
,arg0
,arg1
):
192 val
= stattoolc
.wxToolBar_SetToolShortHelp(self
.this
,arg0
,arg1
)
194 def SetMargins(self
,arg0
):
195 val
= stattoolc
.wxToolBar_SetMargins(self
.this
,arg0
.this
)
197 def SetToolPacking(self
,arg0
):
198 val
= stattoolc
.wxToolBar_SetToolPacking(self
.this
,arg0
)
200 def SetToolSeparation(self
,arg0
):
201 val
= stattoolc
.wxToolBar_SetToolSeparation(self
.this
,arg0
)
203 def ToggleTool(self
,arg0
,arg1
):
204 val
= stattoolc
.wxToolBar_ToggleTool(self
.this
,arg0
,arg1
)
207 return "<C wxToolBar instance>"
208 class wxToolBar(wxToolBarPtr
):
209 def __init__(self
,arg0
,arg1
,*args
) :
210 argl
= map(None,args
)
211 try: argl
[0] = argl
[0].this
213 try: argl
[1] = argl
[1].this
216 self
.this
= apply(stattoolc
.new_wxToolBar
,(arg0
.this
,arg1
,)+args
)
218 wx
._StdWindowCallbacks
(self
)
225 #-------------- FUNCTION WRAPPERS ------------------
229 #-------------- VARIABLE WRAPPERS ------------------