wxPython doc updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -143,7 +143,7 @@ Under X, {\it type} defaults to wxBITMAP\_TYPE\_XPM.
|
|||||||
\pythonnote{Constructors supported by wxPython are:\par
|
\pythonnote{Constructors supported by wxPython are:\par
|
||||||
\indented{2cm}{\begin{twocollist}
|
\indented{2cm}{\begin{twocollist}
|
||||||
\twocolitem{\bf{wxBitmap(name, flag)}}{Loads a bitmap from a file}
|
\twocolitem{\bf{wxBitmap(name, flag)}}{Loads a bitmap from a file}
|
||||||
\twocolitem{\bf{wxBitmap(data, type, width, height, depth=1)}}{Creates
|
\twocolitem{\bf{wxBitmapFromData(data, type, width, height, depth=1)}}{Creates
|
||||||
a bitmap from the given data, which can be of arbitrary type.}
|
a bitmap from the given data, which can be of arbitrary type.}
|
||||||
\twocolitem{\bf{wxNoRefBitmap(name, flag)}}{This one won't own the
|
\twocolitem{\bf{wxNoRefBitmap(name, flag)}}{This one won't own the
|
||||||
reference, so Python won't call the destructor, this is good for toolbars
|
reference, so Python won't call the destructor, this is good for toolbars
|
||||||
|
@@ -233,3 +233,13 @@ of parent container}
|
|||||||
\docparam{tag}{In the second version of method, {\it w} and {\it units}
|
\docparam{tag}{In the second version of method, {\it w} and {\it units}
|
||||||
info is extracted from tag's {\tt WIDTH} parameter.}
|
info is extracted from tag's {\tt WIDTH} parameter.}
|
||||||
|
|
||||||
|
\pythonnote{The second form of this method is named
|
||||||
|
SetWidthFloatFromTag in wxPython.}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -92,6 +92,9 @@ Looking for the page runs in these steps:
|
|||||||
|
|
||||||
This alternative form is used to search help contents by numeric IDs.
|
This alternative form is used to search help contents by numeric IDs.
|
||||||
|
|
||||||
|
\pythonnote{The second form of this method is named DisplayId in
|
||||||
|
wxPython.}
|
||||||
|
|
||||||
\membersection{wxHtmlHelpController::DisplayContents}\label{wxhtmlhelpcontrollerdisplaycontents}
|
\membersection{wxHtmlHelpController::DisplayContents}\label{wxhtmlhelpcontrollerdisplaycontents}
|
||||||
|
|
||||||
\func{void}{DisplayContents}{\void}
|
\func{void}{DisplayContents}{\void}
|
||||||
|
@@ -93,6 +93,9 @@ Looking for the page runs in these steps:
|
|||||||
The second form takes numeric ID as the parameter.
|
The second form takes numeric ID as the parameter.
|
||||||
(uses extension to MS format, <param name="ID" value=id>)
|
(uses extension to MS format, <param name="ID" value=id>)
|
||||||
|
|
||||||
|
\pythonnote{The second form of this method is named DisplayId in
|
||||||
|
wxPython.}
|
||||||
|
|
||||||
\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
|
\membersection{wxHtmlHelpFrame::DisplayContents}\label{wxhtmlhelpframedisplaycontents}
|
||||||
|
|
||||||
\func{bool}{DisplayContents}{\void}
|
\func{bool}{DisplayContents}{\void}
|
||||||
|
@@ -25,12 +25,13 @@
|
|||||||
%\special{!/@scaleunit 1 def}
|
%\special{!/@scaleunit 1 def}
|
||||||
\parskip=10pt
|
\parskip=10pt
|
||||||
\parindent=0pt
|
\parindent=0pt
|
||||||
\title{wxWindows 2.1: a portable C++ GUI toolkit}
|
\title{wxWindows 2.1: a portable C++ and Python GUI toolkit}
|
||||||
\winhelponly{\author{by Julian Smart et al
|
\winhelponly{\author{by Julian Smart et al
|
||||||
%\winhelponly{\\$$\image{1cm;0cm}{wxwin.wmf}$$}
|
%\winhelponly{\\$$\image{1cm;0cm}{wxwin.wmf}$$}
|
||||||
}}
|
}}
|
||||||
\winhelpignore{\author{Julian Smart, Robert Roebling, Vadim Zeitlin et al}
|
\winhelpignore{\author{Julian Smart, Robert Roebling, Vadim Zeitlin,
|
||||||
\date{August 27th 1999}
|
Robin Dunn, et al}
|
||||||
|
\date{November 1st 1999}
|
||||||
}
|
}
|
||||||
\makeindex
|
\makeindex
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
@@ -118,6 +118,9 @@ CalcScrolledPosition(0, 0, \&xx, \&yy) will return 10 in yy.
|
|||||||
|
|
||||||
\helpref{CalcUnscrolledPosition}{wxscrolledwindowcalcunscrolledposition}
|
\helpref{CalcUnscrolledPosition}{wxscrolledwindowcalcunscrolledposition}
|
||||||
|
|
||||||
|
\pythonnote{The wxPython version of this methods accepts only two
|
||||||
|
parameters and returns xx and yy as a tuple of values.}
|
||||||
|
|
||||||
\membersection{wxScrolledWindow::CalcUnscrolledPosition}\label{wxscrolledwindowcalcunscrolledposition}
|
\membersection{wxScrolledWindow::CalcUnscrolledPosition}\label{wxscrolledwindowcalcunscrolledposition}
|
||||||
|
|
||||||
\constfunc{void}{CalcUnscrolledPosition}{
|
\constfunc{void}{CalcUnscrolledPosition}{
|
||||||
@@ -135,6 +138,9 @@ CalcUnscrolledPosition(0, 10, \&xx, \&yy) will return 0 in yy.
|
|||||||
|
|
||||||
\helpref{CalcScrolledPosition}{wxscrolledwindowcalcscrolledposition}
|
\helpref{CalcScrolledPosition}{wxscrolledwindowcalcscrolledposition}
|
||||||
|
|
||||||
|
\pythonnote{The wxPython version of this methods accepts only two
|
||||||
|
parameters and returns xx and yy as a tuple of values.}
|
||||||
|
|
||||||
\membersection{wxScrolledWindow::Create}\label{wxscrolledwindowcreate}
|
\membersection{wxScrolledWindow::Create}\label{wxscrolledwindowcreate}
|
||||||
|
|
||||||
\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id = -1},\rtfsp
|
\func{bool}{Create}{\param{wxWindow*}{ parent}, \param{wxWindowID }{id = -1},\rtfsp
|
||||||
@@ -187,6 +193,10 @@ scrolling in that direction.
|
|||||||
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars},\rtfsp
|
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars},\rtfsp
|
||||||
\helpref{wxScrolledWindow::GetVirtualSize}{wxscrolledwindowgetvirtualsize}
|
\helpref{wxScrolledWindow::GetVirtualSize}{wxscrolledwindowgetvirtualsize}
|
||||||
|
|
||||||
|
\pythonnote{The wxPython version of this methods accepts no
|
||||||
|
parameters and returns a tuple of values for xUnit and yUnit.}
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxScrolledWindow::GetVirtualSize}\label{wxscrolledwindowgetvirtualsize}
|
\membersection{wxScrolledWindow::GetVirtualSize}\label{wxscrolledwindowgetvirtualsize}
|
||||||
|
|
||||||
\constfunc{void}{GetVirtualSize}{\param{int* }{x}, \param{int* }{y}}
|
\constfunc{void}{GetVirtualSize}{\param{int* }{x}, \param{int* }{y}}
|
||||||
@@ -211,6 +221,9 @@ to translate these units to logical units.
|
|||||||
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars},\rtfsp
|
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars},\rtfsp
|
||||||
\helpref{wxScrolledWindow::GetScrollPixelsPerUnit}{wxscrolledwindowgetscrollpixelsperunit}
|
\helpref{wxScrolledWindow::GetScrollPixelsPerUnit}{wxscrolledwindowgetscrollpixelsperunit}
|
||||||
|
|
||||||
|
\pythonnote{The wxPython version of this methods accepts no
|
||||||
|
parameters and returns a tuple of values for x and y.}
|
||||||
|
|
||||||
\membersection{wxScrolledWindow::IsRetained}\label{wxscrolledwindowisretained}
|
\membersection{wxScrolledWindow::IsRetained}\label{wxscrolledwindowisretained}
|
||||||
|
|
||||||
\constfunc{bool}{IsRetained}{\void}
|
\constfunc{bool}{IsRetained}{\void}
|
||||||
@@ -363,3 +376,6 @@ by the number of pixels per scroll increment.
|
|||||||
|
|
||||||
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars}
|
\helpref{wxScrolledWindow::SetScrollbars}{wxscrolledwindowsetscrollbars}
|
||||||
|
|
||||||
|
\pythonnote{The wxPython version of this methods accepts no
|
||||||
|
parameters and returns a tuple of values for x and y.}
|
||||||
|
|
||||||
|
@@ -132,6 +132,21 @@ recursively applied to the parent window's event handler. If this returns TRUE,
|
|||||||
\item Finally, {\bf ProcessEvent} is called on the wxApp object.
|
\item Finally, {\bf ProcessEvent} is called on the wxApp object.
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
{\bf Pay close attention to Step 5.} People often overlook or get
|
||||||
|
confused by this powerful feature of the wxWindows event processing
|
||||||
|
system. To put it a different way, events derived either directly or
|
||||||
|
indirectly from wxCommandEvent will travel up the containment
|
||||||
|
heirarchy from child to parent until an event handler is found that
|
||||||
|
doesn't call event.Skip(). Events not derived from wxCommandEvent are
|
||||||
|
sent only to the window they occurred in and then stop.
|
||||||
|
|
||||||
|
Typically events that deal with a window as a window (size, motion,
|
||||||
|
paint, mouse, keyboard, etc.) are sent only to the window. Events
|
||||||
|
that have a higher level of meaning and/or are generated by the window
|
||||||
|
itself, (button click, menu select, tree expand, etc.) are command
|
||||||
|
events and are sent up to the parent to see if it is interested in the
|
||||||
|
event.
|
||||||
|
|
||||||
Note that your application may wish to override ProcessEvent to redirect processing of
|
Note that your application may wish to override ProcessEvent to redirect processing of
|
||||||
events. This is done in the document/view framework, for example, to allow event handlers
|
events. This is done in the document/view framework, for example, to allow event handlers
|
||||||
to be defined in the document or view. To test for command events (which will probably
|
to be defined in the document or view. To test for command events (which will probably
|
||||||
|
@@ -565,6 +565,8 @@ Returns the grandparent of a window, or NULL if there isn't one.
|
|||||||
Returns the platform-specific handle of the physical window. Cast it to an appropriate
|
Returns the platform-specific handle of the physical window. Cast it to an appropriate
|
||||||
handle, such as {\bf HWND} for Windows, {\bf Widget} for Motif or {\bf GtkWidget} for GTK.
|
handle, such as {\bf HWND} for Windows, {\bf Widget} for Motif or {\bf GtkWidget} for GTK.
|
||||||
|
|
||||||
|
\pythonnote{This method will return an integer in wxPython.}
|
||||||
|
|
||||||
\membersection{wxWindow::GetId}\label{wxwindowgetid}
|
\membersection{wxWindow::GetId}\label{wxwindowgetid}
|
||||||
|
|
||||||
\constfunc{int}{GetId}{\void}
|
\constfunc{int}{GetId}{\void}
|
||||||
|
@@ -367,6 +367,8 @@ as possible to the C++ spec over time.
|
|||||||
\item wxBMPHandler
|
\item wxBMPHandler
|
||||||
\item \helpref{wxBoxSizer}{wxboxsizer}
|
\item \helpref{wxBoxSizer}{wxboxsizer}
|
||||||
\item \helpref{wxBrush}{wxbrush}
|
\item \helpref{wxBrush}{wxbrush}
|
||||||
|
\item \helpref{wxBusyInfo}{wxbusyinfo}
|
||||||
|
\item \helpref{wxBusyCursor}{wxbusycursor}
|
||||||
\item \helpref{wxButton}{wxbutton}
|
\item \helpref{wxButton}{wxbutton}
|
||||||
\item \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent}
|
\item \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent}
|
||||||
\item wxCaret
|
\item wxCaret
|
||||||
@@ -404,10 +406,13 @@ as possible to the C++ spec over time.
|
|||||||
\item \helpref{wxGrid}{wxgrid}
|
\item \helpref{wxGrid}{wxgrid}
|
||||||
\item \helpref{wxHtmlCell}{wxhtmlcell}
|
\item \helpref{wxHtmlCell}{wxhtmlcell}
|
||||||
\item \helpref{wxHtmlContainerCell}{wxhtmlcontainercell}
|
\item \helpref{wxHtmlContainerCell}{wxhtmlcontainercell}
|
||||||
|
\item \helpref{wxHtmlDCRenderer}{wxhtmldcrenderer}
|
||||||
|
\item \helpref{wxHtmlEasyPrinting}{wxhtmleasyprinting}
|
||||||
\item \helpref{wxHtmlParser}{wxhtmlparser}
|
\item \helpref{wxHtmlParser}{wxhtmlparser}
|
||||||
\item \helpref{wxHtmlTagHandler}{wxhtmltaghandler}
|
\item \helpref{wxHtmlTagHandler}{wxhtmltaghandler}
|
||||||
\item \helpref{wxHtmlTag}{wxhtmltag}
|
\item \helpref{wxHtmlTag}{wxhtmltag}
|
||||||
\item \helpref{wxHtmlWinParser}{wxhtmlwinparser}
|
\item \helpref{wxHtmlWinParser}{wxhtmlwinparser}
|
||||||
|
\item \helpref{wxHtmlPrintout}{wxhtmlprintout}
|
||||||
\item \helpref{wxHtmlWinTagHandler}{wxhtmlwintaghandler}
|
\item \helpref{wxHtmlWinTagHandler}{wxhtmlwintaghandler}
|
||||||
\item \helpref{wxHtmlWindow}{wxhtmlwindow}
|
\item \helpref{wxHtmlWindow}{wxhtmlwindow}
|
||||||
\item wxIconizeEvent
|
\item wxIconizeEvent
|
||||||
|
Reference in New Issue
Block a user