1 # This file was created automatically by SWIG.
10 from controls
import *
15 class wxSizerItemPtr
:
16 def __init__(self
,this
):
19 def GetSize(self
, *_args
, **_kwargs
):
20 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
21 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
23 def CalcMin(self
, *_args
, **_kwargs
):
24 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
25 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
27 def SetDimension(self
, *_args
, **_kwargs
):
28 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
30 def IsWindow(self
, *_args
, **_kwargs
):
31 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
33 def IsSizer(self
, *_args
, **_kwargs
):
34 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
36 def IsSpacer(self
, *_args
, **_kwargs
):
37 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
39 def GetWindow(self
, *_args
, **_kwargs
):
40 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
41 if val
: val
= wxWindowPtr(val
)
43 def GetSizer(self
, *_args
, **_kwargs
):
44 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
45 if val
: val
= wxSizerPtr(val
)
47 def GetOption(self
, *_args
, **_kwargs
):
48 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
50 def GetFlag(self
, *_args
, **_kwargs
):
51 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
53 def GetBorder(self
, *_args
, **_kwargs
):
54 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
56 def GetUserData(self
, *_args
, **_kwargs
):
57 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
60 return "<C wxSizerItem instance at %s>" % (self
.this
,)
61 class wxSizerItem(wxSizerItemPtr
):
62 def __init__(self
,this
):
69 def __init__(self
,this
):
72 def Destroy(self
, *_args
, **_kwargs
):
73 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
75 def AddWindow(self
, *_args
, **_kwargs
):
76 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
78 def AddSizer(self
, *_args
, **_kwargs
):
79 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
81 def AddSpacer(self
, *_args
, **_kwargs
):
82 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
84 def PrependWindow(self
, *_args
, **_kwargs
):
85 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
87 def PrependSizer(self
, *_args
, **_kwargs
):
88 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
90 def PrependSpacer(self
, *_args
, **_kwargs
):
91 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
93 def RemoveWindow(self
, *_args
, **_kwargs
):
94 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
96 def RemoveSizer(self
, *_args
, **_kwargs
):
97 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
99 def RemovePos(self
, *_args
, **_kwargs
):
100 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
102 def SetDimension(self
, *_args
, **_kwargs
):
103 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
105 def GetSize(self
, *_args
, **_kwargs
):
106 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
107 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
109 def GetPosition(self
, *_args
, **_kwargs
):
110 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
111 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
113 def GetMinSize(self
, *_args
, **_kwargs
):
114 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
115 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
117 def Layout(self
, *_args
, **_kwargs
):
118 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
120 def Fit(self
, *_args
, **_kwargs
):
121 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
123 def SetSizeHints(self
, *_args
, **_kwargs
):
124 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
126 def GetChildren(self
, *_args
, **_kwargs
):
127 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
130 return "<C wxSizer instance at %s>" % (self
.this
,)
132 def Add(self
, *args
):
133 if type(args
[0]) == type(1):
134 apply(self
.AddSpacer
, args
)
135 elif string
.find(args
[0].this
, 'Sizer') != -1:
136 apply(self
.AddSizer
, args
)
138 apply(self
.AddWindow
, args
)
140 def Prepend(self
, *args
):
141 if type(args
[0]) == type(1):
142 apply(self
.PrependSpacer
, args
)
143 elif string
.find(args
[0].this
, 'Sizer') != -1:
144 apply(self
.PrependSizer
, args
)
146 apply(self
.PrependWindow
, args
)
148 def Remove(self
, *args
):
149 if type(args
[0]) == type(1):
150 apply(self
.RemovePos
, args
)
151 elif string
.find(args
[0].this
, 'Sizer') != -1:
152 apply(self
.RemoveSizer
, args
)
154 apply(self
.RemoveWindow
, args
)
156 def AddMany(self
, widgets
):
157 for childinfo
in widgets
:
158 if type(childinfo
) != type(()):
159 childinfo
= (childinfo
, )
160 apply(self
.Add
, childinfo
)
162 class wxSizer(wxSizerPtr
):
163 def __init__(self
,this
):
169 class wxPySizerPtr(wxSizerPtr
):
170 def __init__(self
,this
):
173 def _setSelf(self
, *_args
, **_kwargs
):
174 val
= apply(sizersc
.wxPySizer__setSelf
,(self
,) + _args
, _kwargs
)
177 return "<C wxPySizer instance at %s>" % (self
.this
,)
178 class wxPySizer(wxPySizerPtr
):
179 def __init__(self
,*_args
,**_kwargs
):
180 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
187 class wxBoxSizerPtr(wxSizerPtr
):
188 def __init__(self
,this
):
191 def GetOrientation(self
, *_args
, **_kwargs
):
192 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
195 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
196 class wxBoxSizer(wxBoxSizerPtr
):
197 def __init__(self
,*_args
,**_kwargs
):
198 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
204 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
205 def __init__(self
,this
):
208 def GetStaticBox(self
, *_args
, **_kwargs
):
209 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
210 if val
: val
= wxStaticBoxPtr(val
)
213 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
214 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
215 def __init__(self
,*_args
,**_kwargs
):
216 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
224 #-------------- FUNCTION WRAPPERS ------------------
228 #-------------- VARIABLE WRAPPERS ------------------