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 __setattr__(self
,name
,value
):
71 if name
== "m_toolStyle" :
72 stattoolc
.wxToolBarTool_m_toolStyle_set(self
.this
,value
)
74 if name
== "m_clientData" :
75 stattoolc
.wxToolBarTool_m_clientData_set(self
.this
,value
)
77 if name
== "m_index" :
78 stattoolc
.wxToolBarTool_m_index_set(self
.this
,value
)
80 if name
== "m_toggleState" :
81 stattoolc
.wxToolBarTool_m_toggleState_set(self
.this
,value
)
83 if name
== "m_isToggle" :
84 stattoolc
.wxToolBarTool_m_isToggle_set(self
.this
,value
)
86 if name
== "m_deleteSecondBitmap" :
87 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
.this
,value
)
89 if name
== "m_enabled" :
90 stattoolc
.wxToolBarTool_m_enabled_set(self
.this
,value
)
92 if name
== "m_bitmap1" :
93 stattoolc
.wxToolBarTool_m_bitmap1_set(self
.this
,value
.this
)
95 if name
== "m_bitmap2" :
96 stattoolc
.wxToolBarTool_m_bitmap2_set(self
.this
,value
.this
)
98 if name
== "m_isMenuCommand" :
99 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
.this
,value
)
101 if name
== "m_shortHelpString" :
102 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
.this
,value
)
104 if name
== "m_longHelpString" :
105 stattoolc
.wxToolBarTool_m_longHelpString_set(self
.this
,value
)
107 self
.__dict
__[name
] = value
108 def __getattr__(self
,name
):
109 if name
== "m_toolStyle" :
110 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
.this
)
111 if name
== "m_clientData" :
112 return stattoolc
.wxToolBarTool_m_clientData_get(self
.this
)
113 if name
== "m_index" :
114 return stattoolc
.wxToolBarTool_m_index_get(self
.this
)
115 if name
== "m_toggleState" :
116 return stattoolc
.wxToolBarTool_m_toggleState_get(self
.this
)
117 if name
== "m_isToggle" :
118 return stattoolc
.wxToolBarTool_m_isToggle_get(self
.this
)
119 if name
== "m_deleteSecondBitmap" :
120 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
.this
)
121 if name
== "m_enabled" :
122 return stattoolc
.wxToolBarTool_m_enabled_get(self
.this
)
123 if name
== "m_bitmap1" :
124 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
.this
))
125 if name
== "m_bitmap2" :
126 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
.this
))
127 if name
== "m_isMenuCommand" :
128 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
.this
)
129 if name
== "m_shortHelpString" :
130 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
.this
)
131 if name
== "m_longHelpString" :
132 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
.this
)
133 raise AttributeError,name
135 return "<C wxToolBarTool instance>"
136 class wxToolBarTool(wxToolBarToolPtr
):
138 self
.this
= stattoolc
.new_wxToolBarTool()
144 class wxToolBarPtr(wxControlPtr
):
145 def __init__(self
,this
):
148 def AddSeparator(self
):
149 val
= stattoolc
.wxToolBar_AddSeparator(self
.this
)
151 def AddTool(self
,arg0
,arg1
,*args
):
152 argl
= map(None,args
)
153 try: argl
[0] = argl
[0].this
156 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
.this
,arg0
,arg1
.this
,)+args
)
157 val
= wxToolBarToolPtr(val
)
159 def EnableTool(self
,arg0
,arg1
):
160 val
= stattoolc
.wxToolBar_EnableTool(self
.this
,arg0
,arg1
)
162 def GetToolEnabled(self
,arg0
):
163 val
= stattoolc
.wxToolBar_GetToolEnabled(self
.this
,arg0
)
165 def GetToolState(self
,arg0
):
166 val
= stattoolc
.wxToolBar_GetToolState(self
.this
,arg0
)
169 val
= stattoolc
.wxToolBar_Realize(self
.this
)
171 def SetMargins(self
,arg0
):
172 val
= stattoolc
.wxToolBar_SetMargins(self
.this
,arg0
.this
)
174 def SetToolPacking(self
,arg0
):
175 val
= stattoolc
.wxToolBar_SetToolPacking(self
.this
,arg0
)
177 def SetToolSeparation(self
,arg0
):
178 val
= stattoolc
.wxToolBar_SetToolSeparation(self
.this
,arg0
)
180 def ToggleTool(self
,arg0
,arg1
):
181 val
= stattoolc
.wxToolBar_ToggleTool(self
.this
,arg0
,arg1
)
184 return "<C wxToolBar instance>"
185 class wxToolBar(wxToolBarPtr
):
186 def __init__(self
,arg0
,arg1
,*args
) :
187 argl
= map(None,args
)
188 try: argl
[0] = argl
[0].this
190 try: argl
[1] = argl
[1].this
193 self
.this
= apply(stattoolc
.new_wxToolBar
,(arg0
.this
,arg1
,)+args
)
195 wxp
._StdWindowCallbacks
(self
)
202 #-------------- FUNCTION WRAPPERS ------------------
206 #-------------- VARIABLE WRAPPERS ------------------