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 GetUserData(self
, *_args
, **_kwargs
):
59 val
= apply(sizersc
.wxSizerItem_GetUserData
,(self
,) + _args
, _kwargs
)
62 return "<C wxSizerItem instance at %s>" % (self
.this
,)
63 class wxSizerItem(wxSizerItemPtr
):
64 def __init__(self
,this
):
71 def __init__(self
,this
):
74 def Destroy(self
, *_args
, **_kwargs
):
75 val
= apply(sizersc
.wxSizer_Destroy
,(self
,) + _args
, _kwargs
)
77 def AddWindow(self
, *_args
, **_kwargs
):
78 val
= apply(sizersc
.wxSizer_AddWindow
,(self
,) + _args
, _kwargs
)
80 def AddSizer(self
, *_args
, **_kwargs
):
81 val
= apply(sizersc
.wxSizer_AddSizer
,(self
,) + _args
, _kwargs
)
83 def AddSpacer(self
, *_args
, **_kwargs
):
84 val
= apply(sizersc
.wxSizer_AddSpacer
,(self
,) + _args
, _kwargs
)
86 def PrependWindow(self
, *_args
, **_kwargs
):
87 val
= apply(sizersc
.wxSizer_PrependWindow
,(self
,) + _args
, _kwargs
)
89 def PrependSizer(self
, *_args
, **_kwargs
):
90 val
= apply(sizersc
.wxSizer_PrependSizer
,(self
,) + _args
, _kwargs
)
92 def PrependSpacer(self
, *_args
, **_kwargs
):
93 val
= apply(sizersc
.wxSizer_PrependSpacer
,(self
,) + _args
, _kwargs
)
95 def RemoveWindow(self
, *_args
, **_kwargs
):
96 val
= apply(sizersc
.wxSizer_RemoveWindow
,(self
,) + _args
, _kwargs
)
98 def RemoveSizer(self
, *_args
, **_kwargs
):
99 val
= apply(sizersc
.wxSizer_RemoveSizer
,(self
,) + _args
, _kwargs
)
101 def RemovePos(self
, *_args
, **_kwargs
):
102 val
= apply(sizersc
.wxSizer_RemovePos
,(self
,) + _args
, _kwargs
)
104 def SetDimension(self
, *_args
, **_kwargs
):
105 val
= apply(sizersc
.wxSizer_SetDimension
,(self
,) + _args
, _kwargs
)
107 def GetSize(self
, *_args
, **_kwargs
):
108 val
= apply(sizersc
.wxSizer_GetSize
,(self
,) + _args
, _kwargs
)
109 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
111 def GetPosition(self
, *_args
, **_kwargs
):
112 val
= apply(sizersc
.wxSizer_GetPosition
,(self
,) + _args
, _kwargs
)
113 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
115 def GetMinSize(self
, *_args
, **_kwargs
):
116 val
= apply(sizersc
.wxSizer_GetMinSize
,(self
,) + _args
, _kwargs
)
117 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
119 def Layout(self
, *_args
, **_kwargs
):
120 val
= apply(sizersc
.wxSizer_Layout
,(self
,) + _args
, _kwargs
)
122 def Fit(self
, *_args
, **_kwargs
):
123 val
= apply(sizersc
.wxSizer_Fit
,(self
,) + _args
, _kwargs
)
125 def SetSizeHints(self
, *_args
, **_kwargs
):
126 val
= apply(sizersc
.wxSizer_SetSizeHints
,(self
,) + _args
, _kwargs
)
128 def GetChildren(self
, *_args
, **_kwargs
):
129 val
= apply(sizersc
.wxSizer_GetChildren
,(self
,) + _args
, _kwargs
)
132 return "<C wxSizer instance at %s>" % (self
.this
,)
134 def Add(self
, *args
):
135 if type(args
[0]) == type(1):
136 apply(self
.AddSpacer
, args
)
137 elif string
.find(args
[0].this
, 'Sizer') != -1:
138 apply(self
.AddSizer
, args
)
140 apply(self
.AddWindow
, args
)
142 def Prepend(self
, *args
):
143 if type(args
[0]) == type(1):
144 apply(self
.PrependSpacer
, args
)
145 elif string
.find(args
[0].this
, 'Sizer') != -1:
146 apply(self
.PrependSizer
, args
)
148 apply(self
.PrependWindow
, args
)
150 def Remove(self
, *args
):
151 if type(args
[0]) == type(1):
152 apply(self
.RemovePos
, args
)
153 elif string
.find(args
[0].this
, 'Sizer') != -1:
154 apply(self
.RemoveSizer
, args
)
156 apply(self
.RemoveWindow
, args
)
158 def AddMany(self
, widgets
):
159 for childinfo
in widgets
:
160 if type(childinfo
) != type(()):
161 childinfo
= (childinfo
, )
162 apply(self
.Add
, childinfo
)
164 class wxSizer(wxSizerPtr
):
165 def __init__(self
,this
):
171 class wxPySizerPtr(wxSizerPtr
):
172 def __init__(self
,this
):
175 def _setSelf(self
, *_args
, **_kwargs
):
176 val
= apply(sizersc
.wxPySizer__setSelf
,(self
,) + _args
, _kwargs
)
179 return "<C wxPySizer instance at %s>" % (self
.this
,)
180 class wxPySizer(wxPySizerPtr
):
181 def __init__(self
,*_args
,**_kwargs
):
182 self
.this
= apply(sizersc
.new_wxPySizer
,_args
,_kwargs
)
189 class wxBoxSizerPtr(wxSizerPtr
):
190 def __init__(self
,this
):
193 def GetOrientation(self
, *_args
, **_kwargs
):
194 val
= apply(sizersc
.wxBoxSizer_GetOrientation
,(self
,) + _args
, _kwargs
)
197 return "<C wxBoxSizer instance at %s>" % (self
.this
,)
198 class wxBoxSizer(wxBoxSizerPtr
):
199 def __init__(self
,*_args
,**_kwargs
):
200 self
.this
= apply(sizersc
.new_wxBoxSizer
,_args
,_kwargs
)
206 class wxStaticBoxSizerPtr(wxBoxSizerPtr
):
207 def __init__(self
,this
):
210 def GetStaticBox(self
, *_args
, **_kwargs
):
211 val
= apply(sizersc
.wxStaticBoxSizer_GetStaticBox
,(self
,) + _args
, _kwargs
)
212 if val
: val
= wxStaticBoxPtr(val
)
215 return "<C wxStaticBoxSizer instance at %s>" % (self
.this
,)
216 class wxStaticBoxSizer(wxStaticBoxSizerPtr
):
217 def __init__(self
,*_args
,**_kwargs
):
218 self
.this
= apply(sizersc
.new_wxStaticBoxSizer
,_args
,_kwargs
)
226 #-------------- FUNCTION WRAPPERS ------------------
230 #-------------- VARIABLE WRAPPERS ------------------