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 __setattr__(self
,name
,value
):
65 if name
== "m_toolStyle" :
66 stattoolc
.wxToolBarTool_m_toolStyle_set(self
,value
)
68 if name
== "m_clientData" :
69 stattoolc
.wxToolBarTool_m_clientData_set(self
,value
)
71 if name
== "m_index" :
72 stattoolc
.wxToolBarTool_m_index_set(self
,value
)
74 if name
== "m_toggleState" :
75 stattoolc
.wxToolBarTool_m_toggleState_set(self
,value
)
77 if name
== "m_isToggle" :
78 stattoolc
.wxToolBarTool_m_isToggle_set(self
,value
)
80 if name
== "m_deleteSecondBitmap" :
81 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
,value
)
83 if name
== "m_enabled" :
84 stattoolc
.wxToolBarTool_m_enabled_set(self
,value
)
86 if name
== "m_bitmap1" :
87 stattoolc
.wxToolBarTool_m_bitmap1_set(self
,value
.this
)
89 if name
== "m_bitmap2" :
90 stattoolc
.wxToolBarTool_m_bitmap2_set(self
,value
.this
)
92 if name
== "m_isMenuCommand" :
93 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
,value
)
95 if name
== "m_shortHelpString" :
96 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
,value
)
98 if name
== "m_longHelpString" :
99 stattoolc
.wxToolBarTool_m_longHelpString_set(self
,value
)
101 self
.__dict
__[name
] = value
102 def __getattr__(self
,name
):
103 if name
== "m_toolStyle" :
104 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
)
105 if name
== "m_clientData" :
106 return stattoolc
.wxToolBarTool_m_clientData_get(self
)
107 if name
== "m_index" :
108 return stattoolc
.wxToolBarTool_m_index_get(self
)
109 if name
== "m_toggleState" :
110 return stattoolc
.wxToolBarTool_m_toggleState_get(self
)
111 if name
== "m_isToggle" :
112 return stattoolc
.wxToolBarTool_m_isToggle_get(self
)
113 if name
== "m_deleteSecondBitmap" :
114 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
)
115 if name
== "m_enabled" :
116 return stattoolc
.wxToolBarTool_m_enabled_get(self
)
117 if name
== "m_bitmap1" :
118 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
))
119 if name
== "m_bitmap2" :
120 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
))
121 if name
== "m_isMenuCommand" :
122 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
)
123 if name
== "m_shortHelpString" :
124 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
)
125 if name
== "m_longHelpString" :
126 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
)
127 raise AttributeError,name
129 return "<C wxToolBarTool instance at %s>" % (self
.this
,)
130 class wxToolBarTool(wxToolBarToolPtr
):
131 def __init__(self
,*_args
,**_kwargs
):
132 self
.this
= apply(stattoolc
.new_wxToolBarTool
,_args
,_kwargs
)
138 class wxToolBarPtr(wxControlPtr
):
139 def __init__(self
,this
):
142 def AddSeparator(self
, *_args
, **_kwargs
):
143 val
= apply(stattoolc
.wxToolBar_AddSeparator
,(self
,) + _args
, _kwargs
)
145 def AddTool(self
, *_args
, **_kwargs
):
146 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
,) + _args
, _kwargs
)
147 if val
: val
= wxToolBarToolPtr(val
)
149 def AddSimpleTool(self
, *_args
, **_kwargs
):
150 val
= apply(stattoolc
.wxToolBar_AddSimpleTool
,(self
,) + _args
, _kwargs
)
151 if val
: val
= wxToolBarToolPtr(val
)
153 def EnableTool(self
, *_args
, **_kwargs
):
154 val
= apply(stattoolc
.wxToolBar_EnableTool
,(self
,) + _args
, _kwargs
)
156 def GetToolEnabled(self
, *_args
, **_kwargs
):
157 val
= apply(stattoolc
.wxToolBar_GetToolEnabled
,(self
,) + _args
, _kwargs
)
159 def GetToolLongHelp(self
, *_args
, **_kwargs
):
160 val
= apply(stattoolc
.wxToolBar_GetToolLongHelp
,(self
,) + _args
, _kwargs
)
162 def GetToolPacking(self
, *_args
, **_kwargs
):
163 val
= apply(stattoolc
.wxToolBar_GetToolPacking
,(self
,) + _args
, _kwargs
)
165 def GetToolSeparation(self
, *_args
, **_kwargs
):
166 val
= apply(stattoolc
.wxToolBar_GetToolSeparation
,(self
,) + _args
, _kwargs
)
168 def GetToolShortHelp(self
, *_args
, **_kwargs
):
169 val
= apply(stattoolc
.wxToolBar_GetToolShortHelp
,(self
,) + _args
, _kwargs
)
171 def GetToolState(self
, *_args
, **_kwargs
):
172 val
= apply(stattoolc
.wxToolBar_GetToolState
,(self
,) + _args
, _kwargs
)
174 def Realize(self
, *_args
, **_kwargs
):
175 val
= apply(stattoolc
.wxToolBar_Realize
,(self
,) + _args
, _kwargs
)
177 def SetToolLongHelp(self
, *_args
, **_kwargs
):
178 val
= apply(stattoolc
.wxToolBar_SetToolLongHelp
,(self
,) + _args
, _kwargs
)
180 def SetToolShortHelp(self
, *_args
, **_kwargs
):
181 val
= apply(stattoolc
.wxToolBar_SetToolShortHelp
,(self
,) + _args
, _kwargs
)
183 def SetMargins(self
, *_args
, **_kwargs
):
184 val
= apply(stattoolc
.wxToolBar_SetMargins
,(self
,) + _args
, _kwargs
)
186 def SetToolPacking(self
, *_args
, **_kwargs
):
187 val
= apply(stattoolc
.wxToolBar_SetToolPacking
,(self
,) + _args
, _kwargs
)
189 def SetToolSeparation(self
, *_args
, **_kwargs
):
190 val
= apply(stattoolc
.wxToolBar_SetToolSeparation
,(self
,) + _args
, _kwargs
)
192 def ToggleTool(self
, *_args
, **_kwargs
):
193 val
= apply(stattoolc
.wxToolBar_ToggleTool
,(self
,) + _args
, _kwargs
)
196 return "<C wxToolBar instance at %s>" % (self
.this
,)
197 class wxToolBar(wxToolBarPtr
):
198 def __init__(self
,*_args
,**_kwargs
):
199 self
.this
= apply(stattoolc
.new_wxToolBar
,_args
,_kwargs
)
201 wx
._StdWindowCallbacks
(self
)
208 #-------------- FUNCTION WRAPPERS ------------------
212 #-------------- VARIABLE WRAPPERS ------------------