]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/frames.py
hopefully fixes focus assertion
[wxWidgets.git] / wxPython / src / msw / frames.py
CommitLineData
9c039d08
RD
1# This file was created automatically by SWIG.
2import framesc
3
4from misc import *
5
6from gdi import *
7
8from windows import *
9
b1462dfa
RD
10from clip_dnd import *
11
9c039d08
RD
12from stattool import *
13
14from controls import *
15
16from events import *
b8b8dda7 17import wx
ecc08ead 18class wxTopLevelWindowPtr(wxWindowPtr):
9c039d08
RD
19 def __init__(self,this):
20 self.this = this
21 self.thisown = 0
09f3d4e6 22 def Create(self, *_args, **_kwargs):
ecc08ead 23 val = apply(framesc.wxTopLevelWindow_Create,(self,) + _args, _kwargs)
09f3d4e6 24 return val
ecc08ead
RD
25 def Maximize(self, *_args, **_kwargs):
26 val = apply(framesc.wxTopLevelWindow_Maximize,(self,) + _args, _kwargs)
9c039d08 27 return val
ecc08ead
RD
28 def Restore(self, *_args, **_kwargs):
29 val = apply(framesc.wxTopLevelWindow_Restore,(self,) + _args, _kwargs)
9c039d08 30 return val
ecc08ead
RD
31 def Iconize(self, *_args, **_kwargs):
32 val = apply(framesc.wxTopLevelWindow_Iconize,(self,) + _args, _kwargs)
33 return val
34 def IsMaximized(self, *_args, **_kwargs):
35 val = apply(framesc.wxTopLevelWindow_IsMaximized,(self,) + _args, _kwargs)
36 return val
37 def IsIconized(self, *_args, **_kwargs):
38 val = apply(framesc.wxTopLevelWindow_IsIconized,(self,) + _args, _kwargs)
9c039d08 39 return val
f6bcfd97 40 def GetIcon(self, *_args, **_kwargs):
ecc08ead 41 val = apply(framesc.wxTopLevelWindow_GetIcon,(self,) + _args, _kwargs)
f6bcfd97
BP
42 if val: val = wxIconPtr(val)
43 return val
ecc08ead
RD
44 def SetIcon(self, *_args, **_kwargs):
45 val = apply(framesc.wxTopLevelWindow_SetIcon,(self,) + _args, _kwargs)
9c039d08 46 return val
900d9886
RD
47 def ShowFullScreen(self, *_args, **_kwargs):
48 val = apply(framesc.wxTopLevelWindow_ShowFullScreen,(self,) + _args, _kwargs)
49 return val
50 def IsFullScreen(self, *_args, **_kwargs):
51 val = apply(framesc.wxTopLevelWindow_IsFullScreen,(self,) + _args, _kwargs)
52 return val
ecc08ead
RD
53 def SetTitle(self, *_args, **_kwargs):
54 val = apply(framesc.wxTopLevelWindow_SetTitle,(self,) + _args, _kwargs)
9c039d08 55 return val
1d99702e 56 def GetTitle(self, *_args, **_kwargs):
ecc08ead 57 val = apply(framesc.wxTopLevelWindow_GetTitle,(self,) + _args, _kwargs)
9c039d08 58 return val
ecc08ead
RD
59 def __repr__(self):
60 return "<C wxTopLevelWindow instance at %s>" % (self.this,)
61class wxTopLevelWindow(wxTopLevelWindowPtr):
62 def __init__(self,*_args,**_kwargs):
63 self.this = apply(framesc.new_wxTopLevelWindow,_args,_kwargs)
64 self.thisown = 1
65
66
67
68def wxPreTopLevelWindow(*_args,**_kwargs):
69 val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
70 val.thisown = 1
71 return val
72
73
74class wxFramePtr(wxTopLevelWindowPtr):
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def Create(self, *_args, **_kwargs):
79 val = apply(framesc.wxFrame_Create,(self,) + _args, _kwargs)
9c039d08 80 return val
ecc08ead
RD
81 def GetClientAreaOrigin(self, *_args, **_kwargs):
82 val = apply(framesc.wxFrame_GetClientAreaOrigin,(self,) + _args, _kwargs)
83 if val: val = wxPointPtr(val) ; val.thisown = 1
9c039d08 84 return val
ecc08ead
RD
85 def SetMenuBar(self, *_args, **_kwargs):
86 val = apply(framesc.wxFrame_SetMenuBar,(self,) + _args, _kwargs)
9c039d08 87 return val
ecc08ead
RD
88 def GetMenuBar(self, *_args, **_kwargs):
89 val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
f6bcfd97 90 return val
ecc08ead
RD
91 def Command(self, *_args, **_kwargs):
92 val = apply(framesc.wxFrame_Command,(self,) + _args, _kwargs)
f6bcfd97 93 return val
ecc08ead
RD
94 def ProcessCommand(self, *_args, **_kwargs):
95 val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
9c039d08 96 return val
ecc08ead
RD
97 def CreateStatusBar(self, *_args, **_kwargs):
98 val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
9c039d08 99 return val
ecc08ead
RD
100 def GetStatusBar(self, *_args, **_kwargs):
101 val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
9c039d08 102 return val
1d99702e
RD
103 def SetStatusBar(self, *_args, **_kwargs):
104 val = apply(framesc.wxFrame_SetStatusBar,(self,) + _args, _kwargs)
9c039d08 105 return val
1d99702e
RD
106 def SetStatusText(self, *_args, **_kwargs):
107 val = apply(framesc.wxFrame_SetStatusText,(self,) + _args, _kwargs)
9c039d08 108 return val
1d99702e
RD
109 def SetStatusWidths(self, *_args, **_kwargs):
110 val = apply(framesc.wxFrame_SetStatusWidths,(self,) + _args, _kwargs)
9c039d08 111 return val
ecc08ead
RD
112 def CreateToolBar(self, *_args, **_kwargs):
113 val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
114 return val
115 def GetToolBar(self, *_args, **_kwargs):
116 val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
9c039d08 117 return val
1d99702e
RD
118 def SetToolBar(self, *_args, **_kwargs):
119 val = apply(framesc.wxFrame_SetToolBar,(self,) + _args, _kwargs)
9c039d08
RD
120 return val
121 def __repr__(self):
1d99702e 122 return "<C wxFrame instance at %s>" % (self.this,)
9c039d08 123class wxFrame(wxFramePtr):
1d99702e
RD
124 def __init__(self,*_args,**_kwargs):
125 self.this = apply(framesc.new_wxFrame,_args,_kwargs)
9c039d08 126 self.thisown = 1
9c039d08
RD
127
128
129
09f3d4e6
RD
130def wxPreFrame(*_args,**_kwargs):
131 val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
132 val.thisown = 1
133 return val
134
9c039d08 135
ecc08ead
RD
136class wxDialogPtr(wxTopLevelWindowPtr):
137 def __init__(self,this):
138 self.this = this
139 self.thisown = 0
140 def Create(self, *_args, **_kwargs):
141 val = apply(framesc.wxDialog_Create,(self,) + _args, _kwargs)
142 return val
143 def Centre(self, *_args, **_kwargs):
144 val = apply(framesc.wxDialog_Centre,(self,) + _args, _kwargs)
145 return val
146 def EndModal(self, *_args, **_kwargs):
147 val = apply(framesc.wxDialog_EndModal,(self,) + _args, _kwargs)
148 return val
149 def SetModal(self, *_args, **_kwargs):
150 val = apply(framesc.wxDialog_SetModal,(self,) + _args, _kwargs)
151 return val
152 def IsModal(self, *_args, **_kwargs):
153 val = apply(framesc.wxDialog_IsModal,(self,) + _args, _kwargs)
154 return val
155 def ShowModal(self, *_args, **_kwargs):
156 val = apply(framesc.wxDialog_ShowModal,(self,) + _args, _kwargs)
157 return val
158 def GetReturnCode(self, *_args, **_kwargs):
159 val = apply(framesc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
160 return val
161 def SetReturnCode(self, *_args, **_kwargs):
162 val = apply(framesc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
163 return val
164 def CreateTextSizer(self, *_args, **_kwargs):
165 val = apply(framesc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
166 return val
167 def CreateButtonSizer(self, *_args, **_kwargs):
168 val = apply(framesc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
169 return val
170 def __repr__(self):
171 return "<C wxDialog instance at %s>" % (self.this,)
172class wxDialog(wxDialogPtr):
173 def __init__(self,*_args,**_kwargs):
174 self.this = apply(framesc.new_wxDialog,_args,_kwargs)
175 self.thisown = 1
176
177
178
179def wxPreDialog(*_args,**_kwargs):
180 val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
181 val.thisown = 1
182 return val
183
184
9c039d08
RD
185class wxMiniFramePtr(wxFramePtr):
186 def __init__(self,this):
187 self.this = this
188 self.thisown = 0
09f3d4e6
RD
189 def Create(self, *_args, **_kwargs):
190 val = apply(framesc.wxMiniFrame_Create,(self,) + _args, _kwargs)
191 return val
9c039d08 192 def __repr__(self):
1d99702e 193 return "<C wxMiniFrame instance at %s>" % (self.this,)
9c039d08 194class wxMiniFrame(wxMiniFramePtr):
1d99702e
RD
195 def __init__(self,*_args,**_kwargs):
196 self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
9c039d08 197 self.thisown = 1
9c039d08
RD
198
199
200
09f3d4e6
RD
201def wxPreMiniFrame(*_args,**_kwargs):
202 val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
203 val.thisown = 1
204 return val
205
9c039d08 206
4f3449b4
RD
207class wxTipWindowPtr(wxFramePtr):
208 def __init__(self,this):
209 self.this = this
210 self.thisown = 0
211 def __repr__(self):
212 return "<C wxTipWindow instance at %s>" % (self.this,)
213class wxTipWindow(wxTipWindowPtr):
214 def __init__(self,*_args,**_kwargs):
215 self.this = apply(framesc.new_wxTipWindow,_args,_kwargs)
216 self.thisown = 1
217
218
219
220
9c039d08
RD
221
222
223#-------------- FUNCTION WRAPPERS ------------------
224
225
226
227#-------------- VARIABLE WRAPPERS ------------------
228
f6bcfd97
BP
229wxFULLSCREEN_NOMENUBAR = framesc.wxFULLSCREEN_NOMENUBAR
230wxFULLSCREEN_NOTOOLBAR = framesc.wxFULLSCREEN_NOTOOLBAR
231wxFULLSCREEN_NOSTATUSBAR = framesc.wxFULLSCREEN_NOSTATUSBAR
232wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER
233wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION
234wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL
ecc08ead 235wxTOPLEVEL_EX_DIALOG = framesc.wxTOPLEVEL_EX_DIALOG