]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/misc2.py
new wxMenu stuff and thread implementations
[wxWidgets.git] / utils / wxPython / src / gtk / misc2.py
CommitLineData
d24a34bb
RD
1# This file was created automatically by SWIG.
2import misc2c
3
4from windows import *
5
6from misc import *
7
8from gdi import *
9class wxToolTipPtr :
10 def __init__(self,this):
11 self.this = this
12 self.thisown = 0
2d091820
RD
13 def SetTip(self, *_args, **_kwargs):
14 val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
d24a34bb 15 return val
2d091820
RD
16 def GetTip(self, *_args, **_kwargs):
17 val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
d24a34bb 18 return val
2d091820
RD
19 def GetWindow(self, *_args, **_kwargs):
20 val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
21 if val: val = wxWindowPtr(val)
d24a34bb
RD
22 return val
23 def __repr__(self):
2d091820 24 return "<C wxToolTip instance at %s>" % (self.this,)
d24a34bb 25class wxToolTip(wxToolTipPtr):
2d091820
RD
26 def __init__(self,*_args,**_kwargs):
27 self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
d24a34bb
RD
28 self.thisown = 1
29
30
31
32
8f17924e
RD
33class wxCaretPtr :
34 def __init__(self,this):
35 self.this = this
36 self.thisown = 0
37 def __del__(self,misc2c=misc2c):
38 if self.thisown == 1 :
39 misc2c.delete_wxCaret(self)
40 def IsOk(self, *_args, **_kwargs):
41 val = apply(misc2c.wxCaret_IsOk,(self,) + _args, _kwargs)
42 return val
43 def IsVisible(self, *_args, **_kwargs):
44 val = apply(misc2c.wxCaret_IsVisible,(self,) + _args, _kwargs)
45 return val
46 def GetPositionTuple(self, *_args, **_kwargs):
47 val = apply(misc2c.wxCaret_GetPositionTuple,(self,) + _args, _kwargs)
48 return val
49 def GetPosition(self, *_args, **_kwargs):
50 val = apply(misc2c.wxCaret_GetPosition,(self,) + _args, _kwargs)
51 if val: val = wxPointPtr(val) ; val.thisown = 1
52 return val
53 def GetSizeTuple(self, *_args, **_kwargs):
54 val = apply(misc2c.wxCaret_GetSizeTuple,(self,) + _args, _kwargs)
55 return val
56 def GetSize(self, *_args, **_kwargs):
57 val = apply(misc2c.wxCaret_GetSize,(self,) + _args, _kwargs)
58 if val: val = wxSizePtr(val) ; val.thisown = 1
59 return val
60 def GetWindow(self, *_args, **_kwargs):
61 val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
62 if val: val = wxWindowPtr(val)
63 return val
64 def MoveXY(self, *_args, **_kwargs):
65 val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
66 return val
67 def Move(self, *_args, **_kwargs):
68 val = apply(misc2c.wxCaret_Move,(self,) + _args, _kwargs)
69 return val
70 def Show(self, *_args, **_kwargs):
71 val = apply(misc2c.wxCaret_Show,(self,) + _args, _kwargs)
72 return val
73 def Hide(self, *_args, **_kwargs):
74 val = apply(misc2c.wxCaret_Hide,(self,) + _args, _kwargs)
75 return val
76 def OnSetFocus(self, *_args, **_kwargs):
77 val = apply(misc2c.wxCaret_OnSetFocus,(self,) + _args, _kwargs)
78 return val
79 def OnKillFocus(self, *_args, **_kwargs):
80 val = apply(misc2c.wxCaret_OnKillFocus,(self,) + _args, _kwargs)
81 return val
82 def __repr__(self):
83 return "<C wxCaret instance at %s>" % (self.this,)
84class wxCaret(wxCaretPtr):
85 def __init__(self,*_args,**_kwargs):
86 self.this = apply(misc2c.new_wxCaret,_args,_kwargs)
87 self.thisown = 1
88
89
90
91
d24a34bb
RD
92
93
94#-------------- FUNCTION WRAPPERS ------------------
95
bc29c5e0
RD
96wxFileSelector = misc2c.wxFileSelector
97
98wxGetTextFromUser = misc2c.wxGetTextFromUser
99
100wxGetSingleChoice = misc2c.wxGetSingleChoice
101
102wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
103
104wxMessageBox = misc2c.wxMessageBox
105
106wxGetNumberFromUser = misc2c.wxGetNumberFromUser
107
108wxColourDisplay = misc2c.wxColourDisplay
109
110wxDisplayDepth = misc2c.wxDisplayDepth
111
112wxSetCursor = misc2c.wxSetCursor
113
2d091820
RD
114def wxFindWindowByLabel(*_args, **_kwargs):
115 val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
116 if val: val = wxWindowPtr(val)
d24a34bb
RD
117 return val
118
2d091820
RD
119def wxFindWindowByName(*_args, **_kwargs):
120 val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
121 if val: val = wxWindowPtr(val)
d24a34bb
RD
122 return val
123
bc29c5e0
RD
124wxBeginBusyCursor = misc2c.wxBeginBusyCursor
125
126def wxGetActiveWindow(*_args, **_kwargs):
127 val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
128 if val: val = wxWindowPtr(val)
129 return val
130
131wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
132
133wxResourceClear = misc2c.wxResourceClear
134
135def wxResourceCreateBitmap(*_args, **_kwargs):
136 val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
137 if val: val = wxBitmapPtr(val); val.thisown = 1
138 return val
139
140def wxResourceCreateIcon(*_args, **_kwargs):
141 val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
142 if val: val = wxIconPtr(val); val.thisown = 1
143 return val
144
145def wxResourceCreateMenuBar(*_args, **_kwargs):
146 val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
147 if val: val = wxMenuBarPtr(val)
148 return val
149
150wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
151
152wxResourceParseData = misc2c.wxResourceParseData
153
154wxResourceParseFile = misc2c.wxResourceParseFile
155
156wxResourceParseString = misc2c.wxResourceParseString
157
158def wxSystemSettings_GetSystemColour(*_args, **_kwargs):
159 val = apply(misc2c.wxSystemSettings_GetSystemColour,_args,_kwargs)
160 if val: val = wxColourPtr(val); val.thisown = 1
161 return val
162
163def wxSystemSettings_GetSystemFont(*_args, **_kwargs):
164 val = apply(misc2c.wxSystemSettings_GetSystemFont,_args,_kwargs)
165 if val: val = wxFontPtr(val); val.thisown = 1
166 return val
167
168wxSystemSettings_GetSystemMetric = misc2c.wxSystemSettings_GetSystemMetric
169
d24a34bb
RD
170wxToolTip_Enable = misc2c.wxToolTip_Enable
171
172wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
173
8f17924e
RD
174wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
175
176wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
177
d24a34bb
RD
178
179
180#-------------- VARIABLE WRAPPERS ------------------
181
bc29c5e0
RD
182wxSYS_WHITE_BRUSH = misc2c.wxSYS_WHITE_BRUSH
183wxSYS_LTGRAY_BRUSH = misc2c.wxSYS_LTGRAY_BRUSH
184wxSYS_GRAY_BRUSH = misc2c.wxSYS_GRAY_BRUSH
185wxSYS_DKGRAY_BRUSH = misc2c.wxSYS_DKGRAY_BRUSH
186wxSYS_BLACK_BRUSH = misc2c.wxSYS_BLACK_BRUSH
187wxSYS_NULL_BRUSH = misc2c.wxSYS_NULL_BRUSH
188wxSYS_HOLLOW_BRUSH = misc2c.wxSYS_HOLLOW_BRUSH
189wxSYS_WHITE_PEN = misc2c.wxSYS_WHITE_PEN
190wxSYS_BLACK_PEN = misc2c.wxSYS_BLACK_PEN
191wxSYS_NULL_PEN = misc2c.wxSYS_NULL_PEN
192wxSYS_OEM_FIXED_FONT = misc2c.wxSYS_OEM_FIXED_FONT
193wxSYS_ANSI_FIXED_FONT = misc2c.wxSYS_ANSI_FIXED_FONT
194wxSYS_ANSI_VAR_FONT = misc2c.wxSYS_ANSI_VAR_FONT
195wxSYS_SYSTEM_FONT = misc2c.wxSYS_SYSTEM_FONT
196wxSYS_DEVICE_DEFAULT_FONT = misc2c.wxSYS_DEVICE_DEFAULT_FONT
197wxSYS_DEFAULT_PALETTE = misc2c.wxSYS_DEFAULT_PALETTE
198wxSYS_SYSTEM_FIXED_FONT = misc2c.wxSYS_SYSTEM_FIXED_FONT
199wxSYS_DEFAULT_GUI_FONT = misc2c.wxSYS_DEFAULT_GUI_FONT
200wxSYS_COLOUR_SCROLLBAR = misc2c.wxSYS_COLOUR_SCROLLBAR
201wxSYS_COLOUR_BACKGROUND = misc2c.wxSYS_COLOUR_BACKGROUND
202wxSYS_COLOUR_ACTIVECAPTION = misc2c.wxSYS_COLOUR_ACTIVECAPTION
203wxSYS_COLOUR_INACTIVECAPTION = misc2c.wxSYS_COLOUR_INACTIVECAPTION
204wxSYS_COLOUR_MENU = misc2c.wxSYS_COLOUR_MENU
205wxSYS_COLOUR_WINDOW = misc2c.wxSYS_COLOUR_WINDOW
206wxSYS_COLOUR_WINDOWFRAME = misc2c.wxSYS_COLOUR_WINDOWFRAME
207wxSYS_COLOUR_MENUTEXT = misc2c.wxSYS_COLOUR_MENUTEXT
208wxSYS_COLOUR_WINDOWTEXT = misc2c.wxSYS_COLOUR_WINDOWTEXT
209wxSYS_COLOUR_CAPTIONTEXT = misc2c.wxSYS_COLOUR_CAPTIONTEXT
210wxSYS_COLOUR_ACTIVEBORDER = misc2c.wxSYS_COLOUR_ACTIVEBORDER
211wxSYS_COLOUR_INACTIVEBORDER = misc2c.wxSYS_COLOUR_INACTIVEBORDER
212wxSYS_COLOUR_APPWORKSPACE = misc2c.wxSYS_COLOUR_APPWORKSPACE
213wxSYS_COLOUR_HIGHLIGHT = misc2c.wxSYS_COLOUR_HIGHLIGHT
214wxSYS_COLOUR_HIGHLIGHTTEXT = misc2c.wxSYS_COLOUR_HIGHLIGHTTEXT
215wxSYS_COLOUR_BTNFACE = misc2c.wxSYS_COLOUR_BTNFACE
216wxSYS_COLOUR_BTNSHADOW = misc2c.wxSYS_COLOUR_BTNSHADOW
217wxSYS_COLOUR_GRAYTEXT = misc2c.wxSYS_COLOUR_GRAYTEXT
218wxSYS_COLOUR_BTNTEXT = misc2c.wxSYS_COLOUR_BTNTEXT
219wxSYS_COLOUR_INACTIVECAPTIONTEXT = misc2c.wxSYS_COLOUR_INACTIVECAPTIONTEXT
220wxSYS_COLOUR_BTNHIGHLIGHT = misc2c.wxSYS_COLOUR_BTNHIGHLIGHT
221wxSYS_COLOUR_3DDKSHADOW = misc2c.wxSYS_COLOUR_3DDKSHADOW
222wxSYS_COLOUR_3DLIGHT = misc2c.wxSYS_COLOUR_3DLIGHT
223wxSYS_COLOUR_INFOTEXT = misc2c.wxSYS_COLOUR_INFOTEXT
224wxSYS_COLOUR_INFOBK = misc2c.wxSYS_COLOUR_INFOBK
225wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP
226wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE
227wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW
228wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT
229wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT
230wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT
231wxSYS_MOUSE_BUTTONS = misc2c.wxSYS_MOUSE_BUTTONS
232wxSYS_BORDER_X = misc2c.wxSYS_BORDER_X
233wxSYS_BORDER_Y = misc2c.wxSYS_BORDER_Y
234wxSYS_CURSOR_X = misc2c.wxSYS_CURSOR_X
235wxSYS_CURSOR_Y = misc2c.wxSYS_CURSOR_Y
236wxSYS_DCLICK_X = misc2c.wxSYS_DCLICK_X
237wxSYS_DCLICK_Y = misc2c.wxSYS_DCLICK_Y
238wxSYS_DRAG_X = misc2c.wxSYS_DRAG_X
239wxSYS_DRAG_Y = misc2c.wxSYS_DRAG_Y
240wxSYS_EDGE_X = misc2c.wxSYS_EDGE_X
241wxSYS_EDGE_Y = misc2c.wxSYS_EDGE_Y
242wxSYS_HSCROLL_ARROW_X = misc2c.wxSYS_HSCROLL_ARROW_X
243wxSYS_HSCROLL_ARROW_Y = misc2c.wxSYS_HSCROLL_ARROW_Y
244wxSYS_HTHUMB_X = misc2c.wxSYS_HTHUMB_X
245wxSYS_ICON_X = misc2c.wxSYS_ICON_X
246wxSYS_ICON_Y = misc2c.wxSYS_ICON_Y
247wxSYS_ICONSPACING_X = misc2c.wxSYS_ICONSPACING_X
248wxSYS_ICONSPACING_Y = misc2c.wxSYS_ICONSPACING_Y
249wxSYS_WINDOWMIN_X = misc2c.wxSYS_WINDOWMIN_X
250wxSYS_WINDOWMIN_Y = misc2c.wxSYS_WINDOWMIN_Y
251wxSYS_SCREEN_X = misc2c.wxSYS_SCREEN_X
252wxSYS_SCREEN_Y = misc2c.wxSYS_SCREEN_Y
253wxSYS_FRAMESIZE_X = misc2c.wxSYS_FRAMESIZE_X
254wxSYS_FRAMESIZE_Y = misc2c.wxSYS_FRAMESIZE_Y
255wxSYS_SMALLICON_X = misc2c.wxSYS_SMALLICON_X
256wxSYS_SMALLICON_Y = misc2c.wxSYS_SMALLICON_Y
257wxSYS_HSCROLL_Y = misc2c.wxSYS_HSCROLL_Y
258wxSYS_VSCROLL_X = misc2c.wxSYS_VSCROLL_X
259wxSYS_VSCROLL_ARROW_X = misc2c.wxSYS_VSCROLL_ARROW_X
260wxSYS_VSCROLL_ARROW_Y = misc2c.wxSYS_VSCROLL_ARROW_Y
261wxSYS_VTHUMB_Y = misc2c.wxSYS_VTHUMB_Y
262wxSYS_CAPTION_Y = misc2c.wxSYS_CAPTION_Y
263wxSYS_MENU_Y = misc2c.wxSYS_MENU_Y
264wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT
265wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
266wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
267wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS