]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/windows2.py
bug #103 (encodings not enumerated correctly) fixed
[wxWidgets.git] / wxPython / src / msw / windows2.py
1 # This file was created automatically by SWIG.
2 import windows2c
3
4 from misc import *
5
6 from gdi import *
7
8 from windows import *
9
10 from clip_dnd import *
11
12 from controls import *
13
14 from events import *
15 import wx
16 class wxNotebookEventPtr(wxNotifyEventPtr):
17 def __init__(self,this):
18 self.this = this
19 self.thisown = 0
20 def GetSelection(self, *_args, **_kwargs):
21 val = apply(windows2c.wxNotebookEvent_GetSelection,(self,) + _args, _kwargs)
22 return val
23 def GetOldSelection(self, *_args, **_kwargs):
24 val = apply(windows2c.wxNotebookEvent_GetOldSelection,(self,) + _args, _kwargs)
25 return val
26 def SetOldSelection(self, *_args, **_kwargs):
27 val = apply(windows2c.wxNotebookEvent_SetOldSelection,(self,) + _args, _kwargs)
28 return val
29 def SetSelection(self, *_args, **_kwargs):
30 val = apply(windows2c.wxNotebookEvent_SetSelection,(self,) + _args, _kwargs)
31 return val
32 def __repr__(self):
33 return "<C wxNotebookEvent instance at %s>" % (self.this,)
34 class wxNotebookEvent(wxNotebookEventPtr):
35 def __init__(self,this):
36 self.this = this
37
38
39
40
41 class wxNotebookPtr(wxControlPtr):
42 def __init__(self,this):
43 self.this = this
44 self.thisown = 0
45 def GetPageCount(self, *_args, **_kwargs):
46 val = apply(windows2c.wxNotebook_GetPageCount,(self,) + _args, _kwargs)
47 return val
48 def SetSelection(self, *_args, **_kwargs):
49 val = apply(windows2c.wxNotebook_SetSelection,(self,) + _args, _kwargs)
50 return val
51 def AdvanceSelection(self, *_args, **_kwargs):
52 val = apply(windows2c.wxNotebook_AdvanceSelection,(self,) + _args, _kwargs)
53 return val
54 def GetSelection(self, *_args, **_kwargs):
55 val = apply(windows2c.wxNotebook_GetSelection,(self,) + _args, _kwargs)
56 return val
57 def SetPageText(self, *_args, **_kwargs):
58 val = apply(windows2c.wxNotebook_SetPageText,(self,) + _args, _kwargs)
59 return val
60 def GetPageText(self, *_args, **_kwargs):
61 val = apply(windows2c.wxNotebook_GetPageText,(self,) + _args, _kwargs)
62 return val
63 def SetImageList(self, *_args, **_kwargs):
64 val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs)
65 return val
66 def GetImageList(self, *_args, **_kwargs):
67 val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
68 if val: val = wxImageListPtr(val)
69 return val
70 def GetPageImage(self, *_args, **_kwargs):
71 val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs)
72 return val
73 def SetPageImage(self, *_args, **_kwargs):
74 val = apply(windows2c.wxNotebook_SetPageImage,(self,) + _args, _kwargs)
75 return val
76 def GetRowCount(self, *_args, **_kwargs):
77 val = apply(windows2c.wxNotebook_GetRowCount,(self,) + _args, _kwargs)
78 return val
79 def DeletePage(self, *_args, **_kwargs):
80 val = apply(windows2c.wxNotebook_DeletePage,(self,) + _args, _kwargs)
81 return val
82 def RemovePage(self, *_args, **_kwargs):
83 val = apply(windows2c.wxNotebook_RemovePage,(self,) + _args, _kwargs)
84 return val
85 def DeleteAllPages(self, *_args, **_kwargs):
86 val = apply(windows2c.wxNotebook_DeleteAllPages,(self,) + _args, _kwargs)
87 return val
88 def AddPage(self, *_args, **_kwargs):
89 val = apply(windows2c.wxNotebook_AddPage,(self,) + _args, _kwargs)
90 return val
91 def InsertPage(self, *_args, **_kwargs):
92 val = apply(windows2c.wxNotebook_InsertPage,(self,) + _args, _kwargs)
93 return val
94 def GetPage(self, *_args, **_kwargs):
95 val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs)
96 if val: val = wxWindowPtr(val)
97 return val
98 def ResizeChildren(self, *_args, **_kwargs):
99 val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs)
100 return val
101 def __repr__(self):
102 return "<C wxNotebook instance at %s>" % (self.this,)
103 class wxNotebook(wxNotebookPtr):
104 def __init__(self,*_args,**_kwargs):
105 self.this = apply(windows2c.new_wxNotebook,_args,_kwargs)
106 self.thisown = 1
107 #wx._StdWindowCallbacks(self)
108
109
110
111
112 class wxSplitterEventPtr(wxCommandEventPtr):
113 def __init__(self,this):
114 self.this = this
115 self.thisown = 0
116 def GetSashPosition(self, *_args, **_kwargs):
117 val = apply(windows2c.wxSplitterEvent_GetSashPosition,(self,) + _args, _kwargs)
118 return val
119 def GetX(self, *_args, **_kwargs):
120 val = apply(windows2c.wxSplitterEvent_GetX,(self,) + _args, _kwargs)
121 return val
122 def GetY(self, *_args, **_kwargs):
123 val = apply(windows2c.wxSplitterEvent_GetY,(self,) + _args, _kwargs)
124 return val
125 def GetWindowBeingRemoved(self, *_args, **_kwargs):
126 val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs)
127 if val: val = wxWindowPtr(val)
128 return val
129 def SetSashPosition(self, *_args, **_kwargs):
130 val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs)
131 return val
132 def __repr__(self):
133 return "<C wxSplitterEvent instance at %s>" % (self.this,)
134 class wxSplitterEvent(wxSplitterEventPtr):
135 def __init__(self,this):
136 self.this = this
137
138
139
140
141 class wxSplitterWindowPtr(wxWindowPtr):
142 def __init__(self,this):
143 self.this = this
144 self.thisown = 0
145 def GetBorderSize(self, *_args, **_kwargs):
146 val = apply(windows2c.wxSplitterWindow_GetBorderSize,(self,) + _args, _kwargs)
147 return val
148 def GetMinimumPaneSize(self, *_args, **_kwargs):
149 val = apply(windows2c.wxSplitterWindow_GetMinimumPaneSize,(self,) + _args, _kwargs)
150 return val
151 def GetSashPosition(self, *_args, **_kwargs):
152 val = apply(windows2c.wxSplitterWindow_GetSashPosition,(self,) + _args, _kwargs)
153 return val
154 def GetSashSize(self, *_args, **_kwargs):
155 val = apply(windows2c.wxSplitterWindow_GetSashSize,(self,) + _args, _kwargs)
156 return val
157 def GetSplitMode(self, *_args, **_kwargs):
158 val = apply(windows2c.wxSplitterWindow_GetSplitMode,(self,) + _args, _kwargs)
159 return val
160 def GetWindow1(self, *_args, **_kwargs):
161 val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs)
162 if val: val = wxWindowPtr(val)
163 return val
164 def GetWindow2(self, *_args, **_kwargs):
165 val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs)
166 if val: val = wxWindowPtr(val)
167 return val
168 def Initialize(self, *_args, **_kwargs):
169 val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs)
170 return val
171 def IsSplit(self, *_args, **_kwargs):
172 val = apply(windows2c.wxSplitterWindow_IsSplit,(self,) + _args, _kwargs)
173 return val
174 def ReplaceWindow(self, *_args, **_kwargs):
175 val = apply(windows2c.wxSplitterWindow_ReplaceWindow,(self,) + _args, _kwargs)
176 return val
177 def SetBorderSize(self, *_args, **_kwargs):
178 val = apply(windows2c.wxSplitterWindow_SetBorderSize,(self,) + _args, _kwargs)
179 return val
180 def SetSashPosition(self, *_args, **_kwargs):
181 val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self,) + _args, _kwargs)
182 return val
183 def SetSashSize(self, *_args, **_kwargs):
184 val = apply(windows2c.wxSplitterWindow_SetSashSize,(self,) + _args, _kwargs)
185 return val
186 def SetMinimumPaneSize(self, *_args, **_kwargs):
187 val = apply(windows2c.wxSplitterWindow_SetMinimumPaneSize,(self,) + _args, _kwargs)
188 return val
189 def SetSplitMode(self, *_args, **_kwargs):
190 val = apply(windows2c.wxSplitterWindow_SetSplitMode,(self,) + _args, _kwargs)
191 return val
192 def SplitHorizontally(self, *_args, **_kwargs):
193 val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self,) + _args, _kwargs)
194 return val
195 def SplitVertically(self, *_args, **_kwargs):
196 val = apply(windows2c.wxSplitterWindow_SplitVertically,(self,) + _args, _kwargs)
197 return val
198 def Unsplit(self, *_args, **_kwargs):
199 val = apply(windows2c.wxSplitterWindow_Unsplit,(self,) + _args, _kwargs)
200 return val
201 def __repr__(self):
202 return "<C wxSplitterWindow instance at %s>" % (self.this,)
203 class wxSplitterWindow(wxSplitterWindowPtr):
204 def __init__(self,*_args,**_kwargs):
205 self.this = apply(windows2c.new_wxSplitterWindow,_args,_kwargs)
206 self.thisown = 1
207 #wx._StdWindowCallbacks(self)
208
209
210
211
212 class wxTaskBarIconPtr(wxEvtHandlerPtr):
213 def __init__(self,this):
214 self.this = this
215 self.thisown = 0
216 def __del__(self,windows2c=windows2c):
217 if self.thisown == 1 :
218 windows2c.delete_wxTaskBarIcon(self)
219 def SetIcon(self, *_args, **_kwargs):
220 val = apply(windows2c.wxTaskBarIcon_SetIcon,(self,) + _args, _kwargs)
221 return val
222 def RemoveIcon(self, *_args, **_kwargs):
223 val = apply(windows2c.wxTaskBarIcon_RemoveIcon,(self,) + _args, _kwargs)
224 return val
225 def PopupMenu(self, *_args, **_kwargs):
226 val = apply(windows2c.wxTaskBarIcon_PopupMenu,(self,) + _args, _kwargs)
227 return val
228 def __repr__(self):
229 return "<C wxTaskBarIcon instance at %s>" % (self.this,)
230 class wxTaskBarIcon(wxTaskBarIconPtr):
231 def __init__(self,*_args,**_kwargs):
232 self.this = apply(windows2c.new_wxTaskBarIcon,_args,_kwargs)
233 self.thisown = 1
234 wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)
235 wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)
236 wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)
237 wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)
238 wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)
239 wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)
240 wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)
241
242
243
244
245
246
247 #-------------- FUNCTION WRAPPERS ------------------
248
249
250
251 #-------------- VARIABLE WRAPPERS ------------------
252
253 wxSPLIT_HORIZONTAL = windows2c.wxSPLIT_HORIZONTAL
254 wxSPLIT_VERTICAL = windows2c.wxSPLIT_VERTICAL
255 wxSPLIT_DRAG_NONE = windows2c.wxSPLIT_DRAG_NONE
256 wxSPLIT_DRAG_DRAGGING = windows2c.wxSPLIT_DRAG_DRAGGING
257 wxSPLIT_DRAG_LEFT_DOWN = windows2c.wxSPLIT_DRAG_LEFT_DOWN
258 wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE
259 wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN
260 wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP
261 wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN
262 wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP
263 wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK
264 wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK