Tweaks needed to update to current CVS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-04-23 23:24:56 +00:00
parent 9cc79dd629
commit a7c987f91e
10 changed files with 37 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ class App(wx.PyApp):
:param redirect: Should ``sys.stdout`` and ``sys.stderr`` be
redirected? Defaults to True on Windows and Mac, False
otherwise. If `filename` is None then output will be
otherwise. If ``filename`` is None then output will be
redirected to a window that pops up as needed. (You can
control what kind of window is created for the output by
resetting the class variable ``outputWindowClass`` to a

View File

@@ -27,7 +27,6 @@ enum {
wxIMAGE_ALPHA_OPAQUE
};
// Constants for wxImage::Scale() for determining the level of quality
enum
{
@@ -1141,13 +1140,21 @@ MAKE_CONST_WXSTRING(IMAGE_OPTION_RESOLUTIONY);
MAKE_CONST_WXSTRING(IMAGE_OPTION_RESOLUTIONUNIT);
MAKE_CONST_WXSTRING(IMAGE_OPTION_QUALITY);
enum
// constants used with wxIMAGE_OPTION_RESOLUTIONUNIT
enum wxImageResolution
{
// Resolution not specified
wxIMAGE_RESOLUTION_NONE = 0,
// Resolution specified in inches
wxIMAGE_RESOLUTION_INCHES = 1,
// Resolution specified in centimeters
wxIMAGE_RESOLUTION_CM = 2
};
MAKE_CONST_WXSTRING(IMAGE_OPTION_BITSPERSAMPLE);
MAKE_CONST_WXSTRING(IMAGE_OPTION_SAMPLESPERPIXEL);
MAKE_CONST_WXSTRING(IMAGE_OPTION_COMPRESSION);

View File

@@ -1436,6 +1436,8 @@ sizer.", "");
void , SetOrientation(int orient),
"Resets the orientation of the sizer.", "");
bool IsVertical() const;
%property(Orientation, GetOrientation, SetOrientation, doc="See `GetOrientation` and `SetOrientation`");
};

View File

@@ -382,6 +382,10 @@ public:
void SetEscapeId(int escapeId);
int GetEscapeId() const;
// Returns the parent to use for modal dialogs if the user did not specify it
// explicitly
wxWindow *GetParentForModalDialog(wxWindow *parent = NULL) const;
// splits text up at newlines and places the
// lines into a vertical wxBoxSizer
wxSizer* CreateTextSizer( const wxString &message );

View File

@@ -850,6 +850,9 @@ SetWindowStyleFlag()", "");
long , GetExtraStyle() const,
"Returns the extra style bits for the window.", "");
DocDeclStr(
bool , HasExtraStyle(int exFlag) const,
"Returns ``True`` if the given extra flag is set.", "");
DocDeclStr(

View File

@@ -853,7 +853,7 @@ public:
void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
bool found;
wxPyBlock_t blocked = wxPyBeginBlockThreads();
if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground"))) {
PyObject* ao = wxPyMake_wxGridCellAttr(attr,false);
PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);