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