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