All the Window and GDI (pen, bitmap, etc.) classes and also many
toplevel functions will now check that a wx.App object has already been created and will raise a wx.PyNoAppError exception if not. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -515,6 +515,8 @@ specified by the TypeInfo.
|
|||||||
", "");
|
", "");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxActiveXWindow);
|
||||||
|
|
||||||
class wxActiveXWindow : public wxWindow
|
class wxActiveXWindow : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -1053,6 +1055,8 @@ public:
|
|||||||
%feature("noautodoc") wxIEHtmlWindowBase::GetText;
|
%feature("noautodoc") wxIEHtmlWindowBase::GetText;
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxIEHtmlWindowBase);
|
||||||
|
|
||||||
class wxIEHtmlWindowBase : public wxActiveXWindow {
|
class wxIEHtmlWindowBase : public wxActiveXWindow {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@@ -139,6 +139,8 @@ public:
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
MustHaveApp(wxDynamicSashWindow);
|
||||||
|
|
||||||
class wxDynamicSashWindow : public wxWindow {
|
class wxDynamicSashWindow : public wxWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxDynamicSashWindow "self._setOORInfo(self)"
|
%pythonAppend wxDynamicSashWindow "self._setOORInfo(self)"
|
||||||
@@ -177,6 +179,7 @@ enum {
|
|||||||
|
|
||||||
// This class provides a composite control that lets the
|
// This class provides a composite control that lets the
|
||||||
// user easily enter list of strings
|
// user easily enter list of strings
|
||||||
|
MustHaveApp(wxEditableListBox);
|
||||||
class wxEditableListBox : public wxPanel
|
class wxEditableListBox : public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -227,6 +230,8 @@ public:
|
|||||||
typedef wxTreeCtrl wxPyTreeCtrl;
|
typedef wxTreeCtrl wxPyTreeCtrl;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
MustHaveApp(wxRemotelyScrolledTreeCtrl);
|
||||||
|
|
||||||
class wxRemotelyScrolledTreeCtrl: public wxPyTreeCtrl
|
class wxRemotelyScrolledTreeCtrl: public wxPyTreeCtrl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -298,6 +303,8 @@ public:
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyTreeCompanionWindow);
|
||||||
|
|
||||||
%name(TreeCompanionWindow) class wxPyTreeCompanionWindow: public wxWindow
|
%name(TreeCompanionWindow) class wxPyTreeCompanionWindow: public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -323,6 +330,8 @@ public:
|
|||||||
* than the usual one.
|
* than the usual one.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
MustHaveApp(wxThinSplitterWindow);
|
||||||
|
|
||||||
class wxThinSplitterWindow: public wxSplitterWindow
|
class wxThinSplitterWindow: public wxSplitterWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -346,6 +355,8 @@ public:
|
|||||||
* scroll appropriately.
|
* scroll appropriately.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
MustHaveApp(wxSplitterScrolledWindow);
|
||||||
|
|
||||||
class wxSplitterScrolledWindow: public wxScrolledWindow
|
class wxSplitterScrolledWindow: public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -375,6 +386,8 @@ enum wxLEDValueAlign
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxLEDNumberCtrl);
|
||||||
|
|
||||||
class wxLEDNumberCtrl : public wxControl
|
class wxLEDNumberCtrl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -501,6 +514,8 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyTreeListCtrl, wxTreeListCtrl)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyTreeListCtrl);
|
||||||
|
|
||||||
%name(TreeListCtrl) class wxPyTreeListCtrl : public wxControl
|
%name(TreeListCtrl) class wxPyTreeListCtrl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -43,6 +43,8 @@ class wxPalette;
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxGLContext);
|
||||||
|
|
||||||
class wxGLContext : public wxObject {
|
class wxGLContext : public wxObject {
|
||||||
public:
|
public:
|
||||||
#ifndef __WXMAC__
|
#ifndef __WXMAC__
|
||||||
@@ -118,6 +120,8 @@ enum {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGLCanvas);
|
||||||
|
|
||||||
class wxGLCanvas : public wxWindow {
|
class wxGLCanvas : public wxWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxGLCanvas "self._setOORInfo(self)"
|
%pythonAppend wxGLCanvas "self._setOORInfo(self)"
|
||||||
|
@@ -78,6 +78,8 @@ enum wxIEHtmlRefreshLevel {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxIEHtmlWin);
|
||||||
|
|
||||||
class wxIEHtmlWin : public wxWindow /* wxActiveX */
|
class wxIEHtmlWin : public wxWindow /* wxActiveX */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -99,6 +99,8 @@ public:
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyShapeCanvas);
|
||||||
|
|
||||||
class wxPyShapeCanvas : public wxScrolledWindow {
|
class wxPyShapeCanvas : public wxScrolledWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPyShapeCanvas "self._setOORandCallbackInfo(PyShapeCanvas)"
|
%pythonAppend wxPyShapeCanvas "self._setOORandCallbackInfo(PyShapeCanvas)"
|
||||||
|
@@ -45,7 +45,6 @@ class wxXmlResource : public wxObject
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
%pythonAppend wxXmlResource(const wxString& filemask, int flags) "self.InitAllHandlers()"
|
%pythonAppend wxXmlResource(const wxString& filemask, int flags) "self.InitAllHandlers()"
|
||||||
|
|
||||||
%pythonAppend wxXmlResource(int flags) "val.InitAllHandlers()"
|
%pythonAppend wxXmlResource(int flags) "val.InitAllHandlers()"
|
||||||
|
|
||||||
// Ctors.
|
// Ctors.
|
||||||
|
@@ -95,6 +95,10 @@ MigrationGuide_ file for details.
|
|||||||
EVT_STC_POSCHANGED has been removed as it has been deprecated in
|
EVT_STC_POSCHANGED has been removed as it has been deprecated in
|
||||||
Scintilla for several releases now.
|
Scintilla for several releases now.
|
||||||
|
|
||||||
|
All the Window and GDI (pen, bitmap, etc.) classes and also many
|
||||||
|
toplevel functions will now check that a wx.App object has already
|
||||||
|
been created and will raise a wx.PyNoAppError exception if not.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -52,6 +52,11 @@ Also, you will probably not be able to do any kind of GUI or bitmap
|
|||||||
operation unless you first have created an app object, (even on
|
operation unless you first have created an app object, (even on
|
||||||
Windows where most anything was possible before.)
|
Windows where most anything was possible before.)
|
||||||
|
|
||||||
|
**[Changed in 2.5.2.0]** All the Window and GDI (pen, bitmap, etc.)
|
||||||
|
classes and also many toplevel functions will now check that a wx.App
|
||||||
|
object has already been created and will raise a wx.PyNoAppError
|
||||||
|
exception if not.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SWIG 1.3
|
SWIG 1.3
|
||||||
|
@@ -133,6 +133,8 @@ inline wxPyCoreAPI* wxPyGetCoreAPIPtr()
|
|||||||
#define wxPyInstance_Check(a) (wxPyGetCoreAPIPtr()->p_wxPyInstance_Check(a))
|
#define wxPyInstance_Check(a) (wxPyGetCoreAPIPtr()->p_wxPyInstance_Check(a))
|
||||||
#define wxPySwigInstance_Check(a) (wxPyGetCoreAPIPtr()->p_wxPySwigInstance_Check(a))
|
#define wxPySwigInstance_Check(a) (wxPyGetCoreAPIPtr()->p_wxPySwigInstance_Check(a))
|
||||||
|
|
||||||
|
#define wxPyCheckForApp() (wxPyGetCoreAPIPtr()->p_wxPyCheckForApp())
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
#endif
|
#endif
|
||||||
|
@@ -187,6 +187,8 @@ bool wxPoint2D_helper(PyObject* source, wxPoint2D** obj);
|
|||||||
bool wxPySimple_typecheck(PyObject* source, const wxChar* classname, int seqLen);
|
bool wxPySimple_typecheck(PyObject* source, const wxChar* classname, int seqLen);
|
||||||
bool wxColour_typecheck(PyObject* source);
|
bool wxColour_typecheck(PyObject* source);
|
||||||
|
|
||||||
|
bool wxPyCheckForApp();
|
||||||
|
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
bool wxPyTwoIntItem_helper(PyObject* source, T** obj, const wxChar* name)
|
bool wxPyTwoIntItem_helper(PyObject* source, T** obj, const wxChar* name)
|
||||||
@@ -429,6 +431,8 @@ struct wxPyCoreAPI {
|
|||||||
bool (*p_wxPyInstance_Check)(PyObject* obj);
|
bool (*p_wxPyInstance_Check)(PyObject* obj);
|
||||||
bool (*p_wxPySwigInstance_Check)(PyObject* obj);
|
bool (*p_wxPySwigInstance_Check)(PyObject* obj);
|
||||||
|
|
||||||
|
bool (*p_wxPyCheckForApp)();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef wxPyUSE_EXPORTED_API
|
#ifdef wxPyUSE_EXPORTED_API
|
||||||
|
@@ -186,6 +186,10 @@ identical bitmap for different client values!
|
|||||||
of the categories above)
|
of the categories above)
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxPyArtProvider);
|
||||||
|
MustHaveApp(wxPyArtProvider::GetBitmap);
|
||||||
|
MustHaveApp(wxPyArtProvider::GetIcon);
|
||||||
|
|
||||||
%name(ArtProvider) class wxPyArtProvider /*: public wxObject*/
|
%name(ArtProvider) class wxPyArtProvider /*: public wxObject*/
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -65,6 +65,8 @@ converted to a wx.Bitmap, so any image file format supported by
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxBitmap);
|
||||||
|
|
||||||
class wxBitmap : public wxGDIObject
|
class wxBitmap : public wxGDIObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -306,6 +308,8 @@ A mask may be associated with a `wx.Bitmap`. It is used in
|
|||||||
`wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
|
`wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
|
||||||
mask.", "");
|
mask.", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxMask);
|
||||||
|
|
||||||
class wxMask : public wxObject {
|
class wxMask : public wxObject {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@@ -33,6 +33,8 @@ a `wx.DC`. It has a colour and a style.", "
|
|||||||
:see: `wx.BrushList`, `wx.DC`, `wx.DC.SetBrush`
|
:see: `wx.BrushList`, `wx.DC`, `wx.DC.SetBrush`
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxBrush);
|
||||||
|
|
||||||
class wxBrush : public wxGDIObject {
|
class wxBrush : public wxGDIObject {
|
||||||
public:
|
public:
|
||||||
DocCtorStr(
|
DocCtorStr(
|
||||||
|
@@ -58,6 +58,8 @@ Events
|
|||||||
:see: `wx.BitmapButton`
|
:see: `wx.BitmapButton`
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxButton);
|
||||||
|
|
||||||
class wxButton : public wxControl
|
class wxButton : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -143,6 +145,8 @@ Events
|
|||||||
:see: `wx.Button`, `wx.Bitmap`
|
:see: `wx.Button`, `wx.Bitmap`
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxBitmapButton);
|
||||||
|
|
||||||
class wxBitmapButton : public wxButton
|
class wxBitmapButton : public wxButton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -78,6 +78,8 @@ Events
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxCheckBox);
|
||||||
|
|
||||||
class wxCheckBox : public wxControl
|
class wxCheckBox : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -34,6 +34,8 @@ Events
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxChoice);
|
||||||
|
|
||||||
class wxChoice : public wxControlWithItems
|
class wxChoice : public wxControlWithItems
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -80,6 +80,8 @@ integer between 0 and 15. The default custom colours are all white.", "");
|
|||||||
DocStr(wxColourDialog,
|
DocStr(wxColourDialog,
|
||||||
"This class represents the colour chooser dialog.", "");
|
"This class represents the colour chooser dialog.", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxColourDialog);
|
||||||
|
|
||||||
class wxColourDialog : public wxDialog {
|
class wxColourDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxColourDialog "self._setOORInfo(self)"
|
%pythonAppend wxColourDialog "self._setOORInfo(self)"
|
||||||
@@ -113,6 +115,8 @@ Window Styles
|
|||||||
==================== ==========================================
|
==================== ==========================================
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxDirDialog);
|
||||||
|
|
||||||
class wxDirDialog : public wxDialog {
|
class wxDirDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxDirDialog "self._setOORInfo(self)"
|
%pythonAppend wxDirDialog "self._setOORInfo(self)"
|
||||||
@@ -198,6 +202,8 @@ Window Styles
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxFileDialog);
|
||||||
|
|
||||||
class wxFileDialog : public wxDialog {
|
class wxFileDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxFileDialog "self._setOORInfo(self)"
|
%pythonAppend wxFileDialog "self._setOORInfo(self)"
|
||||||
@@ -334,6 +340,8 @@ enum { wxCHOICEDLG_STYLE };
|
|||||||
DocStr(wxMultiChoiceDialog,
|
DocStr(wxMultiChoiceDialog,
|
||||||
"A simple dialog with a multi selection listbox.", "");
|
"A simple dialog with a multi selection listbox.", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxMultiChoiceDialog);
|
||||||
|
|
||||||
class wxMultiChoiceDialog : public wxDialog
|
class wxMultiChoiceDialog : public wxDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -374,6 +382,8 @@ integers.", "");
|
|||||||
DocStr(wxSingleChoiceDialog,
|
DocStr(wxSingleChoiceDialog,
|
||||||
"A simple dialog with a single selection listbox.", "");
|
"A simple dialog with a single selection listbox.", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxSingleChoiceDialog);
|
||||||
|
|
||||||
class wxSingleChoiceDialog : public wxDialog {
|
class wxSingleChoiceDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxSingleChoiceDialog "self._setOORInfo(self)"
|
%pythonAppend wxSingleChoiceDialog "self._setOORInfo(self)"
|
||||||
@@ -418,6 +428,8 @@ public:
|
|||||||
DocStr(wxTextEntryDialog,
|
DocStr(wxTextEntryDialog,
|
||||||
"A dialog with text control, [ok] and [cancel] buttons", "");
|
"A dialog with text control, [ok] and [cancel] buttons", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxTextEntryDialog);
|
||||||
|
|
||||||
class wxTextEntryDialog : public wxDialog {
|
class wxTextEntryDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxTextEntryDialog "self._setOORInfo(self)"
|
%pythonAppend wxTextEntryDialog "self._setOORInfo(self)"
|
||||||
@@ -528,6 +540,8 @@ DocStr(wxFontDialog,
|
|||||||
:see: `wx.FontData`
|
:see: `wx.FontData`
|
||||||
", "");
|
", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxFontDialog);
|
||||||
|
|
||||||
class wxFontDialog : public wxDialog {
|
class wxFontDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxFontDialog "self._setOORInfo(self)"
|
%pythonAppend wxFontDialog "self._setOORInfo(self)"
|
||||||
@@ -575,6 +589,8 @@ Window Styles
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMessageDialog);
|
||||||
|
|
||||||
class wxMessageDialog : public wxDialog {
|
class wxMessageDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxMessageDialog "self._setOORInfo(self)"
|
%pythonAppend wxMessageDialog "self._setOORInfo(self)"
|
||||||
@@ -625,6 +641,8 @@ Window Styles
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxProgressDialog);
|
||||||
|
|
||||||
class wxProgressDialog : public wxFrame {
|
class wxProgressDialog : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxProgressDialog "self._setOORInfo(self)"
|
%pythonAppend wxProgressDialog "self._setOORInfo(self)"
|
||||||
@@ -841,6 +859,8 @@ Window Styles
|
|||||||
===================== =========================================
|
===================== =========================================
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxFindReplaceDialog);
|
||||||
|
|
||||||
class wxFindReplaceDialog : public wxDialog {
|
class wxFindReplaceDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxFindReplaceDialog "self._setOORInfo(self)"
|
%pythonAppend wxFindReplaceDialog "self._setOORInfo(self)"
|
||||||
|
@@ -56,6 +56,8 @@ Events
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxComboBox);
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
class wxComboBox : public wxChoice
|
class wxComboBox : public wxChoice
|
||||||
#else
|
#else
|
||||||
|
@@ -27,6 +27,8 @@ DocStr(wxControl,
|
|||||||
A control is generally a small window which processes user input
|
A control is generally a small window which processes user input
|
||||||
and/or displays one or more item of data.", "");
|
and/or displays one or more item of data.", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxControl);
|
||||||
|
|
||||||
class wxControl : public wxWindow
|
class wxControl : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -206,7 +206,9 @@ static wxPyCoreAPI API = {
|
|||||||
wxPyCBInputStream_create,
|
wxPyCBInputStream_create,
|
||||||
|
|
||||||
wxPyInstance_Check,
|
wxPyInstance_Check,
|
||||||
wxPySwigInstance_Check
|
wxPySwigInstance_Check,
|
||||||
|
|
||||||
|
wxPyCheckForApp
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -133,6 +133,8 @@ There are a couple of ways to invoke this behaviour implicitly:
|
|||||||
:see: `wx.ContextHelpButton`
|
:see: `wx.ContextHelpButton`
|
||||||
", "");
|
", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxContextHelp);
|
||||||
|
|
||||||
class wxContextHelp : public wxObject {
|
class wxContextHelp : public wxObject {
|
||||||
public:
|
public:
|
||||||
DocCtorStr(
|
DocCtorStr(
|
||||||
@@ -178,6 +180,8 @@ similar buttons.
|
|||||||
:see: `wx.ContextHelp`, `wx.ContextHelpButton`
|
:see: `wx.ContextHelp`, `wx.ContextHelpButton`
|
||||||
", "");
|
", "");
|
||||||
|
|
||||||
|
MustHaveApp(wxContextHelpButton);
|
||||||
|
|
||||||
class wxContextHelpButton : public wxBitmapButton {
|
class wxContextHelpButton : public wxBitmapButton {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxContextHelpButton "self._setOORInfo(self)"
|
%pythonAppend wxContextHelpButton "self._setOORInfo(self)"
|
||||||
|
@@ -61,6 +61,8 @@ Stock Cursor IDs
|
|||||||
|
|
||||||
");
|
");
|
||||||
|
|
||||||
|
MustHaveApp(wxCursor);
|
||||||
|
|
||||||
class wxCursor : public wxGDIObject
|
class wxCursor : public wxGDIObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -626,6 +626,8 @@ static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxMemoryDC);
|
||||||
|
|
||||||
class wxMemoryDC : public wxDC {
|
class wxMemoryDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxMemoryDC();
|
wxMemoryDC();
|
||||||
@@ -643,6 +645,8 @@ public:
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxBufferedDC);
|
||||||
|
|
||||||
class wxBufferedDC : public wxMemoryDC
|
class wxBufferedDC : public wxMemoryDC
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -680,6 +684,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxBufferedPaintDC);
|
||||||
|
|
||||||
// Creates a double buffered wxPaintDC, optionally allowing the
|
// Creates a double buffered wxPaintDC, optionally allowing the
|
||||||
// user to specify their own buffer to use.
|
// user to specify their own buffer to use.
|
||||||
@@ -696,6 +701,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxScreenDC);
|
||||||
|
|
||||||
class wxScreenDC : public wxDC {
|
class wxScreenDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxScreenDC();
|
wxScreenDC();
|
||||||
@@ -708,6 +715,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxClientDC);
|
||||||
|
|
||||||
class wxClientDC : public wxDC {
|
class wxClientDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxClientDC(wxWindow* win);
|
wxClientDC(wxWindow* win);
|
||||||
@@ -716,6 +725,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxPaintDC);
|
||||||
|
|
||||||
class wxPaintDC : public wxDC {
|
class wxPaintDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxPaintDC(wxWindow* win);
|
wxPaintDC(wxWindow* win);
|
||||||
@@ -724,6 +735,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxWindowDC);
|
||||||
|
|
||||||
class wxWindowDC : public wxDC {
|
class wxWindowDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxWindowDC(wxWindow* win);
|
wxWindowDC(wxWindow* win);
|
||||||
@@ -732,6 +745,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxMirrorDC);
|
||||||
|
|
||||||
class wxMirrorDC : public wxDC
|
class wxMirrorDC : public wxDC
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -751,6 +766,8 @@ public:
|
|||||||
#include <wx/dcps.h>
|
#include <wx/dcps.h>
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
MustHaveApp(wxPostScriptDC);
|
||||||
|
|
||||||
class wxPostScriptDC : public wxDC {
|
class wxPostScriptDC : public wxDC {
|
||||||
public:
|
public:
|
||||||
wxPostScriptDC(const wxPrintData& printData);
|
wxPostScriptDC(const wxPrintData& printData);
|
||||||
@@ -769,6 +786,10 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMetaFile);
|
||||||
|
MustHaveApp(wxMetaFileDC);
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||||
|
|
||||||
%{
|
%{
|
||||||
@@ -843,6 +864,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxPrinterDC);
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||||
|
|
||||||
class wxPrinterDC : public wxDC {
|
class wxPrinterDC : public wxDC {
|
||||||
|
@@ -11,17 +11,40 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
// Globally turn on the autodoc feature
|
// Globally turn on the autodoc feature
|
||||||
|
|
||||||
%feature("autodoc", "1"); // 0 == no param types, 1 == show param types
|
%feature("autodoc", "1"); // 0 == no param types, 1 == show param types
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
// Tell SWIG to wrap all the wrappers with our thread protection by default
|
||||||
|
|
||||||
|
%exception {
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
$action
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// This one can be used to add a check for an existing wxApp before the real
|
||||||
|
// work is done. An exception is raised if there isn't one.
|
||||||
|
%define MustHaveApp(name)
|
||||||
|
%exception name {
|
||||||
|
if (!wxPyCheckForApp()) SWIG_fail;
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
$action
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
%enddef
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// some type definitions to simplify things for SWIG
|
// some type definitions to simplify things for SWIG
|
||||||
|
|
||||||
// typedef int wxWindowID;
|
|
||||||
// typedef int wxCoord;
|
|
||||||
// typedef int wxInt32;
|
|
||||||
// typedef unsigned int wxUint32;
|
|
||||||
typedef int wxEventType;
|
typedef int wxEventType;
|
||||||
typedef unsigned int size_t;
|
typedef unsigned int size_t;
|
||||||
typedef unsigned int time_t;
|
typedef unsigned int time_t;
|
||||||
@@ -31,10 +54,6 @@ typedef unsigned char byte;
|
|||||||
#define wxCoord int
|
#define wxCoord int
|
||||||
#define wxInt32 int
|
#define wxInt32 int
|
||||||
#define wxUint32 unsigned int
|
#define wxUint32 unsigned int
|
||||||
//#define wxEventType int
|
|
||||||
//#define size_t unsigned int
|
|
||||||
//#define time_t unsigned int
|
|
||||||
//#define byte unsigned char
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
@@ -54,6 +54,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGenericDirCtrl);
|
||||||
|
|
||||||
class wxGenericDirCtrl: public wxControl
|
class wxGenericDirCtrl: public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -136,6 +138,8 @@ leaf), done is set to True.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxDirFilterListCtrl);
|
||||||
|
|
||||||
class wxDirFilterListCtrl: public wxChoice
|
class wxDirFilterListCtrl: public wxChoice
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGenericDragImage);
|
||||||
|
|
||||||
%name (DragImage) class wxGenericDragImage : public wxObject
|
%name (DragImage) class wxGenericDragImage : public wxObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -430,6 +430,10 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxFont);
|
||||||
|
MustHaveApp(wxFont::GetDefaultEncoding);
|
||||||
|
MustHaveApp(wxFont::SetDefaultEncoding);
|
||||||
|
|
||||||
class wxFont : public wxGDIObject {
|
class wxFont : public wxGDIObject {
|
||||||
public:
|
public:
|
||||||
%pythonPrepend wxFont "if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']"
|
%pythonPrepend wxFont "if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']"
|
||||||
@@ -533,6 +537,8 @@ IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEnc
|
|||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
MustHaveApp(wxPyFontEnumerator);
|
||||||
|
|
||||||
%name(FontEnumerator) class wxPyFontEnumerator {
|
%name(FontEnumerator) class wxPyFontEnumerator {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPyFontEnumerator "self._setCallbackInfo(self, FontEnumerator, 0)"
|
%pythonAppend wxPyFontEnumerator "self._setCallbackInfo(self, FontEnumerator, 0)"
|
||||||
|
@@ -27,11 +27,15 @@ long wxNewId();
|
|||||||
void wxRegisterId(long id);
|
void wxRegisterId(long id);
|
||||||
long wxGetCurrentId();
|
long wxGetCurrentId();
|
||||||
|
|
||||||
|
MustHaveApp(wxBell);
|
||||||
void wxBell();
|
void wxBell();
|
||||||
|
|
||||||
|
MustHaveApp(wxEndBusyCursor);
|
||||||
void wxEndBusyCursor();
|
void wxEndBusyCursor();
|
||||||
|
|
||||||
long wxGetElapsedTime(bool resetTimer = True);
|
long wxGetElapsedTime(bool resetTimer = True);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetMousePosition);
|
||||||
DocDeclA(
|
DocDeclA(
|
||||||
void, wxGetMousePosition(int* OUTPUT, int* OUTPUT),
|
void, wxGetMousePosition(int* OUTPUT, int* OUTPUT),
|
||||||
"GetMousePosition() -> (x,y)");
|
"GetMousePosition() -> (x,y)");
|
||||||
@@ -63,6 +67,7 @@ enum wxShutdownFlags
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Shutdown or reboot the PC
|
// Shutdown or reboot the PC
|
||||||
|
MustHaveApp(wxShutdown);
|
||||||
bool wxShutdown(wxShutdownFlags wFlags);
|
bool wxShutdown(wxShutdownFlags wFlags);
|
||||||
|
|
||||||
|
|
||||||
@@ -88,6 +93,7 @@ void wxTrap();
|
|||||||
|
|
||||||
// Dialog Functions
|
// Dialog Functions
|
||||||
|
|
||||||
|
MustHaveApp(wxFileSelector);
|
||||||
wxString wxFileSelector(const wxString& message = wxPyFileSelectorPromptStr,
|
wxString wxFileSelector(const wxString& message = wxPyFileSelectorPromptStr,
|
||||||
const wxString& default_path = wxPyEmptyString,
|
const wxString& default_path = wxPyEmptyString,
|
||||||
const wxString& default_filename = wxPyEmptyString,
|
const wxString& default_filename = wxPyEmptyString,
|
||||||
@@ -101,24 +107,28 @@ wxString wxFileSelector(const wxString& message = wxPyFileSelectorPromptStr,
|
|||||||
|
|
||||||
|
|
||||||
// Ask for filename to load
|
// Ask for filename to load
|
||||||
|
MustHaveApp(wxLoadFileSelector);
|
||||||
wxString wxLoadFileSelector(const wxString& what,
|
wxString wxLoadFileSelector(const wxString& what,
|
||||||
const wxString& extension,
|
const wxString& extension,
|
||||||
const wxString& default_name = wxPyEmptyString,
|
const wxString& default_name = wxPyEmptyString,
|
||||||
wxWindow *parent = NULL);
|
wxWindow *parent = NULL);
|
||||||
|
|
||||||
// Ask for filename to save
|
// Ask for filename to save
|
||||||
|
MustHaveApp(wxSaveFileSelector);
|
||||||
wxString wxSaveFileSelector(const wxString& what,
|
wxString wxSaveFileSelector(const wxString& what,
|
||||||
const wxString& extension,
|
const wxString& extension,
|
||||||
const wxString& default_name = wxPyEmptyString,
|
const wxString& default_name = wxPyEmptyString,
|
||||||
wxWindow *parent = NULL);
|
wxWindow *parent = NULL);
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxDirSelector);
|
||||||
wxString wxDirSelector(const wxString& message = wxPyDirSelectorPromptStr,
|
wxString wxDirSelector(const wxString& message = wxPyDirSelectorPromptStr,
|
||||||
const wxString& defaultPath = wxPyEmptyString,
|
const wxString& defaultPath = wxPyEmptyString,
|
||||||
long style = wxDD_DEFAULT_STYLE,
|
long style = wxDD_DEFAULT_STYLE,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
wxWindow *parent = NULL);
|
wxWindow *parent = NULL);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetTextFromUser);
|
||||||
wxString wxGetTextFromUser(const wxString& message,
|
wxString wxGetTextFromUser(const wxString& message,
|
||||||
const wxString& caption = wxPyEmptyString,
|
const wxString& caption = wxPyEmptyString,
|
||||||
const wxString& default_value = wxPyEmptyString,
|
const wxString& default_value = wxPyEmptyString,
|
||||||
@@ -126,6 +136,7 @@ wxString wxGetTextFromUser(const wxString& message,
|
|||||||
int x = -1, int y = -1,
|
int x = -1, int y = -1,
|
||||||
bool centre = True);
|
bool centre = True);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetPasswordFromUser);
|
||||||
wxString wxGetPasswordFromUser(const wxString& message,
|
wxString wxGetPasswordFromUser(const wxString& message,
|
||||||
const wxString& caption = wxPyEmptyString,
|
const wxString& caption = wxPyEmptyString,
|
||||||
const wxString& default_value = wxPyEmptyString,
|
const wxString& default_value = wxPyEmptyString,
|
||||||
@@ -140,6 +151,7 @@ wxString wxGetPasswordFromUser(const wxString& message,
|
|||||||
// bool centre = True, int width=150, int height=200);
|
// bool centre = True, int width=150, int height=200);
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGetSingleChoice);
|
||||||
wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
|
wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
|
||||||
int choices, wxString* choices_array,
|
int choices, wxString* choices_array,
|
||||||
wxWindow *parent = NULL,
|
wxWindow *parent = NULL,
|
||||||
@@ -147,6 +159,7 @@ wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
|
|||||||
bool centre = True,
|
bool centre = True,
|
||||||
int width=150, int height=200);
|
int width=150, int height=200);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetSingleChoiceIndex);
|
||||||
int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
|
int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
|
||||||
int choices, wxString* choices_array,
|
int choices, wxString* choices_array,
|
||||||
wxWindow *parent = NULL,
|
wxWindow *parent = NULL,
|
||||||
@@ -155,12 +168,14 @@ int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
|
|||||||
int width=150, int height=200);
|
int width=150, int height=200);
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMessageBox);
|
||||||
int wxMessageBox(const wxString& message,
|
int wxMessageBox(const wxString& message,
|
||||||
const wxString& caption = wxPyEmptyString,
|
const wxString& caption = wxPyEmptyString,
|
||||||
int style = wxOK | wxCENTRE,
|
int style = wxOK | wxCENTRE,
|
||||||
wxWindow *parent = NULL,
|
wxWindow *parent = NULL,
|
||||||
int x = -1, int y = -1);
|
int x = -1, int y = -1);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetNumberFromUser);
|
||||||
long wxGetNumberFromUser(const wxString& message,
|
long wxGetNumberFromUser(const wxString& message,
|
||||||
const wxString& prompt,
|
const wxString& prompt,
|
||||||
const wxString& caption,
|
const wxString& caption,
|
||||||
@@ -171,38 +186,60 @@ long wxGetNumberFromUser(const wxString& message,
|
|||||||
|
|
||||||
// GDI Functions
|
// GDI Functions
|
||||||
|
|
||||||
|
MustHaveApp(wxColourDisplay);
|
||||||
bool wxColourDisplay();
|
bool wxColourDisplay();
|
||||||
|
|
||||||
|
MustHaveApp(wxDisplayDepth);
|
||||||
int wxDisplayDepth();
|
int wxDisplayDepth();
|
||||||
|
|
||||||
|
MustHaveApp(wxGetDisplayDepth);
|
||||||
int wxGetDisplayDepth();
|
int wxGetDisplayDepth();
|
||||||
|
|
||||||
|
MustHaveApp(wxDisplaySize);
|
||||||
DocDeclA(
|
DocDeclA(
|
||||||
void, wxDisplaySize(int* OUTPUT, int* OUTPUT),
|
void, wxDisplaySize(int* OUTPUT, int* OUTPUT),
|
||||||
"DisplaySize() -> (width, height)");
|
"DisplaySize() -> (width, height)");
|
||||||
|
|
||||||
|
MustHaveApp(wxGetDisplaySize);
|
||||||
wxSize wxGetDisplaySize();
|
wxSize wxGetDisplaySize();
|
||||||
|
|
||||||
|
MustHaveApp(wxDisplaySizeMM);
|
||||||
DocDeclA(
|
DocDeclA(
|
||||||
void, wxDisplaySizeMM(int* OUTPUT, int* OUTPUT),
|
void, wxDisplaySizeMM(int* OUTPUT, int* OUTPUT),
|
||||||
"DisplaySizeMM() -> (width, height)");
|
"DisplaySizeMM() -> (width, height)");
|
||||||
|
|
||||||
|
MustHaveApp(wxGetDisplaySizeMM);
|
||||||
wxSize wxGetDisplaySizeMM();
|
wxSize wxGetDisplaySizeMM();
|
||||||
|
|
||||||
|
MustHaveApp(wxClientDisplayRect);
|
||||||
DocDeclA(
|
DocDeclA(
|
||||||
void, wxClientDisplayRect(int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT),
|
void, wxClientDisplayRect(int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT),
|
||||||
"ClientDisplayRect() -> (x, y, width, height)");
|
"ClientDisplayRect() -> (x, y, width, height)");
|
||||||
|
|
||||||
|
MustHaveApp(wxGetClientDisplayRect);
|
||||||
wxRect wxGetClientDisplayRect();
|
wxRect wxGetClientDisplayRect();
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxSetCursor);
|
||||||
void wxSetCursor(wxCursor& cursor);
|
void wxSetCursor(wxCursor& cursor);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Miscellaneous functions
|
// Miscellaneous functions
|
||||||
|
|
||||||
|
MustHaveApp(wxBeginBusyCursor);
|
||||||
void wxBeginBusyCursor(wxCursor *cursor = wxHOURGLASS_CURSOR);
|
void wxBeginBusyCursor(wxCursor *cursor = wxHOURGLASS_CURSOR);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetActiveWindow);
|
||||||
wxWindow * wxGetActiveWindow();
|
wxWindow * wxGetActiveWindow();
|
||||||
|
|
||||||
|
MustHaveApp(wxGenericFindWindowAtPoint);
|
||||||
wxWindow* wxGenericFindWindowAtPoint(const wxPoint& pt);
|
wxWindow* wxGenericFindWindowAtPoint(const wxPoint& pt);
|
||||||
|
|
||||||
|
MustHaveApp(wxFindWindowAtPoint);
|
||||||
wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
|
wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
|
||||||
|
|
||||||
|
MustHaveApp(wxGetTopLevelParent);
|
||||||
wxWindow* wxGetTopLevelParent(wxWindow *win);
|
wxWindow* wxGetTopLevelParent(wxWindow *win);
|
||||||
|
|
||||||
//bool wxSpawnBrowser(wxWindow *parent, wxString href);
|
//bool wxSpawnBrowser(wxWindow *parent, wxString href);
|
||||||
@@ -210,6 +247,7 @@ wxWindow* wxGetTopLevelParent(wxWindow *win);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGetKeyState);
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
bool , wxGetKeyState(wxKeyCode key),
|
bool , wxGetKeyState(wxKeyCode key),
|
||||||
"Get the state of a key (true if pressed or toggled on, false if not.)
|
"Get the state of a key (true if pressed or toggled on, false if not.)
|
||||||
@@ -221,6 +259,8 @@ toggle keys. On some platforms those may be the only keys that work.
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxWakeUpMainThread);
|
||||||
|
|
||||||
#if defined(__WXMSW__) || defined(__WXMAC__)
|
#if defined(__WXMSW__) || defined(__WXMAC__)
|
||||||
void wxWakeUpMainThread();
|
void wxWakeUpMainThread();
|
||||||
#else
|
#else
|
||||||
@@ -229,10 +269,15 @@ void wxWakeUpMainThread();
|
|||||||
%}
|
%}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMutexGuiEnter);
|
||||||
void wxMutexGuiEnter();
|
void wxMutexGuiEnter();
|
||||||
|
|
||||||
|
MustHaveApp(wxMutexGuiLeave);
|
||||||
void wxMutexGuiLeave();
|
void wxMutexGuiLeave();
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMutexGuiLocker);
|
||||||
class wxMutexGuiLocker {
|
class wxMutexGuiLocker {
|
||||||
public:
|
public:
|
||||||
wxMutexGuiLocker();
|
wxMutexGuiLocker();
|
||||||
@@ -240,6 +285,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxThread);
|
||||||
%inline %{
|
%inline %{
|
||||||
bool wxThread_IsMain() {
|
bool wxThread_IsMain() {
|
||||||
#ifdef WXP_WITH_THREAD
|
#ifdef WXP_WITH_THREAD
|
||||||
|
@@ -29,6 +29,8 @@ enum {
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGauge);
|
||||||
|
|
||||||
class wxGauge : public wxControl {
|
class wxGauge : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxGauge "self._setOORInfo(self)"
|
%pythonAppend wxGauge "self._setOORInfo(self)"
|
||||||
|
@@ -576,6 +576,8 @@ bottom, otherwise it is moved to the left or top respectively.", "",
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxIntersectRect);
|
||||||
|
|
||||||
DocAStr(wxIntersectRect,
|
DocAStr(wxIntersectRect,
|
||||||
"IntersectRect(Rect r1, Rect r2) -> Rect",
|
"IntersectRect(Rect r1, Rect r2) -> Rect",
|
||||||
"Calculate and return the intersection of r1 and r2.", "");
|
"Calculate and return the intersection of r1 and r2.", "");
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxGDIObject);
|
||||||
|
|
||||||
class wxGDIObject : public wxObject {
|
class wxGDIObject : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxGDIObject();
|
wxGDIObject();
|
||||||
|
@@ -20,6 +20,8 @@
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxIcon);
|
||||||
|
|
||||||
class wxIcon : public wxGDIObject
|
class wxIcon : public wxGDIObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -91,6 +91,7 @@ public:
|
|||||||
return new wxImage;
|
return new wxImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MustHaveApp(wxImage(const wxBitmap &bitmap));
|
||||||
%name(ImageFromBitmap) wxImage(const wxBitmap &bitmap) {
|
%name(ImageFromBitmap) wxImage(const wxBitmap &bitmap) {
|
||||||
return new wxImage(bitmap.ConvertToImage());
|
return new wxImage(bitmap.ConvertToImage());
|
||||||
}
|
}
|
||||||
@@ -312,6 +313,9 @@ success flag and rgb values.", "");
|
|||||||
static wxString GetImageExtWildcard();
|
static wxString GetImageExtWildcard();
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(ConvertToBitmap);
|
||||||
|
MustHaveApp(ConvertToMonoBitmap);
|
||||||
|
|
||||||
%extend {
|
%extend {
|
||||||
wxBitmap ConvertToBitmap() {
|
wxBitmap ConvertToBitmap() {
|
||||||
wxBitmap bitmap(*self);
|
wxBitmap bitmap(*self);
|
||||||
|
@@ -33,6 +33,8 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxImageList);
|
||||||
|
|
||||||
|
|
||||||
// wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
|
// wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
|
||||||
// images for their items by an index into an image list.
|
// images for their items by an index into an image list.
|
||||||
|
@@ -103,6 +103,8 @@ public:
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxJoystick);
|
||||||
|
|
||||||
class wxJoystick /* : public wxObject */
|
class wxJoystick /* : public wxObject */
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -26,6 +26,8 @@ MAKE_CONST_WXSTRING(ListBoxNameStr);
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxListBox);
|
||||||
|
|
||||||
class wxListBox : public wxControlWithItems
|
class wxListBox : public wxControlWithItems
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -137,6 +139,8 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxCheckListBox);
|
||||||
|
|
||||||
// wxCheckListBox: a listbox whose items may be checked
|
// wxCheckListBox: a listbox whose items may be checked
|
||||||
class wxCheckListBox : public wxListBox
|
class wxCheckListBox : public wxListBox
|
||||||
{
|
{
|
||||||
|
@@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
%{
|
%{
|
||||||
#include <wx/listctrl.h>
|
#include <wx/listctrl.h>
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
MAKE_CONST_WXSTRING2(ListCtrlNameStr, _T("wxListCtrl"));
|
MAKE_CONST_WXSTRING2(ListCtrlNameStr, _T("wxListCtrl"));
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@@ -398,6 +398,8 @@ IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyListCtrl);
|
||||||
|
|
||||||
%name(ListCtrl)class wxPyListCtrl : public wxControl {
|
%name(ListCtrl)class wxPyListCtrl : public wxControl {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -778,6 +780,8 @@ details in the second return value (see wxLIST_HITTEST_... flags.)", "");
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxListView);
|
||||||
|
|
||||||
// wxListView: a class which provides a little better API for list control
|
// wxListView: a class which provides a little better API for list control
|
||||||
class wxListView : public wxPyListCtrl
|
class wxListView : public wxPyListCtrl
|
||||||
{
|
{
|
||||||
|
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMDIParentFrame);
|
||||||
|
|
||||||
class wxMDIParentFrame : public wxFrame {
|
class wxMDIParentFrame : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxMDIParentFrame "self._setOORInfo(self)"
|
%pythonAppend wxMDIParentFrame "self._setOORInfo(self)"
|
||||||
@@ -78,6 +80,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxMDIChildFrame);
|
||||||
|
|
||||||
class wxMDIChildFrame : public wxFrame {
|
class wxMDIChildFrame : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxMDIChildFrame "self._setOORInfo(self)"
|
%pythonAppend wxMDIChildFrame "self._setOORInfo(self)"
|
||||||
@@ -109,6 +113,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxMDIClientWindow);
|
||||||
|
|
||||||
class wxMDIClientWindow : public wxWindow {
|
class wxMDIClientWindow : public wxWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxMDIClientWindow "self._setOORInfo(self)"
|
%pythonAppend wxMDIClientWindow "self._setOORInfo(self)"
|
||||||
|
@@ -17,6 +17,8 @@
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMenu);
|
||||||
|
|
||||||
class wxMenu : public wxEvtHandler
|
class wxMenu : public wxEvtHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -203,6 +205,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxMenuBar);
|
||||||
|
|
||||||
class wxMenuBar : public wxWindow
|
class wxMenuBar : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifndef __WXX11__
|
#ifndef __WXX11__
|
||||||
|
|
||||||
|
MustHaveApp(wxToolTip);
|
||||||
|
|
||||||
class wxToolTip : public wxObject {
|
class wxToolTip : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxToolTip(const wxString &tip);
|
wxToolTip(const wxString &tip);
|
||||||
@@ -35,6 +38,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxCaret);
|
||||||
|
|
||||||
class wxCaret {
|
class wxCaret {
|
||||||
public:
|
public:
|
||||||
wxCaret(wxWindow* window, const wxSize& size);
|
wxCaret(wxWindow* window, const wxSize& size);
|
||||||
@@ -79,6 +84,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxBusyCursor);
|
||||||
|
|
||||||
class wxBusyCursor {
|
class wxBusyCursor {
|
||||||
public:
|
public:
|
||||||
wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
|
wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
|
||||||
@@ -87,6 +94,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxWindowDisabler);
|
||||||
|
|
||||||
class wxWindowDisabler {
|
class wxWindowDisabler {
|
||||||
public:
|
public:
|
||||||
wxWindowDisabler(wxWindow *winToSkip = NULL);
|
wxWindowDisabler(wxWindow *winToSkip = NULL);
|
||||||
@@ -95,6 +104,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxBusyInfo);
|
||||||
|
|
||||||
class wxBusyInfo : public wxObject {
|
class wxBusyInfo : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxBusyInfo(const wxString& message);
|
wxBusyInfo(const wxString& message);
|
||||||
|
@@ -22,6 +22,8 @@ MAKE_CONST_WXSTRING(NOTEBOOK_NAME);
|
|||||||
|
|
||||||
// TODO: Virtualize this class so other book controls can be derived in Python
|
// TODO: Virtualize this class so other book controls can be derived in Python
|
||||||
|
|
||||||
|
MustHaveApp(wxBookCtrl);
|
||||||
|
|
||||||
// Common base class for wxList/Tree/Notebook
|
// Common base class for wxList/Tree/Notebook
|
||||||
class wxBookCtrl : public wxControl
|
class wxBookCtrl : public wxControl
|
||||||
{
|
{
|
||||||
@@ -160,6 +162,8 @@ enum {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxNotebook);
|
||||||
|
|
||||||
class wxNotebook : public wxBookCtrl {
|
class wxNotebook : public wxBookCtrl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxNotebook "self._setOORInfo(self)"
|
%pythonAppend wxNotebook "self._setOORInfo(self)"
|
||||||
@@ -286,6 +290,8 @@ enum
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxListbook);
|
||||||
|
|
||||||
// wxListCtrl and wxNotebook combination
|
// wxListCtrl and wxNotebook combination
|
||||||
class wxListbook : public wxBookCtrl
|
class wxListbook : public wxBookCtrl
|
||||||
{
|
{
|
||||||
|
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxPalette);
|
||||||
|
|
||||||
class wxPalette : public wxGDIObject {
|
class wxPalette : public wxGDIObject {
|
||||||
public:
|
public:
|
||||||
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
|
wxPalette(int n, const unsigned char *red, const unsigned char *green, const unsigned char *blue);
|
||||||
|
@@ -22,6 +22,8 @@
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPanel);
|
||||||
|
|
||||||
class wxPanel : public wxWindow
|
class wxPanel : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -57,6 +59,8 @@ public:
|
|||||||
// derive from it and wxPanel. But what to do about wxGTK where this
|
// derive from it and wxPanel. But what to do about wxGTK where this
|
||||||
// is not True?
|
// is not True?
|
||||||
|
|
||||||
|
MustHaveApp(wxScrolledWindow);
|
||||||
|
|
||||||
class wxScrolledWindow : public wxPanel
|
class wxScrolledWindow : public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -29,6 +29,8 @@
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPen);
|
||||||
|
|
||||||
class wxPen : public wxGDIObject {
|
class wxPen : public wxGDIObject {
|
||||||
public:
|
public:
|
||||||
wxPen(wxColour& colour, int width=1, int style=wxSOLID);
|
wxPen(wxColour& colour, int width=1, int style=wxSOLID);
|
||||||
|
@@ -23,9 +23,12 @@
|
|||||||
#ifndef __WXMAC__
|
#ifndef __WXMAC__
|
||||||
%newgroup;
|
%newgroup;
|
||||||
|
|
||||||
|
MustHaveApp(wxPopupWindow);
|
||||||
|
|
||||||
// wxPopupWindow: a special kind of top level window used for popup menus,
|
// wxPopupWindow: a special kind of top level window used for popup menus,
|
||||||
// combobox popups and such.
|
// combobox popups and such.
|
||||||
|
MustHaveApp(wxPopupWindow);
|
||||||
|
|
||||||
class wxPopupWindow : public wxWindow {
|
class wxPopupWindow : public wxWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPopupWindow "self._setOORInfo(self)"
|
%pythonAppend wxPopupWindow "self._setOORInfo(self)"
|
||||||
@@ -73,9 +76,11 @@ IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismis
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyPopupTransientWindow);
|
||||||
|
|
||||||
// wxPopupTransientWindow: a wxPopupWindow which disappears automatically
|
// wxPopupTransientWindow: a wxPopupWindow which disappears automatically
|
||||||
// when the user clicks mouse outside it or if it loses focus in any other way
|
// when the user clicks mouse outside it or if it loses focus in any other way
|
||||||
|
|
||||||
%name(PopupTransientWindow) class wxPyPopupTransientWindow : public wxPopupWindow
|
%name(PopupTransientWindow) class wxPyPopupTransientWindow : public wxPopupWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -149,6 +149,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPageSetupDialog);
|
||||||
|
|
||||||
class wxPageSetupDialog : public wxDialog {
|
class wxPageSetupDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPageSetupDialog "self._setOORInfo(self)"
|
%pythonAppend wxPageSetupDialog "self._setOORInfo(self)"
|
||||||
@@ -217,6 +219,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPrintDialog);
|
||||||
|
|
||||||
class wxPrintDialog : public wxDialog {
|
class wxPrintDialog : public wxDialog {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPrintDialog "self._setOORInfo(self)"
|
%pythonAppend wxPrintDialog "self._setOORInfo(self)"
|
||||||
@@ -243,6 +247,8 @@ enum wxPrinterError
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPrinter);
|
||||||
|
|
||||||
class wxPrinter : public wxObject {
|
class wxPrinter : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxPrinter(wxPrintDialogData* data = NULL);
|
wxPrinter(wxPrintDialogData* data = NULL);
|
||||||
@@ -323,6 +329,8 @@ IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage);
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyPrintout);
|
||||||
|
|
||||||
// Now define the custom class for SWIGging
|
// Now define the custom class for SWIGging
|
||||||
%name(Printout) class wxPyPrintout : public wxObject {
|
%name(Printout) class wxPyPrintout : public wxObject {
|
||||||
public:
|
public:
|
||||||
@@ -377,6 +385,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPreviewCanvas);
|
||||||
|
|
||||||
class wxPreviewCanvas: public wxScrolledWindow
|
class wxPreviewCanvas: public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -391,6 +401,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPreviewFrame);
|
||||||
|
|
||||||
class wxPreviewFrame : public wxFrame {
|
class wxPreviewFrame : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPreviewFrame "self._setOORInfo(self)"
|
%pythonAppend wxPreviewFrame "self._setOORInfo(self)"
|
||||||
@@ -430,6 +442,8 @@ enum {
|
|||||||
wxID_PREVIEW_GOTO
|
wxID_PREVIEW_GOTO
|
||||||
};
|
};
|
||||||
|
|
||||||
|
MustHaveApp(wxPreviewControlBar);
|
||||||
|
|
||||||
class wxPreviewControlBar: public wxPanel
|
class wxPreviewControlBar: public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -458,6 +472,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxPrintPreview);
|
||||||
|
|
||||||
class wxPrintPreview : public wxObject {
|
class wxPrintPreview : public wxObject {
|
||||||
public:
|
public:
|
||||||
%nokwargs wxPrintPreview;
|
%nokwargs wxPrintPreview;
|
||||||
@@ -592,6 +608,8 @@ IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling)
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyPrintPreview);
|
||||||
|
|
||||||
class wxPyPrintPreview : public wxPrintPreview
|
class wxPyPrintPreview : public wxPrintPreview
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -650,6 +668,8 @@ IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar);
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyPreviewFrame);
|
||||||
|
|
||||||
class wxPyPreviewFrame : public wxPreviewFrame
|
class wxPyPreviewFrame : public wxPreviewFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -704,6 +724,8 @@ IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomContr
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyPreviewControlBar);
|
||||||
|
|
||||||
class wxPyPreviewControlBar : public wxPreviewControlBar
|
class wxPyPreviewControlBar : public wxPreviewControlBar
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -159,6 +159,8 @@ enum
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxExecute);
|
||||||
|
|
||||||
long wxExecute(const wxString& command,
|
long wxExecute(const wxString& command,
|
||||||
int flags = wxEXEC_ASYNC,
|
int flags = wxEXEC_ASYNC,
|
||||||
wxPyProcess *process = NULL);
|
wxPyProcess *process = NULL);
|
||||||
|
@@ -99,6 +99,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
// And now the one for SWIG to see
|
// And now the one for SWIG to see
|
||||||
|
MustHaveApp(wxPyControl);
|
||||||
class wxPyControl : public wxControl
|
class wxPyControl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -129,6 +129,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes);
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
// And now the one for SWIG to see
|
// And now the one for SWIG to see
|
||||||
|
MustHaveApp(wxPyWindow);
|
||||||
class wxPyWindow : public wxWindow
|
class wxPyWindow : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -273,6 +274,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes);
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
// And now the one for SWIG to see
|
// And now the one for SWIG to see
|
||||||
|
MustHaveApp(wxPyPanel);
|
||||||
class wxPyPanel : public wxPanel
|
class wxPyPanel : public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -409,6 +411,7 @@ IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttribut
|
|||||||
%}
|
%}
|
||||||
|
|
||||||
// And now the one for SWIG to see
|
// And now the one for SWIG to see
|
||||||
|
MustHaveApp(wxPyScrolledWindow);
|
||||||
class wxPyScrolledWindow : public wxScrolledWindow
|
class wxPyScrolledWindow : public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -21,6 +21,8 @@ MAKE_CONST_WXSTRING(RadioButtonNameStr);
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxRadioBox);
|
||||||
|
|
||||||
class wxRadioBox : public wxControl
|
class wxRadioBox : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -94,6 +96,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxRadioButton);
|
||||||
|
|
||||||
class wxRadioButton : public wxControl
|
class wxRadioButton : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -41,6 +41,8 @@ enum wxRegionContain
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxRegion);
|
||||||
|
|
||||||
class wxRegion : public wxGDIObject {
|
class wxRegion : public wxGDIObject {
|
||||||
public:
|
public:
|
||||||
wxRegion(wxCoord x=0, wxCoord y=0, wxCoord width=0, wxCoord height=0);
|
wxRegion(wxCoord x=0, wxCoord y=0, wxCoord width=0, wxCoord height=0);
|
||||||
@@ -108,6 +110,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxRegionIterator);
|
||||||
|
|
||||||
class wxRegionIterator : public wxObject {
|
class wxRegionIterator : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxRegionIterator(const wxRegion& region);
|
wxRegionIterator(const wxRegion& region);
|
||||||
|
@@ -48,6 +48,8 @@ enum wxSashEdgePosition {
|
|||||||
// wxSashWindow allows any of its edges to have a sash which can be dragged
|
// wxSashWindow allows any of its edges to have a sash which can be dragged
|
||||||
// to resize the window. The actual content window will be created as a child
|
// to resize the window. The actual content window will be created as a child
|
||||||
// of wxSashWindow.
|
// of wxSashWindow.
|
||||||
|
MustHaveApp(wxSashWindow);
|
||||||
|
|
||||||
class wxSashWindow: public wxWindow
|
class wxSashWindow: public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -234,6 +236,8 @@ public:
|
|||||||
// This is window that can remember alignment/orientation, does its own layout,
|
// This is window that can remember alignment/orientation, does its own layout,
|
||||||
// and can provide sashes too. Useful for implementing docked windows with sashes in
|
// and can provide sashes too. Useful for implementing docked windows with sashes in
|
||||||
// an IDE-style interface.
|
// an IDE-style interface.
|
||||||
|
MustHaveApp(wxSashLayoutWindow);
|
||||||
|
|
||||||
class wxSashLayoutWindow: public wxSashWindow
|
class wxSashLayoutWindow: public wxSashWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -20,6 +20,8 @@ MAKE_CONST_WXSTRING(ScrollBarNameStr);
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxScrollBar);
|
||||||
|
|
||||||
class wxScrollBar : public wxControl {
|
class wxScrollBar : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxScrollBar "self._setOORInfo(self)"
|
%pythonAppend wxScrollBar "self._setOORInfo(self)"
|
||||||
|
@@ -148,6 +148,12 @@ enum wxSystemScreenType
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxSystemSettings::GetColour);
|
||||||
|
MustHaveApp(wxSystemSettings::GetFont);
|
||||||
|
MustHaveApp(wxSystemSettings::GetMetric);
|
||||||
|
MustHaveApp(wxSystemSettings::HasFeature);
|
||||||
|
MustHaveApp(wxSystemSettings::GetScreenType);
|
||||||
|
MustHaveApp(wxSystemSettings::SetScreenType);
|
||||||
|
|
||||||
class wxSystemSettings
|
class wxSystemSettings
|
||||||
{
|
{
|
||||||
|
@@ -25,6 +25,8 @@ MAKE_CONST_WXSTRING(SliderNameStr);
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxSlider);
|
||||||
|
|
||||||
class wxSlider : public wxControl {
|
class wxSlider : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonPrepend wxSlider "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']"
|
%pythonPrepend wxSlider "if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']"
|
||||||
|
@@ -71,6 +71,10 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxSound);
|
||||||
|
MustHaveApp(wxSound::Play);
|
||||||
|
MustHaveApp(wxSound::Stop);
|
||||||
|
|
||||||
class wxSound /*: public wxObject*/
|
class wxSound /*: public wxObject*/
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -38,6 +38,7 @@ enum {
|
|||||||
// wxSP_VERTICAL: vertical spin button (the default)
|
// wxSP_VERTICAL: vertical spin button (the default)
|
||||||
// wxSP_ARROW_KEYS: arrow keys increment/decrement value
|
// wxSP_ARROW_KEYS: arrow keys increment/decrement value
|
||||||
// wxSP_WRAP: value wraps at either end
|
// wxSP_WRAP: value wraps at either end
|
||||||
|
MustHaveApp(wxSpinButton);
|
||||||
class wxSpinButton : public wxControl
|
class wxSpinButton : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -80,6 +81,8 @@ public:
|
|||||||
// a spin ctrl is a text control with a spin button which is usually used to
|
// a spin ctrl is a text control with a spin button which is usually used to
|
||||||
// prompt the user for a numeric input
|
// prompt the user for a numeric input
|
||||||
|
|
||||||
|
MustHaveApp(wxSpinCtrl);
|
||||||
|
|
||||||
class wxSpinCtrl : public wxControl
|
class wxSpinCtrl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -104,6 +104,8 @@ Events
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxSplitterWindow);
|
||||||
|
|
||||||
class wxSplitterWindow: public wxWindow
|
class wxSplitterWindow: public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -23,6 +23,8 @@ MAKE_CONST_WXSTRING(StaticTextNameStr);
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxStaticBox);
|
||||||
|
|
||||||
class wxStaticBox : public wxControl {
|
class wxStaticBox : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxStaticBox "self._setOORInfo(self)"
|
%pythonAppend wxStaticBox "self._setOORInfo(self)"
|
||||||
@@ -50,6 +52,8 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxStaticLine);
|
||||||
|
|
||||||
class wxStaticLine : public wxControl {
|
class wxStaticLine : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxStaticLine "self._setOORInfo(self)"
|
%pythonAppend wxStaticLine "self._setOORInfo(self)"
|
||||||
@@ -82,6 +86,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxStaticText);
|
||||||
|
|
||||||
class wxStaticText : public wxControl {
|
class wxStaticText : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxStaticText "self._setOORInfo(self)"
|
%pythonAppend wxStaticText "self._setOORInfo(self)"
|
||||||
@@ -107,6 +113,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxStaticBitmap);
|
||||||
|
|
||||||
class wxStaticBitmap : public wxControl {
|
class wxStaticBitmap : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxStaticBitmap "self._setOORInfo(self)"
|
%pythonAppend wxStaticBitmap "self._setOORInfo(self)"
|
||||||
|
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// wxStatusBar: a window near the bottom of the frame used for status info
|
// wxStatusBar: a window near the bottom of the frame used for status info
|
||||||
|
MustHaveApp(wxStatusBar);
|
||||||
class wxStatusBar : public wxWindow
|
class wxStatusBar : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -99,6 +99,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxColourDatabase);
|
||||||
|
|
||||||
class wxColourDatabase : public wxObject {
|
class wxColourDatabase : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxColourDatabase();
|
wxColourDatabase();
|
||||||
|
@@ -56,6 +56,8 @@ enum {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxTaskBarIcon);
|
||||||
|
|
||||||
class wxTaskBarIcon : public wxEvtHandler
|
class wxTaskBarIcon : public wxEvtHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -161,6 +161,7 @@ public:
|
|||||||
|
|
||||||
// wxTextCtrl: a single or multiple line text zone where user can enter and
|
// wxTextCtrl: a single or multiple line text zone where user can enter and
|
||||||
// edit text
|
// edit text
|
||||||
|
MustHaveApp(wxTextCtrl);
|
||||||
class wxTextCtrl : public wxControl
|
class wxTextCtrl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -50,6 +50,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxToggleButton);
|
||||||
|
|
||||||
class wxToggleButton : public wxControl
|
class wxToggleButton : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -53,6 +53,8 @@ void wxPyTimer::base_Notify() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyTimer);
|
||||||
|
|
||||||
%name(Timer) class wxPyTimer : public wxEvtHandler
|
%name(Timer) class wxPyTimer : public wxEvtHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -130,6 +132,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// wxTimerRunner: starts the timer in its ctor, stops in the dtor
|
// wxTimerRunner: starts the timer in its ctor, stops in the dtor
|
||||||
|
MustHaveApp(wxTimerRunner);
|
||||||
class wxTimerRunner
|
class wxTimerRunner
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -81,11 +81,13 @@ public:
|
|||||||
// not, the dialog on startup depending on its value, not this class).
|
// not, the dialog on startup depending on its value, not this class).
|
||||||
//
|
//
|
||||||
// The function returns True if this checkbox is checked, False otherwise.
|
// The function returns True if this checkbox is checked, False otherwise.
|
||||||
|
MustHaveApp(wxShowTip);
|
||||||
bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup = True);
|
bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup = True);
|
||||||
|
|
||||||
// a function which returns an implementation of wxTipProvider using the
|
// a function which returns an implementation of wxTipProvider using the
|
||||||
// specified text file as the source of tips (each line is a tip).
|
// specified text file as the source of tips (each line is a tip).
|
||||||
%newobject wxCreateFileTipProvider;
|
%newobject wxCreateFileTipProvider;
|
||||||
|
MustHaveApp(wxCreateFileTipProvider);
|
||||||
wxTipProvider* wxCreateFileTipProvider(const wxString& filename, size_t currentTip);
|
wxTipProvider* wxCreateFileTipProvider(const wxString& filename, size_t currentTip);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -23,6 +23,8 @@
|
|||||||
%newgroup;
|
%newgroup;
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxTipWindow);
|
||||||
|
|
||||||
class wxTipWindow :
|
class wxTipWindow :
|
||||||
#ifndef __WXMAC__
|
#ifndef __WXMAC__
|
||||||
public wxPyPopupTransientWindow
|
public wxPyPopupTransientWindow
|
||||||
|
@@ -384,6 +384,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxToolBar);
|
||||||
|
|
||||||
class wxToolBar : public wxToolBarBase {
|
class wxToolBar : public wxToolBarBase {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxToolBar "self._setOORInfo(self)"
|
%pythonAppend wxToolBar "self._setOORInfo(self)"
|
||||||
|
@@ -145,6 +145,8 @@ public:
|
|||||||
// is accounted for in client size calculations - all others should be taken
|
// is accounted for in client size calculations - all others should be taken
|
||||||
// care of manually.
|
// care of manually.
|
||||||
|
|
||||||
|
MustHaveApp(wxFrame);
|
||||||
|
|
||||||
class wxFrame : public wxTopLevelWindow {
|
class wxFrame : public wxTopLevelWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxFrame "self._setOORInfo(self)"
|
%pythonAppend wxFrame "self._setOORInfo(self)"
|
||||||
@@ -255,6 +257,8 @@ public:
|
|||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
MustHaveApp(wxDialog);
|
||||||
|
|
||||||
class wxDialog : public wxTopLevelWindow {
|
class wxDialog : public wxTopLevelWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxDialog "self._setOORInfo(self)"
|
%pythonAppend wxDialog "self._setOORInfo(self)"
|
||||||
@@ -311,6 +315,8 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxMiniFrame);
|
||||||
|
|
||||||
class wxMiniFrame : public wxFrame {
|
class wxMiniFrame : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxMiniFrame "self._setOORInfo(self)"
|
%pythonAppend wxMiniFrame "self._setOORInfo(self)"
|
||||||
@@ -345,6 +351,8 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxSplashScreenWindow);
|
||||||
|
|
||||||
class wxSplashScreenWindow: public wxWindow
|
class wxSplashScreenWindow: public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -361,6 +369,8 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxSplashScreen);
|
||||||
|
|
||||||
class wxSplashScreen : public wxFrame {
|
class wxSplashScreen : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxSplashScreen "self._setOORInfo(self)"
|
%pythonAppend wxSplashScreen "self._setOORInfo(self)"
|
||||||
|
@@ -309,6 +309,8 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyTreeCtrl);
|
||||||
|
|
||||||
%name(TreeCtrl)class wxPyTreeCtrl : public wxControl {
|
%name(TreeCtrl)class wxPyTreeCtrl : public wxControl {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPyTreeCtrl "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)"
|
%pythonAppend wxPyTreeCtrl "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)"
|
||||||
|
@@ -125,6 +125,8 @@ IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, Est
|
|||||||
of the window and not its entire client area.
|
of the window and not its entire client area.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
MustHaveApp(wxPyVScrolledWindow);
|
||||||
|
|
||||||
%name(VScrolledWindow) class wxPyVScrolledWindow : public wxPanel
|
%name(VScrolledWindow) class wxPyVScrolledWindow : public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -282,6 +284,8 @@ IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground
|
|||||||
It emits the same events as wxListBox and the same event macros may be used
|
It emits the same events as wxListBox and the same event macros may be used
|
||||||
with it.
|
with it.
|
||||||
*/
|
*/
|
||||||
|
MustHaveApp(wxPyVListBox);
|
||||||
|
|
||||||
%name(VListBox) class wxPyVListBox : public wxPyVScrolledWindow
|
%name(VListBox) class wxPyVListBox : public wxPyVScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -478,6 +482,7 @@ IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup
|
|||||||
|
|
||||||
|
|
||||||
// wxHtmlListBox is a listbox whose items are wxHtmlCells
|
// wxHtmlListBox is a listbox whose items are wxHtmlCells
|
||||||
|
MustHaveApp(wxPyHtmlListBox);
|
||||||
%name(HtmlListBox) class wxPyHtmlListBox : public wxPyVListBox
|
%name(HtmlListBox) class wxPyHtmlListBox : public wxPyVListBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -187,6 +187,10 @@ Extra Styles
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxWindow);
|
||||||
|
MustHaveApp(wxWindow::FindFocus);
|
||||||
|
MustHaveApp(wxWindow::GetCapture);
|
||||||
|
MustHaveApp(wxWindow::GetClassDefaultAttributes);
|
||||||
|
|
||||||
class wxWindow : public wxEvtHandler
|
class wxWindow : public wxEvtHandler
|
||||||
{
|
{
|
||||||
@@ -1850,6 +1854,10 @@ non-None, the search will be limited to the given window
|
|||||||
hierarchy. The search is recursive in both cases.", "");
|
hierarchy. The search is recursive in both cases.", "");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxFindWindowById);
|
||||||
|
MustHaveApp(wxFindWindowByName);
|
||||||
|
MustHaveApp(wxFindWindowByLabel);
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
|
wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
|
||||||
return wxWindow::FindWindowById(id, parent);
|
return wxWindow::FindWindowById(id, parent);
|
||||||
|
@@ -211,6 +211,8 @@ event.
|
|||||||
");
|
");
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxCalendarCtrl);
|
||||||
|
|
||||||
class wxCalendarCtrl : public wxControl
|
class wxCalendarCtrl : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -1546,6 +1546,8 @@ typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxGrid);
|
||||||
|
|
||||||
class wxGrid : public wxScrolledWindow
|
class wxGrid : public wxScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -79,6 +79,7 @@ wxMutex* wxPyTMutex = NULL;
|
|||||||
|
|
||||||
static PyObject* wxPython_dict = NULL;
|
static PyObject* wxPython_dict = NULL;
|
||||||
static PyObject* wxPyAssertionError = NULL;
|
static PyObject* wxPyAssertionError = NULL;
|
||||||
|
static PyObject* wxPyNoAppError = NULL;
|
||||||
|
|
||||||
PyObject* wxPyPtrTypeMap = NULL;
|
PyObject* wxPyPtrTypeMap = NULL;
|
||||||
|
|
||||||
@@ -567,7 +568,8 @@ PyObject* __wxPySetDictionary(PyObject* /* self */, PyObject* args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!PyDict_Check(wxPython_dict)) {
|
if (!PyDict_Check(wxPython_dict)) {
|
||||||
PyErr_SetString(PyExc_TypeError, "_wxPySetDictionary must have dictionary object!");
|
PyErr_SetString(PyExc_TypeError,
|
||||||
|
"_wxPySetDictionary must have dictionary object!");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -580,6 +582,12 @@ PyObject* __wxPySetDictionary(PyObject* /* self */, PyObject* args)
|
|||||||
PyExc_AssertionError, NULL);
|
PyExc_AssertionError, NULL);
|
||||||
PyDict_SetItemString(wxPython_dict, "PyAssertionError", wxPyAssertionError);
|
PyDict_SetItemString(wxPython_dict, "PyAssertionError", wxPyAssertionError);
|
||||||
|
|
||||||
|
// Create an exception object to use when the app object hasn't been created yet
|
||||||
|
wxPyNoAppError = PyErr_NewException("wx._core.PyNoAppError",
|
||||||
|
PyExc_RuntimeError, NULL);
|
||||||
|
PyDict_SetItemString(wxPython_dict, "PyNoAppError", wxPyNoAppError);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMOTIF__
|
#ifdef __WXMOTIF__
|
||||||
#define wxPlatform "__WXMOTIF__"
|
#define wxPlatform "__WXMOTIF__"
|
||||||
@@ -636,6 +644,11 @@ PyObject* __wxPySetDictionary(PyObject* /* self */, PyObject* args)
|
|||||||
_AddInfoString("gtk1");
|
_AddInfoString("gtk1");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef __WXDEBUG__
|
||||||
|
_AddInfoString("wx-assertions-on");
|
||||||
|
#else
|
||||||
|
_AddInfoString("wx-assertions-off");
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef _AddInfoString
|
#undef _AddInfoString
|
||||||
|
|
||||||
@@ -823,6 +836,22 @@ void wxPy_ReinitStockObjects(int pass)
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Check for existence of a wxApp, setting an exception if there isn't one.
|
||||||
|
// This doesn't need to aquire the GIL because it should only be called from
|
||||||
|
// an %exception before the lock is released.
|
||||||
|
|
||||||
|
bool wxPyCheckForApp() {
|
||||||
|
if (wxTheApp != NULL)
|
||||||
|
return true;
|
||||||
|
else {
|
||||||
|
PyErr_SetString(wxPyNoAppError, "The wx.App object must be created first!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
void wxPyClientData_dtor(wxPyClientData* self) {
|
void wxPyClientData_dtor(wxPyClientData* self) {
|
||||||
if (! wxPyDoingCleanup) { // Don't do it during cleanup as Python
|
if (! wxPyDoingCleanup) { // Don't do it during cleanup as Python
|
||||||
// may have already garbage collected the object...
|
// may have already garbage collected the object...
|
||||||
|
@@ -785,6 +785,8 @@ wxHtmlOpeningStatus wxPyHtmlWindow::OnOpeningURL(wxHtmlURLType type,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyHtmlWindow);
|
||||||
|
|
||||||
%name(HtmlWindow) class wxPyHtmlWindow : public wxScrolledWindow {
|
%name(HtmlWindow) class wxPyHtmlWindow : public wxScrolledWindow {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxPyHtmlWindow "self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)"
|
%pythonAppend wxPyHtmlWindow "self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)"
|
||||||
@@ -919,6 +921,8 @@ public:
|
|||||||
%newgroup
|
%newgroup
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxHtmlDCRenderer);
|
||||||
|
|
||||||
class wxHtmlDCRenderer : public wxObject {
|
class wxHtmlDCRenderer : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxHtmlDCRenderer();
|
wxHtmlDCRenderer();
|
||||||
@@ -956,6 +960,8 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxHtmlPrintout);
|
||||||
|
|
||||||
class wxHtmlPrintout : public wxPyPrintout {
|
class wxHtmlPrintout : public wxPyPrintout {
|
||||||
public:
|
public:
|
||||||
wxHtmlPrintout(const wxString& title = wxPyHtmlPrintoutTitleStr);
|
wxHtmlPrintout(const wxString& title = wxPyHtmlPrintoutTitleStr);
|
||||||
@@ -991,6 +997,8 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxHtmlEasyPrinting);
|
||||||
|
|
||||||
class wxHtmlEasyPrinting : public wxObject {
|
class wxHtmlEasyPrinting : public wxObject {
|
||||||
public:
|
public:
|
||||||
wxHtmlEasyPrinting(const wxString& name = wxPyHtmlPrintingTitleStr,
|
wxHtmlEasyPrinting(const wxString& name = wxPyHtmlPrintingTitleStr,
|
||||||
@@ -1104,6 +1112,8 @@ public:
|
|||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxHtmlHelpFrame);
|
||||||
|
|
||||||
class wxHtmlHelpFrame : public wxFrame {
|
class wxHtmlHelpFrame : public wxFrame {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxHtmlHelpFrame "self._setOORInfo(self)"
|
%pythonAppend wxHtmlHelpFrame "self._setOORInfo(self)"
|
||||||
@@ -1141,6 +1151,8 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxHtmlHelpController);
|
||||||
|
|
||||||
class wxHtmlHelpController : public wxEvtHandler {
|
class wxHtmlHelpController : public wxEvtHandler {
|
||||||
public:
|
public:
|
||||||
%pythonAppend wxHtmlHelpController "self._setOORInfo(self)"
|
%pythonAppend wxHtmlHelpController "self._setOORInfo(self)"
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
#include "wx/wxPython/wxPython.h"
|
#include "wx/wxPython/wxPython.h"
|
||||||
#include "wx/wxPython/pyclasses.h"
|
#include "wx/wxPython/pyclasses.h"
|
||||||
#include "wx/wxPython/pyistream.h"
|
#include "wx/wxPython/pyistream.h"
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@@ -11,17 +11,6 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// Tell SWIG to wrap all the wrappers with our thread protection
|
|
||||||
|
|
||||||
%exception {
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
$action
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
// Typemaps to convert a list of items to an int (size) and an array
|
// Typemaps to convert a list of items to an int (size) and an array
|
||||||
|
|
||||||
|
@@ -84,6 +84,7 @@ public:
|
|||||||
//
|
//
|
||||||
// Other than GetNext/Prev() functions, wxWizardPage is just a panel and may be
|
// Other than GetNext/Prev() functions, wxWizardPage is just a panel and may be
|
||||||
// used as such (i.e. controls may be placed directly on it &c).
|
// used as such (i.e. controls may be placed directly on it &c).
|
||||||
|
MustHaveApp(wxWizardPage);
|
||||||
class wxWizardPage : public wxPanel
|
class wxWizardPage : public wxPanel
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -198,6 +199,8 @@ IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWizardPage, wxWizardPage, RemoveChild);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
MustHaveApp(wxPyWizardPage);
|
||||||
|
|
||||||
class wxPyWizardPage : public wxWizardPage {
|
class wxPyWizardPage : public wxWizardPage {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -275,6 +278,7 @@ public:
|
|||||||
// OTOH, it is also possible to dynamicly decide which page to return (i.e.
|
// OTOH, it is also possible to dynamicly decide which page to return (i.e.
|
||||||
// depending on the user's choices) as the wizard sample shows - in order to do
|
// depending on the user's choices) as the wizard sample shows - in order to do
|
||||||
// this, you must derive from wxWizardPage directly.
|
// this, you must derive from wxWizardPage directly.
|
||||||
|
MustHaveApp(wxWizardPageSimple);
|
||||||
class wxWizardPageSimple : public wxWizardPage
|
class wxWizardPageSimple : public wxWizardPage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -307,6 +311,8 @@ public:
|
|||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
MustHaveApp(wxWizard);
|
||||||
|
|
||||||
class wxWizard : public wxDialog
|
class wxWizard : public wxDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user