]>
Commit | Line | Data |
---|---|---|
06d20283 RD |
1 | \chapter{wxPython Notes}\label{wxPython} |
2 | \pagenumbering{arabic}% | |
3 | \setheader{{\it CHAPTER \thechapter}}{}{}{}{}{{\it CHAPTER \thechapter}}% | |
4 | \setfooter{\thepage}{}{}{}{}{\thepage}% | |
5 | ||
2a47d3c1 JS |
6 | This addendum is written by Robin Dunn, author of the wxPython wrapper |
7 | ||
06d20283 RD |
8 | %---------------------------------------------------------------------- |
9 | \section{What is wxPython?}\label{wxpwhat} | |
10 | ||
f899db6d | 11 | wxPython is a blending of the wxWindows GUI classes and the |
06d20283 RD |
12 | \urlref{Python}{http://www.python.org/} programming language. |
13 | ||
14 | \wxheading{Python} | |
15 | ||
76e1c2de | 16 | So what is Python? Go to |
7e9a386e JS |
17 | \urlref{http://www.python.org}{http://www.python.org} to learn more, |
18 | but in a nutshell Python is an interpreted, | |
06d20283 RD |
19 | interactive, object-oriented programming language. It is often |
20 | compared to Tcl, Perl, Scheme or Java. | |
21 | ||
22 | Python combines remarkable power with very clear syntax. It has | |
23 | modules, classes, exceptions, very high level dynamic data types, and | |
24 | dynamic typing. There are interfaces to many system calls and | |
25 | libraries, and new built-in modules are easily written in C or | |
26 | C++. Python is also usable as an extension language for applications | |
27 | that need a programmable interface. | |
28 | ||
29 | Python is copyrighted but freely usable and distributable, even for | |
30 | commercial use. | |
31 | ||
32 | \wxheading{wxPython} | |
33 | ||
34 | wxPython is a Python package that can be imported at runtime that | |
35 | includes a collection of Python modules and an extension module | |
7e9a386e JS |
36 | (native code). It provides a series of Python classes that mirror (or |
37 | shadow) many of the wxWindows GUI classes. This extension module | |
06d20283 RD |
38 | attempts to mirror the class heiarchy of wxWindows as closely as |
39 | possble. This means that there is a wxFrame class in wxPython that | |
40 | looks, smells, tastes and acts almost the same as the wxFrame class in | |
41 | the C++ version. | |
42 | ||
7e9a386e | 43 | wxPython is very versitile. It can be used to create standalone GUI |
06d20283 RD |
44 | applications, or in situations where Python is embedded in a C++ |
45 | application as an internal scripting or macro language. | |
46 | ||
47 | Currently wxPython is available for Win32 platforms and the GTK | |
7e9a386e JS |
48 | toolkit (wxGTK) on most Unix/X-windows platforms. The effort to |
49 | enable wxPython for wxMotif will begin shortly. See \helpref{Building Python}{wxpbuild} for | |
2a47d3c1 | 50 | details about getting wxPython working for you. |
06d20283 | 51 | |
06d20283 RD |
52 | %---------------------------------------------------------------------- |
53 | \section{Why use wxPython?}\label{wxpwhy} | |
54 | ||
06d20283 | 55 | So why would you want to use wxPython over just C++ and wxWindows? |
2a47d3c1 | 56 | Personally I prefer using Python for everything. I only use C++ when |
76e1c2de | 57 | I absolutely have to eek more performance out of an algorithm, and even |
06d20283 RD |
58 | then I ususally code it as an extension module and leave the majority |
59 | of the program in Python. | |
60 | ||
61 | Another good thing to use wxPython for is quick prototyping of your | |
7e9a386e JS |
62 | wxWindows apps. With C++ you have to continuously go though the |
63 | edit-compile-link-run cycle, which can be quite time consuming. With | |
64 | Python it is only an edit-run cycle. You can easily build an | |
06d20283 | 65 | application in a few hours with Python that would normally take a few |
7e9a386e | 66 | days or longer with C++. Converting a wxPython app to a C++/wxWindows app |
06d20283 RD |
67 | should be a straight forward task. |
68 | ||
06d20283 RD |
69 | %---------------------------------------------------------------------- |
70 | \section{Other Python GUIs}\label{wxpother} | |
71 | ||
72 | There are other GUI solutions out there for Python. | |
73 | ||
74 | \wxheading{Tkinter} | |
75 | ||
7e9a386e JS |
76 | Tkinter is the defacto standard GUI for Python. It is available |
77 | on nearly every platform that Python and Tcl/TK are. Why Tcl/Tk? | |
06d20283 RD |
78 | Well because Tkinter is just a wrapper around Tcl's GUI toolkit, Tk. |
79 | This has its upsides and its downsides... | |
80 | ||
7e9a386e JS |
81 | The upside is that Tk is a pretty versatile toolkit. It can be made |
82 | to do a lot of things in a lot of different environments. It is fairly | |
06d20283 RD |
83 | easy to create new widgets and use them interchangably in your |
84 | programs. | |
85 | ||
7e9a386e | 86 | The downside is Tcl. When using Tkinter you actually have two |
06d20283 | 87 | separate language interpreters running, the Python interpreter and the |
7e9a386e JS |
88 | Tcl interpreter for the GUI. Since the guts of Tcl is mostly about |
89 | string processing, it is fairly slow as well. (Not too bad on a fast | |
06d20283 RD |
90 | Pentium II, but you really notice the difference on slower machines.) |
91 | ||
92 | It wasn't until the lastest version of Tcl/Tk that native Look and | |
7e9a386e JS |
93 | Feel was possible on non-Motif platforms. This is because Tk |
94 | usually implements its own widgets (controls) even when there are | |
06d20283 RD |
95 | native controls available. |
96 | ||
7e9a386e | 97 | Tkinter is a pretty low-level toolkit. You have to do a lot of work |
06d20283 RD |
98 | (verbose program code) to do things that would be much simpler with a higher |
99 | level of abstraction. | |
100 | ||
101 | \wxheading{PythonWin} | |
102 | ||
7e9a386e JS |
103 | PythonWin is an add-on package for Python for the Win32 platform. It |
104 | includes wrappers for MFC as well as much of the Win32 API. Because | |
06d20283 | 105 | of its foundation, it is very familiar for programmers who have |
7e9a386e JS |
106 | experience with MFC and the Win32 API. It is obviously not compatible |
107 | with other platforms and toolkits. PythonWin is organized as separate | |
06d20283 RD |
108 | packages and modules so you can use the pieces you need without having |
109 | to use the GUI portions. | |
110 | ||
111 | \wxheading{Others} | |
112 | ||
113 | There are quite a few other GUI modules available for Python, some in | |
7e9a386e | 114 | active use, some that havn't been updated for ages. Most are simple |
06d20283 | 115 | wrappers around some C or C++ toolkit or another, and most are not |
154f22b3 | 116 | cross-platform compatible. See \urlref{this link}{http://www.python.org/download/Contributed.html\#Graphics} |
06d20283 RD |
117 | for a listing of a few of them. |
118 | ||
06d20283 RD |
119 | %---------------------------------------------------------------------- |
120 | \section{Building wxPython}\label{wxpbuild} | |
121 | ||
122 | I used SWIG (\urlref{http://www.swig.org}{http://www.swig.org}) to | |
ac1edf35 | 123 | to create the source code for the |
7e9a386e | 124 | extension module. This enabled me to only have to deal with a small |
ac1edf35 RD |
125 | amount of code and only have to bother with the exceptional issues. |
126 | SWIG takes care of the rest and generates all the repetative code for | |
7e9a386e | 127 | me. You don't need SWIG to build the extension module as all the |
ac1edf35 | 128 | generated C++ code is included under the src directory. |
06d20283 RD |
129 | |
130 | I added a few minor features to SWIG to control some of the code | |
7e9a386e | 131 | generation. If you want to play around with this you will need to get |
76e1c2de | 132 | a recent version of SWIG from their CVS or from a daily build. See |
ac1edf35 | 133 | \urlref{http://www.swig.org/}{http://www.swig.org/} for details. |
06d20283 | 134 | |
7e9a386e | 135 | wxPython is organized as a Python package. This means that the |
06d20283 | 136 | directory containing the results of the build process should be a |
7e9a386e JS |
137 | subdirectory of a directory on the \tt{PYTHONPATH}. (And preferably should |
138 | be named wxPython.) You can control where the build process will dump | |
139 | wxPython by setting the \tt{TARGETDIR} variable for the build utility (see | |
140 | below). | |
06d20283 RD |
141 | |
142 | \begin{enumerate}\itemsep=0pt | |
7e9a386e JS |
143 | \item Build wxWindows as described in its BuildCVS.txt file. For Unix |
144 | systems I run configure with these flags: | |
06d20283 | 145 | |
ac1edf35 RD |
146 | \begin{verbatim} |
147 | --with-gtk | |
148 | --with-libjpeg | |
149 | --without-odbc | |
150 | --enable-unicode=no | |
151 | --enable-threads=yes | |
152 | --enable-socket=yes | |
153 | --enable-static=no | |
154 | --enable-shared=yes | |
155 | --disable-std_iostreams | |
156 | \end{verbatim} | |
06d20283 | 157 | |
7e9a386e | 158 | You can use whatever flags you want, but I know these work. |
06d20283 | 159 | |
7e9a386e JS |
160 | For Win32 systems I use Visual C++ 6.0, but 5.0 should work also. The |
161 | build utility currently does not support any other Win32 compilers. | |
ac1edf35 | 162 | \item At this point you may want to make an alias or symlink, script, |
7e9a386e JS |
163 | batch file, whatever on the PATH that invokes \tt{\$(WXWIN)/utils/wxPython/distrib/build.py} to |
164 | help simplify matters somewhat. For example, on my Win32 system I have a file named | |
165 | \tt{build}.bat in a directory on the PATH that contains: | |
06d20283 | 166 | |
7e9a386e | 167 | \tt{python \%WXWIN/utils/wxPython/distrib/build.py \%1 \%2 \%3 \%4 \%5 \%6} |
06d20283 | 168 | \item Change into the \tt{\$(WXWIN)/utils/wxPython/src} directory. |
ac1edf35 | 169 | \item Type "\tt{build -b}" to build wxPython and "\tt{build -i}" to |
7e9a386e JS |
170 | install it, or "\tt{build -bi}" to do both steps at once. |
171 | ||
172 | The build.py script actually generates a Makefile based on what it | |
173 | finds on your system and information found in the build.cfg file. | |
174 | If you have troubles building or you want it built or installed in | |
175 | a different way, take a look at the docstring in build.py. You are | |
176 | able to to override many configuration options in a file named | |
177 | build.local. | |
ac1edf35 | 178 | \item To build and install the add-on modules, change to the appropriate |
7e9a386e JS |
179 | directory under \tt{\$(WXWIN)/utils/wxPython/modules} and run the build |
180 | utility again. | |
f899db6d | 181 | \item Change to the \tt{\$(WXWIN)/utils/wxPython/demo} directory. |
7e9a386e | 182 | \item Try executing the demo program. For example: |
ac1edf35 | 183 | |
7e9a386e | 184 | \tt{python demo.py} |
06d20283 | 185 | |
7e9a386e | 186 | To run it without requiring a console on Win32, you can use the |
ac1edf35 RD |
187 | \tt{pythonw.exe} version of Python either from the command line or from a |
188 | shortcut. | |
06d20283 RD |
189 | \end{enumerate} |
190 | ||
06d20283 RD |
191 | %---------------------------------------------------------------------- |
192 | \section{Using wxPython}\label{wxpusing} | |
193 | ||
194 | \wxheading{First things first...} | |
195 | ||
7e9a386e | 196 | I'm not going to try and teach the Python language here. You can do |
06d20283 RD |
197 | that at the \urlref{Python Tutorial}{http://www.python.org/doc/tut/tut.html}. |
198 | I'm also going to assume that you know a bit about wxWindows already, | |
199 | enough to notice the similarities in the classes used. | |
200 | ||
7e9a386e JS |
201 | Take a look at the following wxPython program. You can find a similar |
202 | program in the \tt{wxPython/demo} directory, named \tt{DialogUnits.py}. If your | |
06d20283 RD |
203 | Python and wxPython are properly installed, you should be able to run |
204 | it by issuing this command: | |
205 | ||
206 | \begin{indented}{1cm} | |
f899db6d | 207 | \bftt{python DialogUnits.py} |
06d20283 RD |
208 | \end{indented} |
209 | ||
210 | \hrule | |
211 | ||
212 | \begin{verbatim} | |
213 | 001: ## import all of the wxPython GUI package | |
214 | 002: from wxPython.wx import * | |
215 | 003: | |
216 | 004: ## Create a new frame class, derived from the wxPython Frame. | |
217 | 005: class MyFrame(wxFrame): | |
218 | 006: | |
219 | 007: def __init__(self, parent, id, title): | |
220 | 008: # First, call the base class' __init__ method to create the frame | |
221 | 009: wxFrame.__init__(self, parent, id, title, | |
222 | 010: wxPoint(100, 100), wxSize(160, 100)) | |
223 | 011: | |
224 | 012: # Associate some events with methods of this class | |
225 | 013: EVT_SIZE(self, self.OnSize) | |
226 | 014: EVT_MOVE(self, self.OnMove) | |
227 | 015: | |
228 | 016: # Add a panel and some controls to display the size and position | |
229 | 017: panel = wxPanel(self, -1) | |
230 | 018: wxStaticText(panel, -1, "Size:", | |
231 | 019: wxDLG_PNT(panel, wxPoint(4, 4)), wxDefaultSize) | |
232 | 020: wxStaticText(panel, -1, "Pos:", | |
233 | 021: wxDLG_PNT(panel, wxPoint(4, 14)), wxDefaultSize) | |
234 | 022: self.sizeCtrl = wxTextCtrl(panel, -1, "", | |
235 | 023: wxDLG_PNT(panel, wxPoint(24, 4)), | |
236 | 024: wxDLG_SZE(panel, wxSize(36, -1)), | |
237 | 025: wxTE_READONLY) | |
238 | 026: self.posCtrl = wxTextCtrl(panel, -1, "", | |
239 | 027: wxDLG_PNT(panel, wxPoint(24, 14)), | |
240 | 028: wxDLG_SZE(panel, wxSize(36, -1)), | |
241 | 029: wxTE_READONLY) | |
242 | 030: | |
243 | 031: | |
244 | 032: # This method is called automatically when the CLOSE event is | |
245 | 033: # sent to this window | |
246 | 034: def OnCloseWindow(self, event): | |
247 | 035: # tell the window to kill itself | |
248 | 036: self.Destroy() | |
249 | 037: | |
250 | 038: # This method is called by the system when the window is resized, | |
251 | 039: # because of the association above. | |
252 | 040: def OnSize(self, event): | |
253 | 041: size = event.GetSize() | |
254 | 042: self.sizeCtrl.SetValue("%s, %s" % (size.width, size.height)) | |
255 | 043: | |
256 | 044: # tell the event system to continue looking for an event handler, | |
257 | 045: # so the default handler will get called. | |
258 | 046: event.Skip() | |
259 | 047: | |
260 | 048: # This method is called by the system when the window is moved, | |
261 | 049: # because of the association above. | |
262 | 050: def OnMove(self, event): | |
263 | 051: pos = event.GetPosition() | |
264 | 052: self.posCtrl.SetValue("%s, %s" % (pos.x, pos.y)) | |
265 | 053: | |
266 | 054: | |
267 | 055: # Every wxWindows application must have a class derived from wxApp | |
268 | 056: class MyApp(wxApp): | |
269 | 057: | |
270 | 058: # wxWindows calls this method to initialize the application | |
271 | 059: def OnInit(self): | |
272 | 060: | |
273 | 061: # Create an instance of our customized Frame class | |
274 | 062: frame = MyFrame(NULL, -1, "This is a test") | |
275 | 063: frame.Show(true) | |
276 | 064: | |
277 | 065: # Tell wxWindows that this is our main window | |
278 | 066: self.SetTopWindow(frame) | |
279 | 067: | |
280 | 068: # Return a success flag | |
281 | 069: return true | |
282 | 070: | |
283 | 071: | |
284 | 072: app = MyApp(0) # Create an instance of the application class | |
285 | 073: app.MainLoop() # Tell it to start processing events | |
286 | 074: | |
287 | \end{verbatim} | |
288 | \hrule | |
289 | ||
2a47d3c1 JS |
290 | \wxheading{Things to notice} |
291 | ||
154f22b3 | 292 | \begin{enumerate}\itemsep=11pt |
06d20283 | 293 | \item At line 2 the wxPython classes, constants, and etc. are imported |
7e9a386e | 294 | into the current module's namespace. If you prefer to reduce |
ac1edf35 | 295 | namespace pollution you can use "\tt{from wxPython import wx}" and |
06d20283 RD |
296 | then access all the wxPython identifiers through the wx module, for |
297 | example, "\tt{wx.wxFrame}". | |
06d20283 | 298 | \item At line 13 the frame's sizing and moving events are connected to |
7e9a386e JS |
299 | methods of the class. These helper functions are intended to be like |
300 | the event table macros that wxWindows employs. But since static event | |
06d20283 | 301 | tables are impossible with wxPython, we use helpers that are named the |
7e9a386e | 302 | same to dynamically build the table. The only real difference is |
06d20283 RD |
303 | that the first arguemnt to the event helpers is always the window that |
304 | the event table entry should be added to. | |
2a47d3c1 | 305 | \item Notice the use of \tt{wxDLG\_PNT} and \tt{wxDLG\_SZE} in lines 19 |
7e9a386e | 306 | - 29 to convert from dialog units to pixels. These helpers are unique |
06d20283 | 307 | to wxPython since Python can't do method overloading like C++. |
06d20283 | 308 | \item There is an \tt{OnCloseWindow} method at line 34 but no call to |
7e9a386e JS |
309 | EVT\_CLOSE to attach the event to the method. Does it really get |
310 | called? The answer is, yes it does. This is because many of the | |
06d20283 | 311 | \em{standard} events are attached to windows that have the associated |
7e9a386e | 312 | \em{standard} method names. I have tried to follow the lead of the |
06d20283 RD |
313 | C++ classes in this area to determine what is \em{standard} but since |
314 | that changes from time to time I can make no guarentees, nor will it | |
7e9a386e | 315 | be fully documented. When in doubt, use an EVT\_*** function. |
06d20283 | 316 | \item At lines 17 to 21 notice that there are no saved references to |
7e9a386e | 317 | the panel or the static text items that are created. Those of you |
06d20283 | 318 | who know Python might be wondering what happens when Python deletes |
7e9a386e JS |
319 | these objects when they go out of scope. Do they disappear from the GUI? They |
320 | don't. Remember that in wxPython the Python objects are just shadows of the | |
321 | coresponding C++ objects. Once the C++ windows and controls are | |
06d20283 | 322 | attached to their parents, the parents manage them and delete them |
7e9a386e | 323 | when necessary. For this reason, most wxPython objects do not need to |
2a47d3c1 | 324 | have a \_\_del\_\_ method that explicitly causes the C++ object to be |
7e9a386e | 325 | deleted. If you ever have the need to forcibly delete a window, use |
06d20283 | 326 | the Destroy() method as shown on line 36. |
06d20283 | 327 | \item Just like wxWindows in C++, wxPython apps need to create a class |
f899db6d | 328 | derived from \tt{wxApp} (line 56) that implements a method named |
06d20283 RD |
329 | \tt{OnInit}, (line 59.) This method should create the application's |
330 | main window (line 62) and use \tt{wxApp.SetTopWindow()} (line 66) to | |
331 | inform wxWindows about it. | |
06d20283 | 332 | \item And finally, at line 72 an instance of the application class is |
7e9a386e JS |
333 | created. At this point wxPython finishes initializing itself, and calls |
334 | the \tt{OnInit} method to get things started. (The zero parameter here is | |
335 | a flag for functionality that isn't quite implemented yet. Just | |
06d20283 RD |
336 | ignore it for now.) The call to \tt{MainLoop} at line 73 starts the event |
337 | loop which continues until the application terminates or all the top | |
338 | level windows are closed. | |
06d20283 RD |
339 | \end{enumerate} |
340 | ||
06d20283 RD |
341 | %---------------------------------------------------------------------- |
342 | \section{wxWindows classes implemented in wxPython}\label{wxpclasses} | |
343 | ||
7e9a386e | 344 | The following classes are supported in wxPython. Most provide nearly |
06d20283 | 345 | full implementations of the public interfaces specified in the C++ |
7e9a386e | 346 | documentation, others are less so. They will all be brought as close |
06d20283 RD |
347 | as possible to the C++ spec over time. |
348 | ||
349 | \begin{itemize}\itemsep=0pt | |
350 | \item \helpref{wxAcceleratorEntry}{wxacceleratorentry} | |
351 | \item \helpref{wxAcceleratorTable}{wxacceleratortable} | |
352 | \item \helpref{wxActivateEvent}{wxactivateevent} | |
353 | \item \helpref{wxBitmapButton}{wxbitmapbutton} | |
354 | \item \helpref{wxBitmap}{wxbitmap} | |
f899db6d | 355 | \item wxBMPHandler |
86e78222 | 356 | \item \helpref{wxBoxSizer}{wxboxsizer} |
06d20283 | 357 | \item \helpref{wxBrush}{wxbrush} |
b32c6ff0 RD |
358 | \item \helpref{wxBusyInfo}{wxbusyinfo} |
359 | \item \helpref{wxBusyCursor}{wxbusycursor} | |
06d20283 RD |
360 | \item \helpref{wxButton}{wxbutton} |
361 | \item \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent} | |
86e78222 | 362 | \item wxCaret |
06d20283 RD |
363 | \item \helpref{wxCheckBox}{wxcheckbox} |
364 | \item \helpref{wxCheckListBox}{wxchecklistbox} | |
365 | \item \helpref{wxChoice}{wxchoice} | |
366 | \item \helpref{wxClientDC}{wxclientdc} | |
367 | \item \helpref{wxCloseEvent}{wxcloseevent} | |
368 | \item \helpref{wxColourData}{wxcolourdata} | |
369 | \item \helpref{wxColourDialog}{wxcolourdialog} | |
370 | \item \helpref{wxColour}{wxcolour} | |
371 | \item \helpref{wxComboBox}{wxcombobox} | |
372 | \item \helpref{wxCommandEvent}{wxcommandevent} | |
373 | \item \helpref{wxConfig}{wxconfigbase} | |
374 | \item \helpref{wxControl}{wxcontrol} | |
375 | \item \helpref{wxCursor}{wxcursor} | |
376 | \item \helpref{wxDC}{wxdc} | |
377 | \item \helpref{wxDialog}{wxdialog} | |
378 | \item \helpref{wxDirDialog}{wxdirdialog} | |
379 | \item \helpref{wxDropFilesEvent}{wxdropfilesevent} | |
380 | \item \helpref{wxEraseEvent}{wxeraseevent} | |
381 | \item \helpref{wxEvent}{wxevent} | |
382 | \item \helpref{wxEvtHandler}{wxevthandler} | |
383 | \item \helpref{wxFileDialog}{wxfiledialog} | |
384 | \item \helpref{wxFocusEvent}{wxfocusevent} | |
385 | \item \helpref{wxFontData}{wxfontdata} | |
386 | \item \helpref{wxFontDialog}{wxfontdialog} | |
387 | \item \helpref{wxFont}{wxfont} | |
388 | \item \helpref{wxFrame}{wxframe} | |
389 | \item \helpref{wxGauge}{wxgauge} | |
f899db6d RD |
390 | \item wxGIFHandler |
391 | \item wxGLCanvas | |
fd34e3a5 JS |
392 | \item wxGridCell |
393 | \item wxGridEvent | |
06d20283 | 394 | \item \helpref{wxGrid}{wxgrid} |
86e78222 RD |
395 | \item \helpref{wxHtmlCell}{wxhtmlcell} |
396 | \item \helpref{wxHtmlContainerCell}{wxhtmlcontainercell} | |
b32c6ff0 RD |
397 | \item \helpref{wxHtmlDCRenderer}{wxhtmldcrenderer} |
398 | \item \helpref{wxHtmlEasyPrinting}{wxhtmleasyprinting} | |
86e78222 RD |
399 | \item \helpref{wxHtmlParser}{wxhtmlparser} |
400 | \item \helpref{wxHtmlTagHandler}{wxhtmltaghandler} | |
401 | \item \helpref{wxHtmlTag}{wxhtmltag} | |
402 | \item \helpref{wxHtmlWinParser}{wxhtmlwinparser} | |
b32c6ff0 | 403 | \item \helpref{wxHtmlPrintout}{wxhtmlprintout} |
86e78222 RD |
404 | \item \helpref{wxHtmlWinTagHandler}{wxhtmlwintaghandler} |
405 | \item \helpref{wxHtmlWindow}{wxhtmlwindow} | |
fd34e3a5 | 406 | \item wxIconizeEvent |
06d20283 RD |
407 | \item \helpref{wxIcon}{wxicon} |
408 | \item \helpref{wxIdleEvent}{wxidleevent} | |
f899db6d RD |
409 | \item \helpref{wxImage}{wximage} |
410 | \item \helpref{wxImageHandler}{wximagehandler} | |
06d20283 RD |
411 | \item \helpref{wxImageList}{wximagelist} |
412 | \item \helpref{wxIndividualLayoutConstraint}{wxindividuallayoutconstraint} | |
413 | \item \helpref{wxInitDialogEvent}{wxinitdialogevent} | |
414 | \item \helpref{wxJoystickEvent}{wxjoystickevent} | |
f899db6d | 415 | \item wxJPEGHandler |
06d20283 RD |
416 | \item \helpref{wxKeyEvent}{wxkeyevent} |
417 | \item \helpref{wxLayoutAlgorithm}{wxlayoutalgorithm} | |
418 | \item \helpref{wxLayoutConstraints}{wxlayoutconstraints} | |
419 | \item \helpref{wxListBox}{wxlistbox} | |
420 | \item \helpref{wxListCtrl}{wxlistctrl} | |
421 | \item \helpref{wxListEvent}{wxlistevent} | |
21f280f4 | 422 | \item \helpref{wxListItem}{wxlistctrlsetitem} |
06d20283 RD |
423 | \item \helpref{wxMDIChildFrame}{wxmdichildframe} |
424 | \item \helpref{wxMDIClientWindow}{wxmdiclientwindow} | |
425 | \item \helpref{wxMDIParentFrame}{wxmdiparentframe} | |
426 | \item \helpref{wxMask}{wxmask} | |
fd34e3a5 | 427 | \item wxMaximizeEvent |
06d20283 RD |
428 | \item \helpref{wxMemoryDC}{wxmemorydc} |
429 | \item \helpref{wxMenuBar}{wxmenubar} | |
430 | \item \helpref{wxMenuEvent}{wxmenuevent} | |
431 | \item \helpref{wxMenuItem}{wxmenuitem} | |
432 | \item \helpref{wxMenu}{wxmenu} | |
433 | \item \helpref{wxMessageDialog}{wxmessagedialog} | |
434 | \item \helpref{wxMetaFileDC}{wxmetafiledc} | |
435 | \item \helpref{wxMiniFrame}{wxminiframe} | |
436 | \item \helpref{wxMouseEvent}{wxmouseevent} | |
437 | \item \helpref{wxMoveEvent}{wxmoveevent} | |
438 | \item \helpref{wxNotebookEvent}{wxnotebookevent} | |
439 | \item \helpref{wxNotebook}{wxnotebook} | |
7bcb11d3 | 440 | \item \helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} |
06d20283 RD |
441 | \item \helpref{wxPageSetupDialog}{wxpagesetupdialog} |
442 | \item \helpref{wxPaintDC}{wxpaintdc} | |
443 | \item \helpref{wxPaintEvent}{wxpaintevent} | |
444 | \item \helpref{wxPalette}{wxpalette} | |
445 | \item \helpref{wxPanel}{wxpanel} | |
446 | \item \helpref{wxPen}{wxpen} | |
f899db6d | 447 | \item wxPNGHandler |
06d20283 RD |
448 | \item \helpref{wxPoint}{wxpoint} |
449 | \item \helpref{wxPostScriptDC}{wxpostscriptdc} | |
2233e5b8 | 450 | \item \helpref{wxPreviewFrame}{wxpreviewframe} |
06d20283 | 451 | \item \helpref{wxPrintData}{wxprintdata} |
2233e5b8 | 452 | \item \helpref{wxPrintDialogData}{wxprintdialogdata} |
06d20283 | 453 | \item \helpref{wxPrintDialog}{wxprintdialog} |
2233e5b8 RD |
454 | \item \helpref{wxPrinter}{wxprinter} |
455 | \item \helpref{wxPrintPreview}{wxprintpreview} | |
06d20283 | 456 | \item \helpref{wxPrinterDC}{wxprinterdc} |
2233e5b8 | 457 | \item \helpref{wxPrintout}{wxprintout} |
06d20283 RD |
458 | \item \helpref{wxQueryLayoutInfoEvent}{wxquerylayoutinfoevent} |
459 | \item \helpref{wxRadioBox}{wxradiobox} | |
460 | \item \helpref{wxRadioButton}{wxradiobutton} | |
461 | \item \helpref{wxRealPoint}{wxrealpoint} | |
462 | \item \helpref{wxRect}{wxrect} | |
463 | \item \helpref{wxRegionIterator}{wxregioniterator} | |
464 | \item \helpref{wxRegion}{wxregion} | |
465 | \item \helpref{wxSashEvent}{wxsashevent} | |
466 | \item \helpref{wxSashLayoutWindow}{wxsashlayoutwindow} | |
467 | \item \helpref{wxSashWindow}{wxsashwindow} | |
468 | \item \helpref{wxScreenDC}{wxscreendc} | |
469 | \item \helpref{wxScrollBar}{wxscrollbar} | |
470 | \item \helpref{wxScrollEvent}{wxscrollevent} | |
471 | \item \helpref{wxScrolledWindow}{wxscrolledwindow} | |
76e1c2de | 472 | \item \helpref{wxScrollWinEvent}{wxscrollwinevent} |
fd34e3a5 | 473 | \item wxShowEvent |
06d20283 RD |
474 | \item \helpref{wxSingleChoiceDialog}{wxsinglechoicedialog} |
475 | \item \helpref{wxSizeEvent}{wxsizeevent} | |
476 | \item \helpref{wxSize}{wxsize} | |
86e78222 | 477 | \item \helpref{wxSizer}{wxsizer} |
76e1c2de | 478 | \item wxSizerItem |
06d20283 RD |
479 | \item \helpref{wxSlider}{wxslider} |
480 | \item \helpref{wxSpinButton}{wxspinbutton} | |
fd34e3a5 | 481 | \item wxSpinEvent |
06d20283 RD |
482 | \item \helpref{wxSplitterWindow}{wxsplitterwindow} |
483 | \item \helpref{wxStaticBitmap}{wxstaticbitmap} | |
484 | \item \helpref{wxStaticBox}{wxstaticbox} | |
86e78222 | 485 | \item \helpref{wxStaticBoxSizer}{wxstaticboxsizer} |
154f22b3 | 486 | \item \helpref{wxStaticLine}{wxstaticline} |
06d20283 RD |
487 | \item \helpref{wxStaticText}{wxstatictext} |
488 | \item \helpref{wxStatusBar}{wxstatusbar} | |
489 | \item \helpref{wxSysColourChangedEvent}{wxsyscolourchangedevent} | |
490 | \item \helpref{wxTaskBarIcon}{wxtaskbaricon} | |
491 | \item \helpref{wxTextCtrl}{wxtextctrl} | |
492 | \item \helpref{wxTextEntryDialog}{wxtextentrydialog} | |
493 | \item \helpref{wxTimer}{wxtimer} | |
fd34e3a5 | 494 | \item wxToolBarTool |
06d20283 | 495 | \item \helpref{wxToolBar}{wxtoolbar} |
fd34e3a5 | 496 | \item wxToolTip |
06d20283 RD |
497 | \item \helpref{wxTreeCtrl}{wxtreectrl} |
498 | \item \helpref{wxTreeEvent}{wxtreeevent} | |
499 | \item \helpref{wxTreeItemData}{wxtreeitemdata} | |
fd34e3a5 | 500 | \item wxTreeItemId |
06d20283 | 501 | \item \helpref{wxUpdateUIEvent}{wxupdateuievent} |
76e1c2de | 502 | \item \helpref{wxValidator}{wxvalidator} |
06d20283 RD |
503 | \item \helpref{wxWindowDC}{wxwindowdc} |
504 | \item \helpref{wxWindow}{wxwindow} | |
505 | \end{itemize} | |
506 | ||
507 | %---------------------------------------------------------------------- | |
508 | \section{Where to go for help}\label{wxphelp} | |
509 | ||
510 | Since wxPython is a blending of multiple technologies, help comes from | |
154f22b3 | 511 | multiple sources. See |
06d20283 RD |
512 | \urlref{http://alldunn.com/wxPython}{http://alldunn.com/wxPython} for details on |
513 | various sources of help, but probably the best source is the | |
7e9a386e | 514 | wxPython-users mail list. You can view the archive or subscribe by |
06d20283 RD |
515 | going to |
516 | ||
517 | \urlref{http://starship.python.net/mailman/listinfo/wxpython-users}{http://starship.python.net/mailman/listinfo/wxpython-users} | |
518 | ||
519 | Or you can send mail directly to the list using this address: | |
520 | ||
521 | wxpython-users@starship.python.net | |
522 |