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