1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
16 class wxStatusBarPtr(wxWindowPtr
):
17 def __init__(self
,this
):
20 def GetFieldRect(self
, *_args
, **_kwargs
):
21 val
= apply(stattoolc
.wxStatusBar_GetFieldRect
,(self
,) + _args
, _kwargs
)
22 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
24 def GetFieldsCount(self
, *_args
, **_kwargs
):
25 val
= apply(stattoolc
.wxStatusBar_GetFieldsCount
,(self
,) + _args
, _kwargs
)
27 def GetStatusText(self
, *_args
, **_kwargs
):
28 val
= apply(stattoolc
.wxStatusBar_GetStatusText
,(self
,) + _args
, _kwargs
)
30 def DrawField(self
, *_args
, **_kwargs
):
31 val
= apply(stattoolc
.wxStatusBar_DrawField
,(self
,) + _args
, _kwargs
)
33 def DrawFieldText(self
, *_args
, **_kwargs
):
34 val
= apply(stattoolc
.wxStatusBar_DrawFieldText
,(self
,) + _args
, _kwargs
)
36 def InitColours(self
, *_args
, **_kwargs
):
37 val
= apply(stattoolc
.wxStatusBar_InitColours
,(self
,) + _args
, _kwargs
)
39 def SetFieldsCount(self
, *_args
, **_kwargs
):
40 val
= apply(stattoolc
.wxStatusBar_SetFieldsCount
,(self
,) + _args
, _kwargs
)
42 def SetStatusText(self
, *_args
, **_kwargs
):
43 val
= apply(stattoolc
.wxStatusBar_SetStatusText
,(self
,) + _args
, _kwargs
)
45 def SetStatusWidths(self
, *_args
, **_kwargs
):
46 val
= apply(stattoolc
.wxStatusBar_SetStatusWidths
,(self
,) + _args
, _kwargs
)
49 return "<C wxStatusBar instance at %s>" % (self
.this
,)
50 class wxStatusBar(wxStatusBarPtr
):
51 def __init__(self
,*_args
,**_kwargs
):
52 self
.this
= apply(stattoolc
.new_wxStatusBar
,_args
,_kwargs
)
54 wx
._StdWindowCallbacks
(self
)
59 class wxToolBarToolPtr
:
60 def __init__(self
,this
):
63 def __del__(self
,stattoolc
=stattoolc
):
64 if self
.thisown
== 1 :
65 stattoolc
.delete_wxToolBarTool(self
)
66 def __setattr__(self
,name
,value
):
67 if name
== "m_toolStyle" :
68 stattoolc
.wxToolBarTool_m_toolStyle_set(self
,value
)
70 if name
== "m_clientData" :
71 stattoolc
.wxToolBarTool_m_clientData_set(self
,value
)
73 if name
== "m_index" :
74 stattoolc
.wxToolBarTool_m_index_set(self
,value
)
76 if name
== "m_toggleState" :
77 stattoolc
.wxToolBarTool_m_toggleState_set(self
,value
)
79 if name
== "m_isToggle" :
80 stattoolc
.wxToolBarTool_m_isToggle_set(self
,value
)
82 if name
== "m_deleteSecondBitmap" :
83 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
,value
)
85 if name
== "m_enabled" :
86 stattoolc
.wxToolBarTool_m_enabled_set(self
,value
)
88 if name
== "m_bitmap1" :
89 stattoolc
.wxToolBarTool_m_bitmap1_set(self
,value
.this
)
91 if name
== "m_bitmap2" :
92 stattoolc
.wxToolBarTool_m_bitmap2_set(self
,value
.this
)
94 if name
== "m_isMenuCommand" :
95 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
,value
)
97 if name
== "m_shortHelpString" :
98 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
,value
)
100 if name
== "m_longHelpString" :
101 stattoolc
.wxToolBarTool_m_longHelpString_set(self
,value
)
103 self
.__dict
__[name
] = value
104 def __getattr__(self
,name
):
105 if name
== "m_toolStyle" :
106 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
)
107 if name
== "m_clientData" :
108 return stattoolc
.wxToolBarTool_m_clientData_get(self
)
109 if name
== "m_index" :
110 return stattoolc
.wxToolBarTool_m_index_get(self
)
111 if name
== "m_toggleState" :
112 return stattoolc
.wxToolBarTool_m_toggleState_get(self
)
113 if name
== "m_isToggle" :
114 return stattoolc
.wxToolBarTool_m_isToggle_get(self
)
115 if name
== "m_deleteSecondBitmap" :
116 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
)
117 if name
== "m_enabled" :
118 return stattoolc
.wxToolBarTool_m_enabled_get(self
)
119 if name
== "m_bitmap1" :
120 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
))
121 if name
== "m_bitmap2" :
122 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
))
123 if name
== "m_isMenuCommand" :
124 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
)
125 if name
== "m_shortHelpString" :
126 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
)
127 if name
== "m_longHelpString" :
128 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
)
129 raise AttributeError,name
131 return "<C wxToolBarTool instance at %s>" % (self
.this
,)
132 class wxToolBarTool(wxToolBarToolPtr
):
133 def __init__(self
,*_args
,**_kwargs
):
134 self
.this
= apply(stattoolc
.new_wxToolBarTool
,_args
,_kwargs
)
140 class wxToolBarPtr(wxControlPtr
):
141 def __init__(self
,this
):
144 def AddSeparator(self
, *_args
, **_kwargs
):
145 val
= apply(stattoolc
.wxToolBar_AddSeparator
,(self
,) + _args
, _kwargs
)
147 def AddTool(self
, *_args
, **_kwargs
):
148 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
,) + _args
, _kwargs
)
149 if val
: val
= wxToolBarToolPtr(val
)
151 def AddSimpleTool(self
, *_args
, **_kwargs
):
152 val
= apply(stattoolc
.wxToolBar_AddSimpleTool
,(self
,) + _args
, _kwargs
)
153 if val
: val
= wxToolBarToolPtr(val
)
155 def EnableTool(self
, *_args
, **_kwargs
):
156 val
= apply(stattoolc
.wxToolBar_EnableTool
,(self
,) + _args
, _kwargs
)
158 def GetToolEnabled(self
, *_args
, **_kwargs
):
159 val
= apply(stattoolc
.wxToolBar_GetToolEnabled
,(self
,) + _args
, _kwargs
)
161 def GetToolLongHelp(self
, *_args
, **_kwargs
):
162 val
= apply(stattoolc
.wxToolBar_GetToolLongHelp
,(self
,) + _args
, _kwargs
)
164 def GetToolPacking(self
, *_args
, **_kwargs
):
165 val
= apply(stattoolc
.wxToolBar_GetToolPacking
,(self
,) + _args
, _kwargs
)
167 def GetToolSeparation(self
, *_args
, **_kwargs
):
168 val
= apply(stattoolc
.wxToolBar_GetToolSeparation
,(self
,) + _args
, _kwargs
)
170 def GetToolShortHelp(self
, *_args
, **_kwargs
):
171 val
= apply(stattoolc
.wxToolBar_GetToolShortHelp
,(self
,) + _args
, _kwargs
)
173 def GetToolState(self
, *_args
, **_kwargs
):
174 val
= apply(stattoolc
.wxToolBar_GetToolState
,(self
,) + _args
, _kwargs
)
176 def Realize(self
, *_args
, **_kwargs
):
177 val
= apply(stattoolc
.wxToolBar_Realize
,(self
,) + _args
, _kwargs
)
179 def SetToolLongHelp(self
, *_args
, **_kwargs
):
180 val
= apply(stattoolc
.wxToolBar_SetToolLongHelp
,(self
,) + _args
, _kwargs
)
182 def SetToolShortHelp(self
, *_args
, **_kwargs
):
183 val
= apply(stattoolc
.wxToolBar_SetToolShortHelp
,(self
,) + _args
, _kwargs
)
185 def SetMargins(self
, *_args
, **_kwargs
):
186 val
= apply(stattoolc
.wxToolBar_SetMargins
,(self
,) + _args
, _kwargs
)
188 def SetToolPacking(self
, *_args
, **_kwargs
):
189 val
= apply(stattoolc
.wxToolBar_SetToolPacking
,(self
,) + _args
, _kwargs
)
191 def SetToolSeparation(self
, *_args
, **_kwargs
):
192 val
= apply(stattoolc
.wxToolBar_SetToolSeparation
,(self
,) + _args
, _kwargs
)
194 def ToggleTool(self
, *_args
, **_kwargs
):
195 val
= apply(stattoolc
.wxToolBar_ToggleTool
,(self
,) + _args
, _kwargs
)
198 return "<C wxToolBar instance at %s>" % (self
.this
,)
199 class wxToolBar(wxToolBarPtr
):
200 def __init__(self
,*_args
,**_kwargs
):
201 self
.this
= apply(stattoolc
.new_wxToolBar
,_args
,_kwargs
)
203 wx
._StdWindowCallbacks
(self
)
210 #-------------- FUNCTION WRAPPERS ------------------
214 #-------------- VARIABLE WRAPPERS ------------------