1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
17 class wxSizerItemPtr
:
18 def __init__(self
,this
):
21 def GetSize(self
, *_args
, **_kwargs
):
22 val
= apply(sizersc
.wxSizerItem_GetSize
,(self
,) + _args
, _kwargs
)
23 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
25 def CalcMin(self
, *_args
, **_kwargs
):
26 val
= apply(sizersc
.wxSizerItem_CalcMin
,(self
,) + _args
, _kwargs
)
27 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
29 def SetDimension(self
, *_args
, **_kwargs
):
30 val
= apply(sizersc
.wxSizerItem_SetDimension
,(self
,) + _args
, _kwargs
)
32 def IsWindow(self
, *_args
, **_kwargs
):
33 val
= apply(sizersc
.wxSizerItem_IsWindow
,(self
,) + _args
, _kwargs
)
35 def IsSizer(self
, *_args
, **_kwargs
):
36 val
= apply(sizersc
.wxSizerItem_IsSizer
,(self
,) + _args
, _kwargs
)
38 def IsSpacer(self
, *_args
, **_kwargs
):
39 val
= apply(sizersc
.wxSizerItem_IsSpacer
,(self
,) + _args
, _kwargs
)
41 def GetWindow(self
, *_args
, **_kwargs
):
42 val
= apply(sizersc
.wxSizerItem_GetWindow
,(self
,) + _args
, _kwargs
)
43 if val
: val
= wxWindowPtr(val
)
45 def GetSizer(self
, *_args
, **_kwargs
):
46 val
= apply(sizersc
.wxSizerItem_GetSizer
,(self
,) + _args
, _kwargs
)
47 if val
: val
= wxSizerPtr(val
)
49 def GetOption(self
, *_args
, **_kwargs
):
50 val
= apply(sizersc
.wxSizerItem_GetOption
,(self
,) + _args
, _kwargs
)
52 def GetFlag(self
, *_args
, **_kwargs
):
53 val
= apply(sizersc
.wxSizerItem_GetFlag
,(self
,) + _args
, _kwargs
)
55 def GetBorder(self
, *_args
, **_kwargs
):
56 val
= apply(sizersc
.wxSizerItem_GetBorder
,(self
,) + _args
, _kwargs
)
58 def SetInitSize(self
, *_args
, **_kwargs
):
59 val
= apply(sizersc
.wxSizerItem_SetInitSize
,(self
,) + _args
, _kwargs
)
61 def SetOption(self
, *_args
, **_kwargs
):
62 val
= apply(sizersc
.wxSizerItem_SetOption
,(self
,) + _args
, _kwargs
)
64 def SetFlag(self
, *_args
, **_kwargs
):
65 val
= apply(sizersc
.wxSizerItem_SetFlag
,(self
,) + _args
, _kwargs
)
67 def SetBorder(self
, *_args
, **_kwargs
):
68 val
= apply(sizersc
.wxSizerItem_SetBorder
,(self
,) + _args
, _kwargs
)
70 def GetUserData(self
, *_args
, **_kwargs
):
71 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
74 return "<C wxSizerItem instance at %s>" % (self
.this
,)
75 class wxSizerItem(wxSizerItemPtr
):
76 def __init__(self
,this
):
83 def __init__(self
,this
):
86 def Destroy(self
, *_args
, **_kwargs
):
87 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
89 def AddWindow(self
, *_args
, **_kwargs
):
90 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
92 def AddSizer(self
, *_args
, **_kwargs
):
93 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
95 def AddSpacer(self
, *_args
, **_kwargs
):
96 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
98 def PrependWindow(self
, *_args
, **_kwargs
):
99 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
101 def PrependSizer(self
, *_args
, **_kwargs
):
102 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
104 def PrependSpacer(self
, *_args
, **_kwargs
):
105 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
107 def RemoveWindow(self
, *_args
, **_kwargs
):
108 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
110 def RemoveSizer(self
, *_args
, **_kwargs
):
111 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
113 def RemovePos(self
, *_args
, **_kwargs
):
114 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
116 def SetDimension(self
, *_args
, **_kwargs
):
117 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
119 def GetSize(self
, *_args
, **_kwargs
):
120 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
121 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
123 def GetPosition(self
, *_args
, **_kwargs
):
124 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
125 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
127 def GetMinSize(self
, *_args
, **_kwargs
):
128 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
129 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
131 def Layout(self
, *_args
, **_kwargs
):
132 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
134 def Fit(self
, *_args
, **_kwargs
):
135 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
137 def SetSizeHints(self
, *_args
, **_kwargs
):
138 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
140 def GetChildren(self
, *_args
, **_kwargs
):
141 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
144 return "<C wxSizer instance at %s>" % (self
.this
,)
146 def Add(self
, *args
):
147 if type(args
[0]) == type(1):
148 apply(self
.AddSpacer
, args
)
149 elif string
.find(args
[0].this
, 'Sizer') != -1:
150 apply(self
.AddSizer
, args
)
152 apply(self
.AddWindow
, args
)
154 def Prepend(self
, *args
):
155 if type(args
[0]) == type(1):
156 apply(self
.PrependSpacer
, args
)
157 elif string
.find(args
[0].this
, 'Sizer') != -1:
158 apply(self
.PrependSizer
, args
)
160 apply(self
.PrependWindow
, args
)
162 def Remove(self
, *args
):
163 if type(args
[0]) == type(1):
164 apply(self
.RemovePos
, args
)
165 elif string
.find(args
[0].this
, 'Sizer') != -1:
166 apply(self
.RemoveSizer
, args
)
168 apply(self
.RemoveWindow
, args
)
170 def AddMany(self
, widgets
):
171 for childinfo
in widgets
:
172 if type(childinfo
) != type(()):
173 childinfo
= (childinfo
, )
174 apply(self
.Add
, childinfo
)
176 class wxSizer(wxSizerPtr
):
177 def __init__(self
,this
):
183 class wxPySizerPtr(wxSizerPtr
):
184 def __init__(self
,this
):
187 def _setSelf(self
, *_args
, **_kwargs
):
188 val
= apply(sizersc
.wxPySizer__setSelf
,(self
,) + _args
, _kwargs
)
191 return "<C wxPySizer instance at %s>" % (self
.this
,)
192 class wxPySizer(wxPySizerPtr
):
193 def __init__(self
,*_args
,**_kwargs
):
194 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
201 class wxBoxSizerPtr(wxSizerPtr
):
202 def __init__(self
,this
):
205 def GetOrientation(self
, *_args
, **_kwargs
):
206 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
209 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
210 class wxBoxSizer(wxBoxSizerPtr
):
211 def __init__(self
,*_args
,**_kwargs
):
212 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
218 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
219 def __init__(self
,this
):
222 def GetStaticBox(self
, *_args
, **_kwargs
):
223 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
224 if val
: val
= wxStaticBoxPtr(val
)
227 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
228 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
229 def __init__(self
,*_args
,**_kwargs
):
230 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
238 #-------------- FUNCTION WRAPPERS ------------------
242 #-------------- VARIABLE WRAPPERS ------------------