]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/controls2.py
newly generated files from SWIG
[wxWidgets.git] / utils / wxPython / src / gtk / controls2.py
1 # This file was created automatically by SWIG.
2 import controls2c
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from events import *
11
12 from controls import *
13 import wxp
14 class wxListItemPtr :
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def __del__(self):
19 if self.thisown == 1 :
20 controls2c.delete_wxListItem(self.this)
21 def __setattr__(self,name,value):
22 if name == "m_mask" :
23 controls2c.wxListItem_m_mask_set(self.this,value)
24 return
25 if name == "m_itemId" :
26 controls2c.wxListItem_m_itemId_set(self.this,value)
27 return
28 if name == "m_col" :
29 controls2c.wxListItem_m_col_set(self.this,value)
30 return
31 if name == "m_state" :
32 controls2c.wxListItem_m_state_set(self.this,value)
33 return
34 if name == "m_stateMask" :
35 controls2c.wxListItem_m_stateMask_set(self.this,value)
36 return
37 if name == "m_text" :
38 controls2c.wxListItem_m_text_set(self.this,value)
39 return
40 if name == "m_image" :
41 controls2c.wxListItem_m_image_set(self.this,value)
42 return
43 if name == "m_data" :
44 controls2c.wxListItem_m_data_set(self.this,value)
45 return
46 if name == "m_format" :
47 controls2c.wxListItem_m_format_set(self.this,value)
48 return
49 if name == "m_width" :
50 controls2c.wxListItem_m_width_set(self.this,value)
51 return
52 self.__dict__[name] = value
53 def __getattr__(self,name):
54 if name == "m_mask" :
55 return controls2c.wxListItem_m_mask_get(self.this)
56 if name == "m_itemId" :
57 return controls2c.wxListItem_m_itemId_get(self.this)
58 if name == "m_col" :
59 return controls2c.wxListItem_m_col_get(self.this)
60 if name == "m_state" :
61 return controls2c.wxListItem_m_state_get(self.this)
62 if name == "m_stateMask" :
63 return controls2c.wxListItem_m_stateMask_get(self.this)
64 if name == "m_text" :
65 return controls2c.wxListItem_m_text_get(self.this)
66 if name == "m_image" :
67 return controls2c.wxListItem_m_image_get(self.this)
68 if name == "m_data" :
69 return controls2c.wxListItem_m_data_get(self.this)
70 if name == "m_format" :
71 return controls2c.wxListItem_m_format_get(self.this)
72 if name == "m_width" :
73 return controls2c.wxListItem_m_width_get(self.this)
74 raise AttributeError,name
75 def __repr__(self):
76 return "<C wxListItem instance>"
77 class wxListItem(wxListItemPtr):
78 def __init__(self) :
79 self.this = controls2c.new_wxListItem()
80 self.thisown = 1
81
82
83
84
85 class wxListEventPtr(wxCommandEventPtr):
86 def __init__(self,this):
87 self.this = this
88 self.thisown = 0
89 def __setattr__(self,name,value):
90 if name == "m_code" :
91 controls2c.wxListEvent_m_code_set(self.this,value)
92 return
93 if name == "m_itemIndex" :
94 controls2c.wxListEvent_m_itemIndex_set(self.this,value)
95 return
96 if name == "m_oldItemIndex" :
97 controls2c.wxListEvent_m_oldItemIndex_set(self.this,value)
98 return
99 if name == "m_col" :
100 controls2c.wxListEvent_m_col_set(self.this,value)
101 return
102 if name == "m_cancelled" :
103 controls2c.wxListEvent_m_cancelled_set(self.this,value)
104 return
105 if name == "m_pointDrag" :
106 controls2c.wxListEvent_m_pointDrag_set(self.this,value.this)
107 return
108 if name == "m_item" :
109 controls2c.wxListEvent_m_item_set(self.this,value.this)
110 return
111 self.__dict__[name] = value
112 def __getattr__(self,name):
113 if name == "m_code" :
114 return controls2c.wxListEvent_m_code_get(self.this)
115 if name == "m_itemIndex" :
116 return controls2c.wxListEvent_m_itemIndex_get(self.this)
117 if name == "m_oldItemIndex" :
118 return controls2c.wxListEvent_m_oldItemIndex_get(self.this)
119 if name == "m_col" :
120 return controls2c.wxListEvent_m_col_get(self.this)
121 if name == "m_cancelled" :
122 return controls2c.wxListEvent_m_cancelled_get(self.this)
123 if name == "m_pointDrag" :
124 return wxPointPtr(controls2c.wxListEvent_m_pointDrag_get(self.this))
125 if name == "m_item" :
126 return wxListItemPtr(controls2c.wxListEvent_m_item_get(self.this))
127 raise AttributeError,name
128 def __repr__(self):
129 return "<C wxListEvent instance>"
130 class wxListEvent(wxListEventPtr):
131 def __init__(self,this):
132 self.this = this
133
134
135
136
137 class wxListCtrlPtr(wxControlPtr):
138 def __init__(self,this):
139 self.this = this
140 self.thisown = 0
141 def Arrange(self,*args):
142 val = apply(controls2c.wxListCtrl_Arrange,(self.this,)+args)
143 return val
144 def DeleteItem(self,arg0):
145 val = controls2c.wxListCtrl_DeleteItem(self.this,arg0)
146 return val
147 def DeleteAllItems(self):
148 val = controls2c.wxListCtrl_DeleteAllItems(self.this)
149 return val
150 def DeleteColumn(self,arg0):
151 val = controls2c.wxListCtrl_DeleteColumn(self.this,arg0)
152 return val
153 def EnsureVisible(self,arg0):
154 val = controls2c.wxListCtrl_EnsureVisible(self.this,arg0)
155 return val
156 def FindItem(self,arg0,arg1,*args):
157 val = apply(controls2c.wxListCtrl_FindItem,(self.this,arg0,arg1,)+args)
158 return val
159 def FindItemData(self,arg0,arg1):
160 val = controls2c.wxListCtrl_FindItemData(self.this,arg0,arg1)
161 return val
162 def FindItemAtPos(self,arg0,arg1,arg2):
163 val = controls2c.wxListCtrl_FindItemAtPos(self.this,arg0,arg1.this,arg2)
164 return val
165 def GetColumn(self,arg0,arg1):
166 val = controls2c.wxListCtrl_GetColumn(self.this,arg0,arg1.this)
167 return val
168 def GetColumnWidth(self,arg0):
169 val = controls2c.wxListCtrl_GetColumnWidth(self.this,arg0)
170 return val
171 def GetCountPerPage(self):
172 val = controls2c.wxListCtrl_GetCountPerPage(self.this)
173 return val
174 def GetImageList(self,arg0):
175 val = controls2c.wxListCtrl_GetImageList(self.this,arg0)
176 return val
177 def GetItemData(self,arg0):
178 val = controls2c.wxListCtrl_GetItemData(self.this,arg0)
179 return val
180 def GetItem(self):
181 val = controls2c.wxListCtrl_GetItem(self.this)
182 val = wxListItemPtr(val)
183 val.thisown = 1
184 return val
185 def GetItemPosition(self,arg0):
186 val = controls2c.wxListCtrl_GetItemPosition(self.this,arg0)
187 val = wxPointPtr(val)
188 val.thisown = 1
189 return val
190 def GetItemRect(self,arg0,*args):
191 val = apply(controls2c.wxListCtrl_GetItemRect,(self.this,arg0,)+args)
192 val = wxRectPtr(val)
193 val.thisown = 1
194 return val
195 def GetItemState(self,arg0,arg1):
196 val = controls2c.wxListCtrl_GetItemState(self.this,arg0,arg1)
197 return val
198 def GetItemCount(self):
199 val = controls2c.wxListCtrl_GetItemCount(self.this)
200 return val
201 def GetItemSpacing(self,arg0):
202 val = controls2c.wxListCtrl_GetItemSpacing(self.this,arg0)
203 return val
204 def GetItemText(self,arg0):
205 val = controls2c.wxListCtrl_GetItemText(self.this,arg0)
206 return val
207 def GetNextItem(self,arg0,*args):
208 val = apply(controls2c.wxListCtrl_GetNextItem,(self.this,arg0,)+args)
209 return val
210 def GetSelectedItemCount(self):
211 val = controls2c.wxListCtrl_GetSelectedItemCount(self.this)
212 return val
213 def GetTopItem(self):
214 val = controls2c.wxListCtrl_GetTopItem(self.this)
215 return val
216 def HitTest(self,arg0):
217 val = controls2c.wxListCtrl_HitTest(self.this,arg0.this)
218 return val
219 def InsertColumnWithInfo(self,arg0,arg1):
220 val = controls2c.wxListCtrl_InsertColumnWithInfo(self.this,arg0,arg1.this)
221 return val
222 def InsertColumn(self,arg0,arg1,*args):
223 val = apply(controls2c.wxListCtrl_InsertColumn,(self.this,arg0,arg1,)+args)
224 return val
225 def InsertItem(self,arg0):
226 val = controls2c.wxListCtrl_InsertItem(self.this,arg0.this)
227 return val
228 def InsertStringItem(self,arg0,arg1):
229 val = controls2c.wxListCtrl_InsertStringItem(self.this,arg0,arg1)
230 return val
231 def InsertImageItem(self,arg0,arg1):
232 val = controls2c.wxListCtrl_InsertImageItem(self.this,arg0,arg1)
233 return val
234 def InsertImageStringItem(self,arg0,arg1,arg2):
235 val = controls2c.wxListCtrl_InsertImageStringItem(self.this,arg0,arg1,arg2)
236 return val
237 def ScrollList(self,arg0,arg1):
238 val = controls2c.wxListCtrl_ScrollList(self.this,arg0,arg1)
239 return val
240 def SetBackgroundColour(self,arg0):
241 val = controls2c.wxListCtrl_SetBackgroundColour(self.this,arg0.this)
242 return val
243 def SetColumn(self,arg0,arg1):
244 val = controls2c.wxListCtrl_SetColumn(self.this,arg0,arg1.this)
245 return val
246 def SetColumnWidth(self,arg0,arg1):
247 val = controls2c.wxListCtrl_SetColumnWidth(self.this,arg0,arg1)
248 return val
249 def SetImageList(self,arg0,arg1):
250 val = controls2c.wxListCtrl_SetImageList(self.this,arg0,arg1)
251 return val
252 def SetItem(self,arg0):
253 val = controls2c.wxListCtrl_SetItem(self.this,arg0.this)
254 return val
255 def SetItemString(self,arg0,arg1,arg2,*args):
256 val = apply(controls2c.wxListCtrl_SetItemString,(self.this,arg0,arg1,arg2,)+args)
257 return val
258 def SetItemData(self,arg0,arg1):
259 val = controls2c.wxListCtrl_SetItemData(self.this,arg0,arg1)
260 return val
261 def SetItemImage(self,arg0,arg1,arg2):
262 val = controls2c.wxListCtrl_SetItemImage(self.this,arg0,arg1,arg2)
263 return val
264 def SetItemPosition(self,arg0,arg1):
265 val = controls2c.wxListCtrl_SetItemPosition(self.this,arg0,arg1.this)
266 return val
267 def SetItemState(self,arg0,arg1,arg2):
268 val = controls2c.wxListCtrl_SetItemState(self.this,arg0,arg1,arg2)
269 return val
270 def SetItemText(self,arg0,arg1):
271 val = controls2c.wxListCtrl_SetItemText(self.this,arg0,arg1)
272 return val
273 def SetSingleStyle(self,arg0,*args):
274 val = apply(controls2c.wxListCtrl_SetSingleStyle,(self.this,arg0,)+args)
275 return val
276 def SetWindowStyleFlag(self,arg0):
277 val = controls2c.wxListCtrl_SetWindowStyleFlag(self.this,arg0)
278 return val
279 def __repr__(self):
280 return "<C wxListCtrl instance>"
281 class wxListCtrl(wxListCtrlPtr):
282 def __init__(self,arg0,arg1,*args) :
283 argl = map(None,args)
284 try: argl[0] = argl[0].this
285 except: pass
286 try: argl[1] = argl[1].this
287 except: pass
288 args = tuple(argl)
289 self.this = apply(controls2c.new_wxListCtrl,(arg0.this,arg1,)+args)
290 self.thisown = 1
291 wxp._StdWindowCallbacks(self)
292
293
294
295
296
297
298 #-------------- FUNCTION WRAPPERS ------------------
299
300
301
302 #-------------- VARIABLE WRAPPERS ------------------
303