]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/stattool.py
Using a new version of SWIG
[wxWidgets.git] / utils / wxPython / src / gtk / stattool.py
1 # This file was created automatically by SWIG.
2 import stattoolc
3
4 from misc import *
5
6 from windows import *
7
8 from gdi import *
9
10 from controls import *
11
12 from events import *
13 import wx
14 class wxStatusBarPtr(wxWindowPtr):
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def GetFieldRect(self, *_args, **_kwargs):
19 val = apply(stattoolc.wxStatusBar_GetFieldRect,(self,) + _args, _kwargs)
20 if val: val = wxRectPtr(val) ; val.thisown = 1
21 return val
22 def GetFieldsCount(self, *_args, **_kwargs):
23 val = apply(stattoolc.wxStatusBar_GetFieldsCount,(self,) + _args, _kwargs)
24 return val
25 def GetStatusText(self, *_args, **_kwargs):
26 val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
27 return val
28 def DrawField(self, *_args, **_kwargs):
29 val = apply(stattoolc.wxStatusBar_DrawField,(self,) + _args, _kwargs)
30 return val
31 def DrawFieldText(self, *_args, **_kwargs):
32 val = apply(stattoolc.wxStatusBar_DrawFieldText,(self,) + _args, _kwargs)
33 return val
34 def InitColours(self, *_args, **_kwargs):
35 val = apply(stattoolc.wxStatusBar_InitColours,(self,) + _args, _kwargs)
36 return val
37 def SetFieldsCount(self, *_args, **_kwargs):
38 val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
39 return val
40 def SetStatusText(self, *_args, **_kwargs):
41 val = apply(stattoolc.wxStatusBar_SetStatusText,(self,) + _args, _kwargs)
42 return val
43 def SetStatusWidths(self, *_args, **_kwargs):
44 val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
45 return val
46 def __repr__(self):
47 return "<C wxStatusBar instance at %s>" % (self.this,)
48 class wxStatusBar(wxStatusBarPtr):
49 def __init__(self,*_args,**_kwargs):
50 self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs)
51 self.thisown = 1
52 wx._StdWindowCallbacks(self)
53
54
55
56
57 class wxToolBarToolPtr :
58 def __init__(self,this):
59 self.this = this
60 self.thisown = 0
61 def __del__(self,stattoolc=stattoolc):
62 if self.thisown == 1 :
63 stattoolc.delete_wxToolBarTool(self)
64 def __setattr__(self,name,value):
65 if name == "m_toolStyle" :
66 stattoolc.wxToolBarTool_m_toolStyle_set(self,value)
67 return
68 if name == "m_clientData" :
69 stattoolc.wxToolBarTool_m_clientData_set(self,value)
70 return
71 if name == "m_index" :
72 stattoolc.wxToolBarTool_m_index_set(self,value)
73 return
74 if name == "m_toggleState" :
75 stattoolc.wxToolBarTool_m_toggleState_set(self,value)
76 return
77 if name == "m_isToggle" :
78 stattoolc.wxToolBarTool_m_isToggle_set(self,value)
79 return
80 if name == "m_deleteSecondBitmap" :
81 stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self,value)
82 return
83 if name == "m_enabled" :
84 stattoolc.wxToolBarTool_m_enabled_set(self,value)
85 return
86 if name == "m_bitmap1" :
87 stattoolc.wxToolBarTool_m_bitmap1_set(self,value.this)
88 return
89 if name == "m_bitmap2" :
90 stattoolc.wxToolBarTool_m_bitmap2_set(self,value.this)
91 return
92 if name == "m_isMenuCommand" :
93 stattoolc.wxToolBarTool_m_isMenuCommand_set(self,value)
94 return
95 if name == "m_shortHelpString" :
96 stattoolc.wxToolBarTool_m_shortHelpString_set(self,value)
97 return
98 if name == "m_longHelpString" :
99 stattoolc.wxToolBarTool_m_longHelpString_set(self,value)
100 return
101 self.__dict__[name] = value
102 def __getattr__(self,name):
103 if name == "m_toolStyle" :
104 return stattoolc.wxToolBarTool_m_toolStyle_get(self)
105 if name == "m_clientData" :
106 return stattoolc.wxToolBarTool_m_clientData_get(self)
107 if name == "m_index" :
108 return stattoolc.wxToolBarTool_m_index_get(self)
109 if name == "m_toggleState" :
110 return stattoolc.wxToolBarTool_m_toggleState_get(self)
111 if name == "m_isToggle" :
112 return stattoolc.wxToolBarTool_m_isToggle_get(self)
113 if name == "m_deleteSecondBitmap" :
114 return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self)
115 if name == "m_enabled" :
116 return stattoolc.wxToolBarTool_m_enabled_get(self)
117 if name == "m_bitmap1" :
118 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self))
119 if name == "m_bitmap2" :
120 return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self))
121 if name == "m_isMenuCommand" :
122 return stattoolc.wxToolBarTool_m_isMenuCommand_get(self)
123 if name == "m_shortHelpString" :
124 return stattoolc.wxToolBarTool_m_shortHelpString_get(self)
125 if name == "m_longHelpString" :
126 return stattoolc.wxToolBarTool_m_longHelpString_get(self)
127 raise AttributeError,name
128 def __repr__(self):
129 return "<C wxToolBarTool instance at %s>" % (self.this,)
130 class wxToolBarTool(wxToolBarToolPtr):
131 def __init__(self,*_args,**_kwargs):
132 self.this = apply(stattoolc.new_wxToolBarTool,_args,_kwargs)
133 self.thisown = 1
134
135
136
137
138 class wxToolBarPtr(wxControlPtr):
139 def __init__(self,this):
140 self.this = this
141 self.thisown = 0
142 def AddSeparator(self, *_args, **_kwargs):
143 val = apply(stattoolc.wxToolBar_AddSeparator,(self,) + _args, _kwargs)
144 return val
145 def AddTool(self, *_args, **_kwargs):
146 val = apply(stattoolc.wxToolBar_AddTool,(self,) + _args, _kwargs)
147 if val: val = wxToolBarToolPtr(val)
148 return val
149 def AddSimpleTool(self, *_args, **_kwargs):
150 val = apply(stattoolc.wxToolBar_AddSimpleTool,(self,) + _args, _kwargs)
151 if val: val = wxToolBarToolPtr(val)
152 return val
153 def EnableTool(self, *_args, **_kwargs):
154 val = apply(stattoolc.wxToolBar_EnableTool,(self,) + _args, _kwargs)
155 return val
156 def GetToolEnabled(self, *_args, **_kwargs):
157 val = apply(stattoolc.wxToolBar_GetToolEnabled,(self,) + _args, _kwargs)
158 return val
159 def GetToolLongHelp(self, *_args, **_kwargs):
160 val = apply(stattoolc.wxToolBar_GetToolLongHelp,(self,) + _args, _kwargs)
161 return val
162 def GetToolPacking(self, *_args, **_kwargs):
163 val = apply(stattoolc.wxToolBar_GetToolPacking,(self,) + _args, _kwargs)
164 return val
165 def GetToolSeparation(self, *_args, **_kwargs):
166 val = apply(stattoolc.wxToolBar_GetToolSeparation,(self,) + _args, _kwargs)
167 return val
168 def GetToolShortHelp(self, *_args, **_kwargs):
169 val = apply(stattoolc.wxToolBar_GetToolShortHelp,(self,) + _args, _kwargs)
170 return val
171 def GetToolState(self, *_args, **_kwargs):
172 val = apply(stattoolc.wxToolBar_GetToolState,(self,) + _args, _kwargs)
173 return val
174 def Realize(self, *_args, **_kwargs):
175 val = apply(stattoolc.wxToolBar_Realize,(self,) + _args, _kwargs)
176 return val
177 def SetToolLongHelp(self, *_args, **_kwargs):
178 val = apply(stattoolc.wxToolBar_SetToolLongHelp,(self,) + _args, _kwargs)
179 return val
180 def SetToolShortHelp(self, *_args, **_kwargs):
181 val = apply(stattoolc.wxToolBar_SetToolShortHelp,(self,) + _args, _kwargs)
182 return val
183 def SetMargins(self, *_args, **_kwargs):
184 val = apply(stattoolc.wxToolBar_SetMargins,(self,) + _args, _kwargs)
185 return val
186 def SetToolPacking(self, *_args, **_kwargs):
187 val = apply(stattoolc.wxToolBar_SetToolPacking,(self,) + _args, _kwargs)
188 return val
189 def SetToolSeparation(self, *_args, **_kwargs):
190 val = apply(stattoolc.wxToolBar_SetToolSeparation,(self,) + _args, _kwargs)
191 return val
192 def ToggleTool(self, *_args, **_kwargs):
193 val = apply(stattoolc.wxToolBar_ToggleTool,(self,) + _args, _kwargs)
194 return val
195 def __repr__(self):
196 return "<C wxToolBar instance at %s>" % (self.this,)
197 class wxToolBar(wxToolBarPtr):
198 def __init__(self,*_args,**_kwargs):
199 self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs)
200 self.thisown = 1
201 wx._StdWindowCallbacks(self)
202
203
204
205
206
207
208 #-------------- FUNCTION WRAPPERS ------------------
209
210
211
212 #-------------- VARIABLE WRAPPERS ------------------
213