reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6cfd7f95f8
commit
79fccf9d17
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -26981,7 +26981,7 @@ static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObj
|
||||
PyObject * obj4 = 0 ;
|
||||
PyObject * obj5 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL
|
||||
(char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
|
||||
|
@ -46,29 +46,35 @@ _gdi_.GDIObject_swigregister(GDIObjectPtr)
|
||||
|
||||
class Colour(_core.Object):
|
||||
"""
|
||||
A colour is an object representing a combination of Red, Green, and Blue (RGB)
|
||||
intensity values, and is used to determine drawing colours, window colours,
|
||||
etc. Valid RGB values are in the range 0 to 255.
|
||||
A colour is an object representing a combination of Red, Green, and
|
||||
Blue (RGB) intensity values, and is used to determine drawing colours,
|
||||
window colours, etc. Valid RGB values are in the range 0 to 255.
|
||||
|
||||
In wxPython there are typemaps that will automatically convert from a colour
|
||||
name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when
|
||||
calling C++ methods that expect a wxColour. This means that the following are
|
||||
all equivallent:
|
||||
In wxPython there are typemaps that will automatically convert from a
|
||||
colour name, or from a '#RRGGBB' colour hex value string to a
|
||||
wx.Colour object when calling C++ methods that expect a wxColour.
|
||||
This means that the following are all equivallent::
|
||||
|
||||
win.SetBackgroundColour(wxColour(0,0,255))
|
||||
win.SetBackgroundColour('BLUE')
|
||||
win.SetBackgroundColour('#0000FF')
|
||||
|
||||
You can retrieve the various current system colour settings with
|
||||
wx.SystemSettings.GetColour.
|
||||
Additional colour names and their coresponding values can be added
|
||||
using `wx.ColourDatabase`. Various system colours (as set in the
|
||||
user's system preferences) can be retrieved with
|
||||
`wx.SystemSettings.GetColour`.
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour
|
||||
__init__(self, byte red=0, byte green=0, byte blue=0) -> Colour
|
||||
|
||||
Constructs a colour from red, green and blue values.
|
||||
|
||||
:see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`.
|
||||
|
||||
"""
|
||||
newobj = _gdi_.new_Colour(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -82,7 +88,7 @@ class Colour(_core.Object):
|
||||
|
||||
def Red(*args, **kwargs):
|
||||
"""
|
||||
Red(self) -> unsigned char
|
||||
Red(self) -> byte
|
||||
|
||||
Returns the red intensity.
|
||||
"""
|
||||
@ -90,7 +96,7 @@ class Colour(_core.Object):
|
||||
|
||||
def Green(*args, **kwargs):
|
||||
"""
|
||||
Green(self) -> unsigned char
|
||||
Green(self) -> byte
|
||||
|
||||
Returns the green intensity.
|
||||
"""
|
||||
@ -98,7 +104,7 @@ class Colour(_core.Object):
|
||||
|
||||
def Blue(*args, **kwargs):
|
||||
"""
|
||||
Blue(self) -> unsigned char
|
||||
Blue(self) -> byte
|
||||
|
||||
Returns the blue intensity.
|
||||
"""
|
||||
@ -115,7 +121,7 @@ class Colour(_core.Object):
|
||||
|
||||
def Set(*args, **kwargs):
|
||||
"""
|
||||
Set(self, unsigned char red, unsigned char green, unsigned char blue)
|
||||
Set(self, byte red, byte green, byte blue)
|
||||
|
||||
Sets the RGB intensity values.
|
||||
"""
|
||||
@ -133,7 +139,8 @@ class Colour(_core.Object):
|
||||
"""
|
||||
SetFromName(self, String colourName)
|
||||
|
||||
Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase.
|
||||
Sets the RGB intensity values using a colour name listed in
|
||||
``wx.TheColourDatabase``.
|
||||
"""
|
||||
return _gdi_.Colour_SetFromName(*args, **kwargs)
|
||||
|
||||
@ -142,8 +149,8 @@ class Colour(_core.Object):
|
||||
GetPixel(self) -> long
|
||||
|
||||
Returns a pixel value which is platform-dependent. On Windows, a
|
||||
COLORREF is returned. On X, an allocated pixel value is returned.
|
||||
-1 is returned if the pixel is invalid (on X, unallocated).
|
||||
COLORREF is returned. On X, an allocated pixel value is returned. -1
|
||||
is returned if the pixel is invalid (on X, unallocated).
|
||||
"""
|
||||
return _gdi_.Colour_GetPixel(*args, **kwargs)
|
||||
|
||||
@ -179,9 +186,9 @@ class Colour(_core.Object):
|
||||
"""
|
||||
return _gdi_.Colour_GetRGB(*args, **kwargs)
|
||||
|
||||
asTuple = Get
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return 'wx.Colour' + str(self.asTuple())
|
||||
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
|
||||
def __str__(self): return str(self.Get())
|
||||
def __repr__(self): return 'wx.Colour' + str(self.Get())
|
||||
def __nonzero__(self): return self.Ok()
|
||||
__safe_for_unpickling__ = True
|
||||
def __reduce__(self): return (Colour, self.Get())
|
||||
@ -198,7 +205,8 @@ def NamedColour(*args, **kwargs):
|
||||
"""
|
||||
NamedColour(String colorName) -> Colour
|
||||
|
||||
Constructs a colour object using a colour name listed in wx.TheColourDatabase.
|
||||
Constructs a colour object using a colour name listed in
|
||||
``wx.TheColourDatabase``.
|
||||
"""
|
||||
val = _gdi_.new_NamedColour(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
@ -369,18 +377,6 @@ class Brush(GDIObject):
|
||||
A brush is a drawing tool for filling in areas. It is used for
|
||||
painting the background of rectangles, ellipses, etc. when drawing on
|
||||
a `wx.DC`. It has a colour and a style.
|
||||
|
||||
:warning: Do not create instances of wx.Brush before the `wx.App`
|
||||
object has been created because, depending on the platform,
|
||||
required internal data structures may not have been initialized
|
||||
yet. Instead create your brushes in the app's OnInit or as they
|
||||
are needed for drawing.
|
||||
|
||||
:note: On monochrome displays all brushes are white, unless the colour
|
||||
really is black.
|
||||
|
||||
:see: `wx.BrushList`, `wx.DC`, `wx.DC.SetBrush`
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -388,24 +384,7 @@ class Brush(GDIObject):
|
||||
"""
|
||||
__init__(self, Colour colour, int style=SOLID) -> Brush
|
||||
|
||||
Constructs a brush from a `wx.Colour` object and a style. The style
|
||||
parameter may be one of the following:
|
||||
|
||||
=================== =============================
|
||||
Style Meaning
|
||||
=================== =============================
|
||||
wx.TRANSPARENT Transparent (no fill).
|
||||
wx.SOLID Solid.
|
||||
wx.STIPPLE Uses a bitmap as a stipple.
|
||||
wx.BDIAGONAL_HATCH Backward diagonal hatch.
|
||||
wx.CROSSDIAG_HATCH Cross-diagonal hatch.
|
||||
wx.FDIAGONAL_HATCH Forward diagonal hatch.
|
||||
wx.CROSS_HATCH Cross hatch.
|
||||
wx.HORIZONTAL_HATCH Horizontal hatch.
|
||||
wx.VERTICAL_HATCH Vertical hatch.
|
||||
=================== =============================
|
||||
|
||||
|
||||
Constructs a brush from a `wx.Colour` object and a style.
|
||||
"""
|
||||
newobj = _gdi_.new_Brush(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -493,19 +472,6 @@ class Bitmap(GDIObject):
|
||||
device context (instance of `wx.MemoryDC`). This enables the bitmap to
|
||||
be copied to a window or memory device context using `wx.DC.Blit`, or
|
||||
to be used as a drawing surface.
|
||||
|
||||
The BMP and XMP image file formats are supported on all platforms by
|
||||
wx.Bitmap. Other formats are automatically loaded by `wx.Image` and
|
||||
converted to a wx.Bitmap, so any image file format supported by
|
||||
`wx.Image` can be used.
|
||||
|
||||
:todo: Add wrappers and support for raw bitmap data access. Can this
|
||||
be be put into Python without losing the speed benefits of the
|
||||
teplates and iterators in rawbmp.h?
|
||||
|
||||
:todo: Find a way to do very efficient PIL Image <--> wx.Bitmap
|
||||
converstions.
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -514,33 +480,6 @@ class Bitmap(GDIObject):
|
||||
__init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
|
||||
|
||||
Loads a bitmap from a file.
|
||||
|
||||
:param name: Name of the file to load the bitmap from.
|
||||
:param type: The type of image to expect. Can be one of the following
|
||||
constants (assuming that the neccessary `wx.Image` handlers are
|
||||
loaded):
|
||||
|
||||
* wx.BITMAP_TYPE_ANY
|
||||
* wx.BITMAP_TYPE_BMP
|
||||
* wx.BITMAP_TYPE_ICO
|
||||
* wx.BITMAP_TYPE_CUR
|
||||
* wx.BITMAP_TYPE_XBM
|
||||
* wx.BITMAP_TYPE_XPM
|
||||
* wx.BITMAP_TYPE_TIF
|
||||
* wx.BITMAP_TYPE_GIF
|
||||
* wx.BITMAP_TYPE_PNG
|
||||
* wx.BITMAP_TYPE_JPEG
|
||||
* wx.BITMAP_TYPE_PNM
|
||||
* wx.BITMAP_TYPE_PCX
|
||||
* wx.BITMAP_TYPE_PICT
|
||||
* wx.BITMAP_TYPE_ICON
|
||||
* wx.BITMAP_TYPE_ANI
|
||||
* wx.BITMAP_TYPE_IFF
|
||||
|
||||
:see: Alternate constructors `wx.EmptyBitmap`, `wx.BitmapFromIcon`,
|
||||
`wx.BitmapFromImage`, `wx.BitmapFromXPMData`,
|
||||
`wx.BitmapFromBits`
|
||||
|
||||
"""
|
||||
newobj = _gdi_.new_Bitmap(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -805,7 +744,6 @@ class Mask(_core.Object):
|
||||
`wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a
|
||||
`wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
|
||||
mask.
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -1023,15 +961,15 @@ def IconBundleFromIcon(*args, **kwargs):
|
||||
|
||||
class Cursor(GDIObject):
|
||||
"""
|
||||
A cursor is a small bitmap usually used for denoting where the
|
||||
mouse pointer is, with a picture that might indicate the
|
||||
interpretation of a mouse click.
|
||||
A cursor is a small bitmap usually used for denoting where the mouse
|
||||
pointer is, with a picture that might indicate the interpretation of a
|
||||
mouse click.
|
||||
|
||||
A single cursor object may be used in many windows (any subwindow
|
||||
type). The wxWindows convention is to set the cursor for a
|
||||
window, as in X, rather than to set it globally as in MS Windows,
|
||||
although a global wx.SetCursor function is also available for use
|
||||
on MS Windows.
|
||||
type). The wxWindows convention is to set the cursor for a window, as
|
||||
in X, rather than to set it globally as in MS Windows, although a
|
||||
global `wx.SetCursor` function is also available for use on MS Windows.
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -1040,11 +978,11 @@ class Cursor(GDIObject):
|
||||
__init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
|
||||
|
||||
Construct a Cursor from a file. Specify the type of file using
|
||||
wx.BITAMP_TYPE* constants, and specify the hotspot if not using a
|
||||
.cur file.
|
||||
wx.BITAMP_TYPE* constants, and specify the hotspot if not using a cur
|
||||
file.
|
||||
|
||||
This cursor is not available on wxGTK, use wx.StockCursor,
|
||||
wx.CursorFromImage, or wx.CursorFromBits instead.
|
||||
This constructor is not available on wxGTK, use ``wx.StockCursor``,
|
||||
``wx.CursorFromImage``, or ``wx.CursorFromBits`` instead.
|
||||
"""
|
||||
newobj = _gdi_.new_Cursor(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -1117,8 +1055,8 @@ def StockCursor(*args, **kwargs):
|
||||
"""
|
||||
StockCursor(int id) -> Cursor
|
||||
|
||||
Create a cursor using one of the stock cursors. Note that not
|
||||
all cursors are available on all platforms.
|
||||
Create a cursor using one of the stock cursors. Note that not all
|
||||
cursors are available on all platforms.
|
||||
"""
|
||||
val = _gdi_.new_StockCursor(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
@ -1128,17 +1066,10 @@ def CursorFromImage(*args, **kwargs):
|
||||
"""
|
||||
CursorFromImage(Image image) -> Cursor
|
||||
|
||||
Constructs a cursor from a wxImage. The cursor is monochrome,
|
||||
colors with the RGB elements all greater than 127 will be
|
||||
foreground, colors less than this background. The mask (if any)
|
||||
will be used as transparent.
|
||||
|
||||
In MSW the foreground will be white and the background black. The
|
||||
cursor is resized to 32x32 In GTK, the two most frequent colors
|
||||
will be used for foreground and background. The cursor will be
|
||||
displayed at the size of the image. On MacOS the cursor is
|
||||
resized to 16x16 and currently only shown as black/white (mask
|
||||
respected).
|
||||
Constructs a cursor from a wxImage. The cursor is monochrome, colors
|
||||
with the RGB elements all greater than 127 will be foreground, colors
|
||||
less than this background. The mask (if any) will be used as
|
||||
transparent.
|
||||
"""
|
||||
val = _gdi_.new_CursorFromImage(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
@ -2232,7 +2163,7 @@ class Locale(object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""__init__(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
|
||||
"""__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
|
||||
newobj = _gdi_.new_Locale(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
@ -2763,12 +2694,7 @@ class DC(_core.Object):
|
||||
return _gdi_.DC_GetCharWidth(*args, **kwargs)
|
||||
|
||||
def GetTextExtent(*args, **kwargs):
|
||||
"""
|
||||
GetTextExtent(wxString string) -> (width, height)
|
||||
|
||||
Get the width and height of the text using the current font.
|
||||
Only works for single line strings.
|
||||
"""
|
||||
"""GetTextExtent(wxString string) -> (width, height)"""
|
||||
return _gdi_.DC_GetTextExtent(*args, **kwargs)
|
||||
|
||||
def GetFullTextExtent(*args, **kwargs):
|
||||
@ -2776,8 +2702,8 @@ class DC(_core.Object):
|
||||
GetFullTextExtent(wxString string, Font font=None) ->
|
||||
(width, height, descent, externalLeading)
|
||||
|
||||
Get the width, height, decent and leading of the text using the current or specified font.
|
||||
Only works for single line strings.
|
||||
Get the width, height, decent and leading of the text using the
|
||||
current or specified font. Only works for single line strings.
|
||||
"""
|
||||
return _gdi_.DC_GetFullTextExtent(*args, **kwargs)
|
||||
|
||||
@ -2785,9 +2711,6 @@ class DC(_core.Object):
|
||||
"""
|
||||
GetMultiLineTextExtent(wxString string, Font font=None) ->
|
||||
(width, height, descent, externalLeading)
|
||||
|
||||
Get the width, height, decent and leading of the text using the current or specified font.
|
||||
Works for single as well as multi-line strings.
|
||||
"""
|
||||
return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)
|
||||
|
||||
|
@ -752,6 +752,12 @@ PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
|
||||
}
|
||||
|
||||
|
||||
wxLocale *new_wxLocale(int language,int flags){
|
||||
if (language == -1)
|
||||
return new wxLocale();
|
||||
else
|
||||
return new wxLocale(language, flags);
|
||||
}
|
||||
|
||||
#include "wx/wxPython/pydrawxxx.h"
|
||||
|
||||
@ -1004,9 +1010,9 @@ static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
|
||||
}
|
||||
static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
unsigned char arg1 = (unsigned char) 0 ;
|
||||
unsigned char arg2 = (unsigned char) 0 ;
|
||||
unsigned char arg3 = (unsigned char) 0 ;
|
||||
byte arg1 = (byte) 0 ;
|
||||
byte arg2 = (byte) 0 ;
|
||||
byte arg3 = (byte) 0 ;
|
||||
wxColour *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
@ -1017,15 +1023,15 @@ static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwar
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
|
||||
if (obj0) {
|
||||
arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
|
||||
arg1 = (byte) SWIG_AsUnsignedChar(obj0);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj1) {
|
||||
arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
|
||||
arg2 = (byte) SWIG_AsUnsignedChar(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
if (obj2) {
|
||||
arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
|
||||
arg3 = (byte) SWIG_AsUnsignedChar(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
@ -1134,7 +1140,7 @@ static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *k
|
||||
static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxColour *arg1 = (wxColour *) 0 ;
|
||||
unsigned char result;
|
||||
byte result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@ -1145,7 +1151,7 @@ static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwar
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (unsigned char)(arg1)->Red();
|
||||
result = (byte)(arg1)->Red();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -1160,7 +1166,7 @@ static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwar
|
||||
static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxColour *arg1 = (wxColour *) 0 ;
|
||||
unsigned char result;
|
||||
byte result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@ -1171,7 +1177,7 @@ static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kw
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (unsigned char)(arg1)->Green();
|
||||
result = (byte)(arg1)->Green();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -1186,7 +1192,7 @@ static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kw
|
||||
static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxColour *arg1 = (wxColour *) 0 ;
|
||||
unsigned char result;
|
||||
byte result;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
@ -1197,7 +1203,7 @@ static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwa
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (unsigned char)(arg1)->Blue();
|
||||
result = (byte)(arg1)->Blue();
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -1240,9 +1246,9 @@ static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwarg
|
||||
static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxColour *arg1 = (wxColour *) 0 ;
|
||||
unsigned char arg2 ;
|
||||
unsigned char arg3 ;
|
||||
unsigned char arg4 ;
|
||||
byte arg2 ;
|
||||
byte arg3 ;
|
||||
byte arg4 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
@ -1254,11 +1260,11 @@ static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwar
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
|
||||
arg2 = (byte) SWIG_AsUnsignedChar(obj1);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
|
||||
arg3 = (byte) SWIG_AsUnsignedChar(obj2);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
|
||||
arg4 = (byte) SWIG_AsUnsignedChar(obj3);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@ -9602,7 +9608,7 @@ static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
|
||||
}
|
||||
static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
int arg1 = (int) wxLANGUAGE_DEFAULT ;
|
||||
int arg1 = (int) -1 ;
|
||||
int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
|
||||
wxLocale *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
@ -9622,7 +9628,7 @@ static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwar
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxLocale *)new wxLocale(arg1,arg2);
|
||||
result = (wxLocale *)new_wxLocale(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
|
@ -2343,68 +2343,6 @@ class ArtProvider(object):
|
||||
...
|
||||
return bmp
|
||||
|
||||
|
||||
Identifying art resources
|
||||
-------------------------
|
||||
|
||||
Every bitmap is known to wx.ArtProvider under an unique ID that is
|
||||
used when requesting a resource from it. The IDs can have one of these
|
||||
predefined values:
|
||||
|
||||
* wx.ART_ADD_BOOKMARK
|
||||
* wx.ART_DEL_BOOKMARK
|
||||
* wx.ART_HELP_SIDE_PANEL
|
||||
* wx.ART_HELP_SETTINGS
|
||||
* wx.ART_HELP_BOOK
|
||||
* wx.ART_HELP_FOLDER
|
||||
* wx.ART_HELP_PAGE
|
||||
* wx.ART_GO_BACK
|
||||
* wx.ART_GO_FORWARD
|
||||
* wx.ART_GO_UP
|
||||
* wx.ART_GO_DOWN
|
||||
* wx.ART_GO_TO_PARENT
|
||||
* wx.ART_GO_HOME
|
||||
* wx.ART_FILE_OPEN
|
||||
* wx.ART_PRINT
|
||||
* wx.ART_HELP
|
||||
* wx.ART_TIP
|
||||
* wx.ART_REPORT_VIEW
|
||||
* wx.ART_LIST_VIEW
|
||||
* wx.ART_NEW_DIR
|
||||
* wx.ART_FOLDER
|
||||
* wx.ART_GO_DIR_UP
|
||||
* wx.ART_EXECUTABLE_FILE
|
||||
* wx.ART_NORMAL_FILE
|
||||
* wx.ART_TICK_MARK
|
||||
* wx.ART_CROSS_MARK
|
||||
* wx.ART_ERROR
|
||||
* wx.ART_QUESTION
|
||||
* wx.ART_WARNING
|
||||
* wx.ART_INFORMATION
|
||||
* wx.ART_MISSING_IMAGE
|
||||
|
||||
|
||||
Clients
|
||||
-------
|
||||
|
||||
The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
|
||||
`GetIcon` function. Client IDs server as a hint to wx.ArtProvider
|
||||
that is supposed to help it to choose the best looking bitmap. For
|
||||
example it is often desirable to use slightly different icons in menus
|
||||
and toolbars even though they represent the same action (e.g.
|
||||
wx.ART_FILE_OPEN). Remember that this is really only a hint for
|
||||
wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
|
||||
identical bitmap for different client values!
|
||||
|
||||
* wx.ART_TOOLBAR
|
||||
* wx.ART_MENU
|
||||
* wx.ART_FRAME_ICON
|
||||
* wx.ART_CMN_DIALOG
|
||||
* wx.ART_HELP_BROWSER
|
||||
* wx.ART_MESSAGE_BOX
|
||||
* wx.ART_OTHER (used for all requests that don't fit into any
|
||||
of the categories above)
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxPyArtProvider instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -2429,68 +2367,6 @@ class ArtProvider(object):
|
||||
...
|
||||
return bmp
|
||||
|
||||
|
||||
Identifying art resources
|
||||
-------------------------
|
||||
|
||||
Every bitmap is known to wx.ArtProvider under an unique ID that is
|
||||
used when requesting a resource from it. The IDs can have one of these
|
||||
predefined values:
|
||||
|
||||
* wx.ART_ADD_BOOKMARK
|
||||
* wx.ART_DEL_BOOKMARK
|
||||
* wx.ART_HELP_SIDE_PANEL
|
||||
* wx.ART_HELP_SETTINGS
|
||||
* wx.ART_HELP_BOOK
|
||||
* wx.ART_HELP_FOLDER
|
||||
* wx.ART_HELP_PAGE
|
||||
* wx.ART_GO_BACK
|
||||
* wx.ART_GO_FORWARD
|
||||
* wx.ART_GO_UP
|
||||
* wx.ART_GO_DOWN
|
||||
* wx.ART_GO_TO_PARENT
|
||||
* wx.ART_GO_HOME
|
||||
* wx.ART_FILE_OPEN
|
||||
* wx.ART_PRINT
|
||||
* wx.ART_HELP
|
||||
* wx.ART_TIP
|
||||
* wx.ART_REPORT_VIEW
|
||||
* wx.ART_LIST_VIEW
|
||||
* wx.ART_NEW_DIR
|
||||
* wx.ART_FOLDER
|
||||
* wx.ART_GO_DIR_UP
|
||||
* wx.ART_EXECUTABLE_FILE
|
||||
* wx.ART_NORMAL_FILE
|
||||
* wx.ART_TICK_MARK
|
||||
* wx.ART_CROSS_MARK
|
||||
* wx.ART_ERROR
|
||||
* wx.ART_QUESTION
|
||||
* wx.ART_WARNING
|
||||
* wx.ART_INFORMATION
|
||||
* wx.ART_MISSING_IMAGE
|
||||
|
||||
|
||||
Clients
|
||||
-------
|
||||
|
||||
The Client is the entity that calls wx.ArtProvider's `GetBitmap` or
|
||||
`GetIcon` function. Client IDs server as a hint to wx.ArtProvider
|
||||
that is supposed to help it to choose the best looking bitmap. For
|
||||
example it is often desirable to use slightly different icons in menus
|
||||
and toolbars even though they represent the same action (e.g.
|
||||
wx.ART_FILE_OPEN). Remember that this is really only a hint for
|
||||
wx.ArtProvider -- it is common that `wx.ArtProvider.GetBitmap` returns
|
||||
identical bitmap for different client values!
|
||||
|
||||
* wx.ART_TOOLBAR
|
||||
* wx.ART_MENU
|
||||
* wx.ART_FRAME_ICON
|
||||
* wx.ART_CMN_DIALOG
|
||||
* wx.ART_HELP_BROWSER
|
||||
* wx.ART_MESSAGE_BOX
|
||||
* wx.ART_OTHER (used for all requests that don't fit into any
|
||||
of the categories above)
|
||||
|
||||
"""
|
||||
newobj = _misc_.new_ArtProvider(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -2652,23 +2528,22 @@ CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS
|
||||
class ConfigBase(object):
|
||||
"""
|
||||
wx.ConfigBase class defines the basic interface of all config
|
||||
classes. It can not be used by itself (it is an abstract base
|
||||
class) and you will always use one of its derivations: wx.Config
|
||||
or wx.FileConfig.
|
||||
classes. It can not be used by itself (it is an abstract base class)
|
||||
and you will always use one of its derivations: wx.Config or
|
||||
wx.FileConfig.
|
||||
|
||||
wx.ConfigBase organizes the items in a tree-like structure,
|
||||
modeled after the Unix/Dos filesystem. There are groups that act
|
||||
like directories and entries, key/value pairs that act like
|
||||
files. There is always one current group given by the current
|
||||
path. As in the file system case, to specify a key in the config
|
||||
class you must use a path to it. Config classes also support the
|
||||
notion of the current group, which makes it possible to use
|
||||
relative paths.
|
||||
wx.ConfigBase organizes the items in a tree-like structure, modeled
|
||||
after the Unix/Dos filesystem. There are groups that act like
|
||||
directories and entries, key/value pairs that act like files. There
|
||||
is always one current group given by the current path. As in the file
|
||||
system case, to specify a key in the config class you must use a path
|
||||
to it. Config classes also support the notion of the current group,
|
||||
which makes it possible to use relative paths.
|
||||
|
||||
Keys are pairs "key_name = value" where value may be of string,
|
||||
integer floating point or boolean, you can not store binary data
|
||||
without first encoding it as a string. For performance reasons
|
||||
items should be kept small, no more than a couple kilobytes.
|
||||
without first encoding it as a string. For performance reasons items
|
||||
should be kept small, no more than a couple kilobytes.
|
||||
|
||||
"""
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
@ -2689,8 +2564,8 @@ class ConfigBase(object):
|
||||
"""
|
||||
Set(ConfigBase config) -> ConfigBase
|
||||
|
||||
Sets the global config object (the one returned by Get) and
|
||||
returns a reference to the previous global config object.
|
||||
Sets the global config object (the one returned by Get) and returns a
|
||||
reference to the previous global config object.
|
||||
"""
|
||||
return _misc_.ConfigBase_Set(*args, **kwargs)
|
||||
|
||||
@ -2719,7 +2594,8 @@ class ConfigBase(object):
|
||||
"""
|
||||
DontCreateOnDemand()
|
||||
|
||||
Should Get() try to create a new log object if there isn't a current one?
|
||||
Should Get() try to create a new log object if there isn't a current
|
||||
one?
|
||||
"""
|
||||
return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs)
|
||||
|
||||
@ -2728,9 +2604,9 @@ class ConfigBase(object):
|
||||
"""
|
||||
SetPath(self, String path)
|
||||
|
||||
Set current path: if the first character is '/', it's the absolute path,
|
||||
otherwise it's a relative path. '..' is supported. If the strPath
|
||||
doesn't exist it is created.
|
||||
Set current path: if the first character is '/', it's the absolute
|
||||
path, otherwise it's a relative path. '..' is supported. If the
|
||||
strPath doesn't exist it is created.
|
||||
"""
|
||||
return _misc_.ConfigBase_SetPath(*args, **kwargs)
|
||||
|
||||
@ -2746,10 +2622,10 @@ class ConfigBase(object):
|
||||
"""
|
||||
GetFirstGroup() -> (more, value, index)
|
||||
|
||||
Allows enumerating the subgroups in a config object. Returns
|
||||
a tuple containing a flag indicating there are more items, the
|
||||
name of the current item, and an index to pass to GetNextGroup to
|
||||
fetch the next item.
|
||||
Allows enumerating the subgroups in a config object. Returns a tuple
|
||||
containing a flag indicating there are more items, the name of the
|
||||
current item, and an index to pass to GetNextGroup to fetch the next
|
||||
item.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs)
|
||||
|
||||
@ -2757,10 +2633,10 @@ class ConfigBase(object):
|
||||
"""
|
||||
GetNextGroup(long index) -> (more, value, index)
|
||||
|
||||
Allows enumerating the subgroups in a config object. Returns
|
||||
a tuple containing a flag indicating there are more items, the
|
||||
name of the current item, and an index to pass to GetNextGroup to
|
||||
fetch the next item.
|
||||
Allows enumerating the subgroups in a config object. Returns a tuple
|
||||
containing a flag indicating there are more items, the name of the
|
||||
current item, and an index to pass to GetNextGroup to fetch the next
|
||||
item.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetNextGroup(*args, **kwargs)
|
||||
|
||||
@ -2769,8 +2645,8 @@ class ConfigBase(object):
|
||||
GetFirstEntry() -> (more, value, index)
|
||||
|
||||
Allows enumerating the entries in the current group in a config
|
||||
object. Returns a tuple containing a flag indicating there are
|
||||
more items, the name of the current item, and an index to pass to
|
||||
object. Returns a tuple containing a flag indicating there are more
|
||||
items, the name of the current item, and an index to pass to
|
||||
GetNextGroup to fetch the next item.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs)
|
||||
@ -2780,8 +2656,8 @@ class ConfigBase(object):
|
||||
GetNextEntry(long index) -> (more, value, index)
|
||||
|
||||
Allows enumerating the entries in the current group in a config
|
||||
object. Returns a tuple containing a flag indicating there are
|
||||
more items, the name of the current item, and an index to pass to
|
||||
object. Returns a tuple containing a flag indicating there are more
|
||||
items, the name of the current item, and an index to pass to
|
||||
GetNextGroup to fetch the next item.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetNextEntry(*args, **kwargs)
|
||||
@ -2790,8 +2666,8 @@ class ConfigBase(object):
|
||||
"""
|
||||
GetNumberOfEntries(self, bool recursive=False) -> size_t
|
||||
|
||||
Get the number of entries in the current group, with or
|
||||
without its subgroups.
|
||||
Get the number of entries in the current group, with or without its
|
||||
subgroups.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs)
|
||||
|
||||
@ -2799,8 +2675,8 @@ class ConfigBase(object):
|
||||
"""
|
||||
GetNumberOfGroups(self, bool recursive=False) -> size_t
|
||||
|
||||
Get the number of subgroups in the current group, with or
|
||||
without its subgroups.
|
||||
Get the number of subgroups in the current group, with or without its
|
||||
subgroups.
|
||||
"""
|
||||
return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs)
|
||||
|
||||
@ -2921,7 +2797,7 @@ class ConfigBase(object):
|
||||
"""
|
||||
RenameGroup(self, String oldName, String newName) -> bool
|
||||
|
||||
Rename aa group. Returns False on failure (probably because the new
|
||||
Rename a group. Returns False on failure (probably because the new
|
||||
name is already taken by an existing entry)
|
||||
"""
|
||||
return _misc_.ConfigBase_RenameGroup(*args, **kwargs)
|
||||
@ -2930,8 +2806,8 @@ class ConfigBase(object):
|
||||
"""
|
||||
DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
|
||||
|
||||
Deletes the specified entry and the group it belongs to if
|
||||
it was the last key in it and the second parameter is True
|
||||
Deletes the specified entry and the group it belongs to if it was the
|
||||
last key in it and the second parameter is True
|
||||
"""
|
||||
return _misc_.ConfigBase_DeleteEntry(*args, **kwargs)
|
||||
|
||||
@ -2956,8 +2832,9 @@ class ConfigBase(object):
|
||||
"""
|
||||
SetExpandEnvVars(self, bool doIt=True)
|
||||
|
||||
We can automatically expand environment variables in the config entries
|
||||
(this option is on by default, you can turn it on/off at any time)
|
||||
We can automatically expand environment variables in the config
|
||||
entries this option is on by default, you can turn it on/off at any
|
||||
time)
|
||||
"""
|
||||
return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs)
|
||||
|
||||
@ -3029,8 +2906,8 @@ def ConfigBase_Set(*args, **kwargs):
|
||||
"""
|
||||
ConfigBase_Set(ConfigBase config) -> ConfigBase
|
||||
|
||||
Sets the global config object (the one returned by Get) and
|
||||
returns a reference to the previous global config object.
|
||||
Sets the global config object (the one returned by Get) and returns a
|
||||
reference to the previous global config object.
|
||||
"""
|
||||
return _misc_.ConfigBase_Set(*args, **kwargs)
|
||||
|
||||
@ -3056,7 +2933,8 @@ def ConfigBase_DontCreateOnDemand(*args, **kwargs):
|
||||
"""
|
||||
ConfigBase_DontCreateOnDemand()
|
||||
|
||||
Should Get() try to create a new log object if there isn't a current one?
|
||||
Should Get() try to create a new log object if there isn't a current
|
||||
one?
|
||||
"""
|
||||
return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs)
|
||||
|
||||
@ -3121,10 +2999,10 @@ _misc_.FileConfig_swigregister(FileConfigPtr)
|
||||
|
||||
class ConfigPathChanger(object):
|
||||
"""
|
||||
A handy little class which changes current path to the path of
|
||||
given entry and restores it in the destructoir: so if you declare
|
||||
a local variable of this type, you work in the entry directory
|
||||
and the path is automatically restored when the function returns.
|
||||
A handy little class which changes current path to the path of given
|
||||
entry and restores it in the destructoir: so if you declare a local
|
||||
variable of this type, you work in the entry directory and the path is
|
||||
automatically restored when the function returns.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -3162,9 +3040,9 @@ def ExpandEnvVars(*args, **kwargs):
|
||||
ExpandEnvVars(String sz) -> String
|
||||
|
||||
Replace environment variables ($SOMETHING) with their values. The
|
||||
format is $VARNAME or ${VARNAME} where VARNAME contains
|
||||
alphanumeric characters and '_' only. '$' must be escaped ('\$')
|
||||
in order to be taken literally.
|
||||
format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
|
||||
characters and '_' only. '$' must be escaped ('\$') in order to be
|
||||
taken literally.
|
||||
"""
|
||||
return _misc_.ExpandEnvVars(*args, **kwargs)
|
||||
#---------------------------------------------------------------------------
|
||||
@ -3388,11 +3266,7 @@ class DateTime(object):
|
||||
|
||||
GetWeekDayName = staticmethod(GetWeekDayName)
|
||||
def GetAmPmStrings(*args, **kwargs):
|
||||
"""
|
||||
GetAmPmStrings() -> (am, pm)
|
||||
|
||||
Get the AM and PM strings in the current locale (may be empty)
|
||||
"""
|
||||
"""GetAmPmStrings() -> (am, pm)"""
|
||||
return _misc_.DateTime_GetAmPmStrings(*args, **kwargs)
|
||||
|
||||
GetAmPmStrings = staticmethod(GetAmPmStrings)
|
||||
@ -3866,11 +3740,7 @@ def DateTime_GetWeekDayName(*args, **kwargs):
|
||||
return _misc_.DateTime_GetWeekDayName(*args, **kwargs)
|
||||
|
||||
def DateTime_GetAmPmStrings(*args, **kwargs):
|
||||
"""
|
||||
GetAmPmStrings() -> (am, pm)
|
||||
|
||||
Get the AM and PM strings in the current locale (may be empty)
|
||||
"""
|
||||
"""GetAmPmStrings() -> (am, pm)"""
|
||||
return _misc_.DateTime_GetAmPmStrings(*args, **kwargs)
|
||||
|
||||
def DateTime_IsDSTApplicable(*args, **kwargs):
|
||||
@ -4398,14 +4268,11 @@ DF_MAX = _misc_.DF_MAX
|
||||
class DataFormat(object):
|
||||
"""
|
||||
A wx.DataFormat is an encapsulation of a platform-specific format
|
||||
handle which is used by the system for the clipboard and drag and
|
||||
drop operations. The applications are usually only interested in,
|
||||
for example, pasting data from the clipboard only if the data is
|
||||
in a format the program understands. A data format is is used to
|
||||
uniquely identify this format.
|
||||
|
||||
On the system level, a data format is usually just a number
|
||||
(CLIPFORMAT under Windows or Atom under X11, for example).
|
||||
handle which is used by the system for the clipboard and drag and drop
|
||||
operations. The applications are usually only interested in, for
|
||||
example, pasting data from the clipboard only if the data is in a
|
||||
format the program understands. A data format is is used to uniquely
|
||||
identify this format.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDataFormat instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -4413,9 +4280,8 @@ class DataFormat(object):
|
||||
"""
|
||||
__init__(self, int type) -> DataFormat
|
||||
|
||||
Constructs a data format object for one of the standard data
|
||||
formats or an empty data object (use SetType or SetId later in
|
||||
this case)
|
||||
Constructs a data format object for one of the standard data formats
|
||||
or an empty data object (use SetType or SetId later in this case)
|
||||
"""
|
||||
newobj = _misc_.new_DataFormat(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -4445,7 +4311,8 @@ class DataFormat(object):
|
||||
"""
|
||||
SetType(self, int format)
|
||||
|
||||
Sets the format to the given value, which should be one of wx.DF_XXX constants.
|
||||
Sets the format to the given value, which should be one of wx.DF_XXX
|
||||
constants.
|
||||
"""
|
||||
return _misc_.DataFormat_SetType(*args, **kwargs)
|
||||
|
||||
@ -4461,7 +4328,8 @@ class DataFormat(object):
|
||||
"""
|
||||
GetId(self) -> String
|
||||
|
||||
Returns the name of a custom format (this function will fail for a standard format).
|
||||
Returns the name of a custom format (this function will fail for a
|
||||
standard format).
|
||||
"""
|
||||
return _misc_.DataFormat_GetId(*args, **kwargs)
|
||||
|
||||
@ -4486,7 +4354,8 @@ def CustomDataFormat(*args, **kwargs):
|
||||
"""
|
||||
CustomDataFormat(String format) -> DataFormat
|
||||
|
||||
Constructs a data format object for a custom format identified by its name.
|
||||
Constructs a data format object for a custom format identified by its
|
||||
name.
|
||||
"""
|
||||
val = _misc_.new_CustomDataFormat(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
@ -5238,8 +5107,8 @@ class VideoMode(object):
|
||||
"""
|
||||
Matches(self, VideoMode other) -> bool
|
||||
|
||||
Returns true if this mode matches the other one in the sense that
|
||||
all non zero fields of the other mode have the same value in this
|
||||
Returns true if this mode matches the other one in the sense that all
|
||||
non zero fields of the other mode have the same value in this
|
||||
one (except for refresh which is allowed to have a greater value)
|
||||
"""
|
||||
return _misc_.VideoMode_Matches(*args, **kwargs)
|
||||
@ -5248,8 +5117,7 @@ class VideoMode(object):
|
||||
"""
|
||||
GetWidth(self) -> int
|
||||
|
||||
Returns the screen width in pixels (e.g. 640*480), 0 means
|
||||
unspecified
|
||||
Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
|
||||
"""
|
||||
return _misc_.VideoMode_GetWidth(*args, **kwargs)
|
||||
|
||||
@ -5266,8 +5134,8 @@ class VideoMode(object):
|
||||
"""
|
||||
GetDepth(self) -> int
|
||||
|
||||
Returns the screen's bits per pixel (e.g. 32), 1 is monochrome
|
||||
and 0 means unspecified/known
|
||||
Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
|
||||
means unspecified/known
|
||||
"""
|
||||
return _misc_.VideoMode_GetDepth(*args, **kwargs)
|
||||
|
||||
@ -5308,9 +5176,9 @@ class Display(object):
|
||||
"""
|
||||
__init__(self, size_t index=0) -> Display
|
||||
|
||||
Set up a Display instance with the specified display. The
|
||||
displays are numbered from 0 to GetCount() - 1, 0 is always the
|
||||
primary display and the only one which is always supported
|
||||
Set up a Display instance with the specified display. The displays
|
||||
are numbered from 0 to GetCount() - 1, 0 is always the primary display
|
||||
and the only one which is always supported
|
||||
"""
|
||||
newobj = _misc_.new_Display(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
@ -5335,8 +5203,8 @@ class Display(object):
|
||||
"""
|
||||
GetFromPoint(Point pt) -> int
|
||||
|
||||
Find the display where the given point lies, return wx.NOT_FOUND
|
||||
if it doesn't belong to any display
|
||||
Find the display where the given point lies, return wx.NOT_FOUND if it
|
||||
doesn't belong to any display
|
||||
"""
|
||||
return _misc_.Display_GetFromPoint(*args, **kwargs)
|
||||
|
||||
@ -5345,8 +5213,8 @@ class Display(object):
|
||||
"""
|
||||
GetFromWindow(Window window) -> int
|
||||
|
||||
Find the display where the given window lies, return wx.NOT_FOUND
|
||||
if it is not shown at all.
|
||||
Find the display where the given window lies, return wx.NOT_FOUND if
|
||||
it is not shown at all.
|
||||
"""
|
||||
return _misc_.Display_GetFromWindow(*args, **kwargs)
|
||||
|
||||
@ -5364,8 +5232,8 @@ class Display(object):
|
||||
"""
|
||||
GetGeometry(self) -> Rect
|
||||
|
||||
Returns the bounding rectangle of the display whose index was
|
||||
passed to the constructor.
|
||||
Returns the bounding rectangle of the display whose index was passed
|
||||
to the constructor.
|
||||
"""
|
||||
return _misc_.Display_GetGeometry(*args, **kwargs)
|
||||
|
||||
@ -5390,14 +5258,13 @@ class Display(object):
|
||||
"""
|
||||
GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
|
||||
|
||||
Enumerate all video modes supported by this display matching the
|
||||
given one (in the sense of VideoMode.Match()).
|
||||
Enumerate all video modes supported by this display matching the given
|
||||
one (in the sense of VideoMode.Match()).
|
||||
|
||||
As any mode matches the default value of the argument and there
|
||||
is always at least one video mode supported by display, the
|
||||
returned array is only empty for the default value of the
|
||||
argument if this function is not supported at all on this
|
||||
platform.
|
||||
As any mode matches the default value of the argument and there is
|
||||
always at least one video mode supported by display, the returned
|
||||
array is only empty for the default value of the argument if this
|
||||
function is not supported at all on this platform.
|
||||
"""
|
||||
return _misc_.Display_GetModes(*args, **kwargs)
|
||||
|
||||
@ -5446,8 +5313,8 @@ def Display_GetFromPoint(*args, **kwargs):
|
||||
"""
|
||||
Display_GetFromPoint(Point pt) -> int
|
||||
|
||||
Find the display where the given point lies, return wx.NOT_FOUND
|
||||
if it doesn't belong to any display
|
||||
Find the display where the given point lies, return wx.NOT_FOUND if it
|
||||
doesn't belong to any display
|
||||
"""
|
||||
return _misc_.Display_GetFromPoint(*args, **kwargs)
|
||||
|
||||
@ -5455,8 +5322,8 @@ def Display_GetFromWindow(*args, **kwargs):
|
||||
"""
|
||||
Display_GetFromWindow(Window window) -> int
|
||||
|
||||
Find the display where the given window lies, return wx.NOT_FOUND
|
||||
if it is not shown at all.
|
||||
Find the display where the given window lies, return wx.NOT_FOUND if
|
||||
it is not shown at all.
|
||||
"""
|
||||
return _misc_.Display_GetFromWindow(*args, **kwargs)
|
||||
|
||||
|
@ -798,7 +798,7 @@ public:
|
||||
int GetNumberJoysticks() { return -1; }
|
||||
int GetManufacturerId() { return -1; }
|
||||
int GetProductId() { return -1; }
|
||||
wxString GetProductName() { return ""; }
|
||||
wxString GetProductName() { return wxEmptyString; }
|
||||
int GetXMin() { return -1; }
|
||||
int GetYMin() { return -1; }
|
||||
int GetZMin() { return -1; }
|
||||
|
@ -36,8 +36,8 @@ class Panel(_core.Window):
|
||||
"""
|
||||
InitDialog(self)
|
||||
|
||||
Sends an EVT_INIT_DIALOG event, whose handler usually transfers
|
||||
data to the dialog via validators.
|
||||
Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
|
||||
to the dialog via validators.
|
||||
"""
|
||||
return _windows_.Panel_InitDialog(*args, **kwargs)
|
||||
|
||||
@ -45,15 +45,15 @@ class Panel(_core.Window):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -76,15 +76,15 @@ def Panel_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -139,11 +139,7 @@ class ScrolledWindow(Panel):
|
||||
return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs)
|
||||
|
||||
def GetScrollPixelsPerUnit(*args, **kwargs):
|
||||
"""
|
||||
GetScrollPixelsPerUnit() -> (xUnit, yUnit)
|
||||
|
||||
Get the size of one logical unit in physical units.
|
||||
"""
|
||||
"""GetScrollPixelsPerUnit() -> (xUnit, yUnit)"""
|
||||
return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs)
|
||||
|
||||
def EnableScrolling(*args, **kwargs):
|
||||
@ -151,11 +147,7 @@ class ScrolledWindow(Panel):
|
||||
return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs)
|
||||
|
||||
def GetViewStart(*args, **kwargs):
|
||||
"""
|
||||
GetViewStart() -> (x,y)
|
||||
|
||||
Get the view start
|
||||
"""
|
||||
"""GetViewStart() -> (x,y)"""
|
||||
return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs)
|
||||
|
||||
def SetScale(*args, **kwargs):
|
||||
@ -216,15 +208,15 @@ class ScrolledWindow(Panel):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -247,15 +239,15 @@ def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -485,15 +477,15 @@ class Frame(TopLevelWindow):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -516,15 +508,15 @@ def Frame_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -585,15 +577,15 @@ class Dialog(TopLevelWindow):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -616,15 +608,15 @@ def Dialog_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -804,15 +796,15 @@ class StatusBar(_core.Window):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -835,15 +827,15 @@ def StatusBar_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -865,10 +857,9 @@ SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
|
||||
SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
|
||||
class SplitterWindow(_core.Window):
|
||||
"""
|
||||
wx.SplitterWindow manages up to two subwindows or panes,
|
||||
with an optional vertical or horizontal split which can be
|
||||
used with the mouse or programmatically.
|
||||
|
||||
wx.SplitterWindow manages up to two subwindows or panes, with an
|
||||
optional vertical or horizontal split which can be used with the mouse
|
||||
or programmatically.
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -916,8 +907,8 @@ class SplitterWindow(_core.Window):
|
||||
SetSplitMode(self, int mode)
|
||||
|
||||
Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
|
||||
wx.SPLIT_HORIZONTAL. This only sets the internal variable;
|
||||
does not update the display.
|
||||
wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
|
||||
update the display.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs)
|
||||
|
||||
@ -933,9 +924,9 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
Initialize(self, Window window)
|
||||
|
||||
Initializes the splitter window to have one pane. This
|
||||
should be called if you wish to initially view only a single
|
||||
pane in the splitter window.
|
||||
Initializes the splitter window to have one pane. This should be
|
||||
called if you wish to initially view only a single pane in the
|
||||
splitter window.
|
||||
"""
|
||||
return _windows_.SplitterWindow_Initialize(*args, **kwargs)
|
||||
|
||||
@ -944,24 +935,6 @@ class SplitterWindow(_core.Window):
|
||||
SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the left and right panes of the splitter window.
|
||||
|
||||
window1 The left pane.
|
||||
window2 The right pane.
|
||||
sashPosition The initial position of the sash. If this
|
||||
value is positive, it specifies the size
|
||||
of the left pane. If it is negative, it is
|
||||
absolute value gives the size of the right
|
||||
pane. Finally, specify 0 (default) to
|
||||
choose the default position (half of the
|
||||
total window width).
|
||||
|
||||
Returns True if successful, False otherwise (the window was
|
||||
already split).
|
||||
|
||||
SplitVertically should be called if you wish to initially
|
||||
view two panes. It can also be called at any subsequent
|
||||
time, but the application should check that the window is
|
||||
not currently split using IsSplit.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
|
||||
|
||||
@ -970,24 +943,6 @@ class SplitterWindow(_core.Window):
|
||||
SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
|
||||
|
||||
Initializes the top and bottom panes of the splitter window.
|
||||
|
||||
window1 The top pane.
|
||||
window2 The bottom pane.
|
||||
sashPosition The initial position of the sash. If this
|
||||
value is positive, it specifies the size
|
||||
of the upper pane. If it is negative, it
|
||||
is absolute value gives the size of the
|
||||
lower pane. Finally, specify 0 (default)
|
||||
to choose the default position (half of
|
||||
the total window height).
|
||||
|
||||
Returns True if successful, False otherwise (the window was
|
||||
already split).
|
||||
|
||||
SplitHorizontally should be called if you wish to initially
|
||||
view two panes. It can also be called at any subsequent
|
||||
time, but the application should check that the window is
|
||||
not currently split using IsSplit.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs)
|
||||
|
||||
@ -995,9 +950,9 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
Unsplit(self, Window toRemove=None) -> bool
|
||||
|
||||
Unsplits the window. Pass the pane to remove, or None to
|
||||
remove the right or bottom pane. Returns True if
|
||||
successful, False otherwise (the window was not split).
|
||||
Unsplits the window. Pass the pane to remove, or None to remove the
|
||||
right or bottom pane. Returns True if successful, False otherwise (the
|
||||
window was not split).
|
||||
|
||||
This function will not actually delete the pane being
|
||||
removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
|
||||
@ -1011,18 +966,16 @@ class SplitterWindow(_core.Window):
|
||||
ReplaceWindow(self, Window winOld, Window winNew) -> bool
|
||||
|
||||
This function replaces one of the windows managed by the
|
||||
SplitterWindow with another one. It is in general better to
|
||||
use it instead of calling Unsplit() and then resplitting the
|
||||
window back because it will provoke much less flicker. It is
|
||||
valid to call this function whether the splitter has two
|
||||
windows or only one.
|
||||
SplitterWindow with another one. It is in general better to use it
|
||||
instead of calling Unsplit() and then resplitting the window back
|
||||
because it will provoke much less flicker. It is valid to call this
|
||||
function whether the splitter has two windows or only one.
|
||||
|
||||
Both parameters should be non-None and winOld must specify
|
||||
one of the windows managed by the splitter. If the
|
||||
parameters are incorrect or the window couldn't be replaced,
|
||||
False is returned. Otherwise the function will return True,
|
||||
but please notice that it will not Destroy the replaced
|
||||
window and you may wish to do it yourself.
|
||||
Both parameters should be non-None and winOld must specify one of the
|
||||
windows managed by the splitter. If the parameters are incorrect or
|
||||
the window couldn't be replaced, False is returned. Otherwise the
|
||||
function will return True, but please notice that it will not Destroy
|
||||
the replaced window and you may wish to do it yourself.
|
||||
"""
|
||||
return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs)
|
||||
|
||||
@ -1030,16 +983,15 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
UpdateSize(self)
|
||||
|
||||
Causes any pending sizing of the sash and child panes to
|
||||
take place immediately.
|
||||
Causes any pending sizing of the sash and child panes to take place
|
||||
immediately.
|
||||
|
||||
Such resizing normally takes place in idle time, in order to
|
||||
wait for layout to be completed. However, this can cause
|
||||
unacceptable flicker as the panes are resized after the
|
||||
window has been shown. To work around this, you can perform
|
||||
window layout (for example by sending a size event to the
|
||||
parent window), and then call this function, before showing
|
||||
the top-level window.
|
||||
Such resizing normally takes place in idle time, in order to wait for
|
||||
layout to be completed. However, this can cause unacceptable flicker
|
||||
as the panes are resized after the window has been shown. To work
|
||||
around this, you can perform window layout (for example by sending a
|
||||
size event to the parent window), and then call this function, before
|
||||
showing the top-level window.
|
||||
"""
|
||||
return _windows_.SplitterWindow_UpdateSize(*args, **kwargs)
|
||||
|
||||
@ -1087,8 +1039,8 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
SetSashPosition(self, int position, bool redraw=True)
|
||||
|
||||
Sets the sash position, in pixels. If redraw is Ttrue then
|
||||
the panes are resized and the sash and border are redrawn.
|
||||
Sets the sash position, in pixels. If redraw is Ttrue then the panes
|
||||
are resized and the sash and border are redrawn.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs)
|
||||
|
||||
@ -1106,13 +1058,12 @@ class SplitterWindow(_core.Window):
|
||||
|
||||
Sets the minimum pane size in pixels.
|
||||
|
||||
The default minimum pane size is zero, which means that
|
||||
either pane can be reduced to zero by dragging the sash,
|
||||
thus removing one of the panes. To prevent this behaviour (and
|
||||
veto out-of-range sash dragging), set a minimum size,
|
||||
for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
|
||||
used when a splitter window is created, the window may be
|
||||
unsplit even if minimum size is non-zero.
|
||||
The default minimum pane size is zero, which means that either pane
|
||||
can be reduced to zero by dragging the sash, thus removing one of the
|
||||
panes. To prevent this behaviour (and veto out-of-range sash
|
||||
dragging), set a minimum size, for example 20 pixels. If the
|
||||
wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
|
||||
the window may be unsplit even if minimum size is non-zero.
|
||||
"""
|
||||
return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs)
|
||||
|
||||
@ -1152,15 +1103,15 @@ class SplitterWindow(_core.Window):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -1188,15 +1139,15 @@ def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -1218,14 +1169,12 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
SetSashPosition(self, int pos)
|
||||
|
||||
This funciton is only meaningful during
|
||||
EVT_SPLITTER_SASH_POS_CHANGING and
|
||||
EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
|
||||
_CHANGED events, sets the the new sash position. In the case
|
||||
of _CHANGING events, sets the new tracking bar position so
|
||||
visual feedback during dragging will represent that change
|
||||
that will actually take place. Set to -1 from the event
|
||||
handler code to prevent repositioning.
|
||||
This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
|
||||
and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
|
||||
events, sets the the new sash position. In the case of _CHANGING
|
||||
events, sets the new tracking bar position so visual feedback during
|
||||
dragging will represent that change that will actually take place. Set
|
||||
to -1 from the event handler code to prevent repositioning.
|
||||
"""
|
||||
return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs)
|
||||
|
||||
@ -1233,9 +1182,8 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
GetSashPosition(self) -> int
|
||||
|
||||
Returns the new sash position while in
|
||||
EVT_SPLITTER_SASH_POS_CHANGING and
|
||||
EVT_SPLITTER_SASH_POS_CHANGED events.
|
||||
Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
|
||||
and EVT_SPLITTER_SASH_POS_CHANGED events.
|
||||
"""
|
||||
return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs)
|
||||
|
||||
@ -1243,8 +1191,8 @@ class SplitterEvent(_core.NotifyEvent):
|
||||
"""
|
||||
GetWindowBeingRemoved(self) -> Window
|
||||
|
||||
Returns a pointer to the window being removed when a
|
||||
splitter window is unsplit.
|
||||
Returns a pointer to the window being removed when a splitter window
|
||||
is unsplit.
|
||||
"""
|
||||
return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs)
|
||||
|
||||
@ -1814,7 +1762,7 @@ class VScrolledWindow(Panel):
|
||||
"""
|
||||
ScrollPages(self, int pages) -> bool
|
||||
|
||||
If the platform and window class supports it, scrolls the window by
|
||||
If the platform and window class supports it, scrolls the window by
|
||||
the given number of pages down, if pages is positive, or up if pages
|
||||
is negative. Returns True if the window was scrolled, False if it was
|
||||
already on top/bottom and nothing was done.
|
||||
@ -2274,17 +2222,6 @@ class DirDialog(Dialog):
|
||||
"""
|
||||
wx.DirDialog allows the user to select a directory by browising the
|
||||
file system.
|
||||
|
||||
|
||||
Window Styles
|
||||
--------------
|
||||
==================== ==========================================
|
||||
wx.DD_NEW_DIR_BUTTON Add 'Create new directory' button and allow
|
||||
directory names to be editable. On Windows
|
||||
the new directory button is only available
|
||||
with recent versions of the common dialogs.
|
||||
==================== ==========================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -2355,45 +2292,6 @@ class FileDialog(Dialog):
|
||||
"""
|
||||
wx.FileDialog allows the user to select one or more files from the
|
||||
filesystem.
|
||||
|
||||
In Windows, this is the common file selector dialog. On X based
|
||||
platforms a generic alternative is used. The path and filename are
|
||||
distinct elements of a full file pathname. If path is "", the
|
||||
current directory will be used. If filename is "", no default
|
||||
filename will be supplied. The wildcard determines what files are
|
||||
displayed in the file selector, and file extension supplies a type
|
||||
extension for the required filename.
|
||||
|
||||
Both the X and Windows versions implement a wildcard filter. Typing a
|
||||
filename containing wildcards (*, ?) in the filename text item, and
|
||||
clicking on Ok, will result in only those files matching the pattern
|
||||
being displayed. The wildcard may be a specification for multiple
|
||||
types of file with a description for each, such as::
|
||||
|
||||
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
|
||||
|
||||
|
||||
Window Styles
|
||||
--------------
|
||||
================== ==========================================
|
||||
wx.OPEN This is an open dialog.
|
||||
|
||||
wx.SAVE This is a save dialog.
|
||||
|
||||
wx.HIDE_READONLY For open dialog only: hide the checkbox
|
||||
allowing to open the file in read-only mode.
|
||||
|
||||
wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation
|
||||
if a file will be overwritten.
|
||||
|
||||
wx.MULTIPLE For open dialog only: allows selecting multiple
|
||||
files.
|
||||
|
||||
wx.CHANGE_DIR Change the current working directory to the
|
||||
directory where the file(s) chosen by the user
|
||||
are.
|
||||
================== ==========================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -2580,12 +2478,7 @@ class MultiChoiceDialog(Dialog):
|
||||
self._setOORInfo(self)
|
||||
|
||||
def SetSelections(*args, **kwargs):
|
||||
"""
|
||||
SetSelections(List selections)
|
||||
|
||||
Specify the items in the list that should be selected, using a list of
|
||||
integers.
|
||||
"""
|
||||
"""SetSelections(List selections)"""
|
||||
return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
|
||||
|
||||
def GetSelections(*args, **kwargs):
|
||||
@ -2890,27 +2783,6 @@ class MessageDialog(Dialog):
|
||||
"""
|
||||
This class provides a simple dialog that shows a single or multi-line
|
||||
message, with a choice of OK, Yes, No and/or Cancel buttons.
|
||||
|
||||
|
||||
Window Styles
|
||||
--------------
|
||||
================= =============================================
|
||||
wx.OK Show an OK button.
|
||||
wx.CANCEL Show a Cancel button.
|
||||
wx.YES_NO Show Yes and No buttons.
|
||||
wx.YES_DEFAULT Used with wxYES_NO, makes Yes button the
|
||||
default - which is the default behaviour.
|
||||
wx.NO_DEFAULT Used with wxYES_NO, makes No button the default.
|
||||
wx.ICON_EXCLAMATION Shows an exclamation mark icon.
|
||||
wx.ICON_HAND Shows an error icon.
|
||||
wx.ICON_ERROR Shows an error icon - the same as wxICON_HAND.
|
||||
wx.ICON_QUESTION Shows a question mark icon.
|
||||
wx.ICON_INFORMATION Shows an information (i) icon.
|
||||
wx.STAY_ON_TOP The message box stays on top of all other
|
||||
window, even those of the other applications
|
||||
(Windows only).
|
||||
================= =============================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -2940,34 +2812,6 @@ class ProgressDialog(Frame):
|
||||
"""
|
||||
A dialog that shows a short message and a progress bar. Optionally, it
|
||||
can display an ABORT button.
|
||||
|
||||
Window Styles
|
||||
--------------
|
||||
================= =============================================
|
||||
wx.PD_APP_MODAL Make the progress dialog modal. If this flag is
|
||||
not given, it is only "locally" modal -
|
||||
that is the input to the parent window is
|
||||
disabled, but not to the other ones.
|
||||
|
||||
wx.PD_AUTO_HIDE Causes the progress dialog to disappear from
|
||||
screen as soon as the maximum value of the
|
||||
progress meter has been reached.
|
||||
|
||||
wx.PD_CAN_ABORT This flag tells the dialog that it should have
|
||||
a "Cancel" button which the user may press. If
|
||||
this happens, the next call to Update() will
|
||||
return false.
|
||||
|
||||
wx.PD_ELAPSED_TIME This flag tells the dialog that it should show
|
||||
elapsed time (since creating the dialog).
|
||||
|
||||
wx.PD_ESTIMATED_TIME This flag tells the dialog that it should show
|
||||
estimated time.
|
||||
|
||||
wx.PD_REMAINING_TIME This flag tells the dialog that it should show
|
||||
remaining time.
|
||||
================= =============================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -3120,19 +2964,6 @@ class FindReplaceData(_core.Object):
|
||||
|
||||
Note that all SetXXX() methods may only be called before showing the
|
||||
dialog and calling them has no effect later.
|
||||
|
||||
Flags
|
||||
-----
|
||||
================ ===============================================
|
||||
wx.FR_DOWN Downward search/replace selected (otherwise,
|
||||
upwards)
|
||||
|
||||
wx.FR_WHOLEWORD Whole word search/replace selected
|
||||
|
||||
wx.FR_MATCHCASE Case sensitive search/replace selected
|
||||
(otherwise, case insensitive)
|
||||
================ ===============================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -3217,21 +3048,6 @@ class FindReplaceDialog(Dialog):
|
||||
that unlike for the other standard dialogs this one must have a parent
|
||||
window. Also note that there is no way to use this dialog in a modal
|
||||
way; it is always, by design and implementation, modeless.
|
||||
|
||||
|
||||
Window Styles
|
||||
-------------
|
||||
|
||||
===================== =========================================
|
||||
wx.FR_REPLACEDIALOG replace dialog (otherwise find dialog)
|
||||
|
||||
wx.FR_NOUPDOWN don't allow changing the search direction
|
||||
|
||||
wx.FR_NOMATCHCASE don't allow case sensitive searching
|
||||
|
||||
wx.FR_NOWHOLEWORD don't allow whole word searching
|
||||
===================== =========================================
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
|
@ -190,44 +190,6 @@ class CalendarCtrl(_core.Control):
|
||||
As the attributes are specified for each day, they may change when the
|
||||
month is changed, so you will often want to update them in an
|
||||
EVT_CALENDAR_MONTH event handler.
|
||||
|
||||
Window Styles
|
||||
-------------
|
||||
============================== ============================
|
||||
CAL_SUNDAY_FIRST Show Sunday as the first day
|
||||
in the week
|
||||
CAL_MONDAY_FIRST Show Monday as the first day
|
||||
in the week
|
||||
CAL_SHOW_HOLIDAYS Highlight holidays in the
|
||||
calendar
|
||||
CAL_NO_YEAR_CHANGE Disable the year changing
|
||||
CAL_NO_MONTH_CHANGE Disable the month (and,
|
||||
implicitly, the year) changing
|
||||
CAL_SHOW_SURROUNDING_WEEKS Show the neighbouring weeks in
|
||||
the previous and next months
|
||||
CAL_SEQUENTIAL_MONTH_SELECTION Use alternative, more compact,
|
||||
style for the month and year
|
||||
selection controls.
|
||||
|
||||
The default calendar style is CAL_SHOW_HOLIDAYS.
|
||||
|
||||
Events
|
||||
-------
|
||||
=========================== ==============================
|
||||
EVT_CALENDAR A day was double clicked in the
|
||||
calendar.
|
||||
EVT_CALENDAR_SEL_CHANGED The selected date changed.
|
||||
EVT_CALENDAR_DAY The selected day changed.
|
||||
EVT_CALENDAR_MONTH The selected month changed.
|
||||
EVT_CALENDAR_YEAR The selected year changed.
|
||||
EVT_CALENDAR_WEEKDAY_CLICKED User clicked on the week day
|
||||
header
|
||||
|
||||
Note that changing the selected date will result in one of
|
||||
EVT_CALENDAR_DAY, MONTH or YEAR events and an EVT_CALENDAR_SEL_CHANGED
|
||||
event.
|
||||
|
||||
|
||||
"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxCalendarCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
@ -462,15 +424,7 @@ class CalendarCtrl(_core.Control):
|
||||
|
||||
Returns 3-tuple with information about the given position on the
|
||||
calendar control. The first value of the tuple is a result code and
|
||||
determines the validity of the remaining two values. The result codes
|
||||
are:
|
||||
|
||||
=================== ============================================
|
||||
CAL_HITTEST_NOWHERE hit outside of anything
|
||||
CAL_HITTEST_HEADER hit on the header, weekday is valid
|
||||
CAL_HITTEST_DAY hit on a day in the calendar, date is set.
|
||||
=================== ============================================
|
||||
|
||||
determines the validity of the remaining two values.
|
||||
"""
|
||||
return _calendar.CalendarCtrl_HitTest(*args, **kwargs)
|
||||
|
||||
@ -494,15 +448,15 @@ class CalendarCtrl(_core.Control):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _calendar.CalendarCtrl_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -531,15 +485,15 @@ def CalendarCtrl_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
CalendarCtrl_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _calendar.CalendarCtrl_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
|
@ -1186,13 +1186,14 @@ class GridCellCoords(object):
|
||||
"""__ne__(self, GridCellCoords other) -> bool"""
|
||||
return _grid.GridCellCoords___ne__(*args, **kwargs)
|
||||
|
||||
def asTuple(*args, **kwargs):
|
||||
"""asTuple(self) -> PyObject"""
|
||||
return _grid.GridCellCoords_asTuple(*args, **kwargs)
|
||||
def Get(*args, **kwargs):
|
||||
"""Get(self) -> PyObject"""
|
||||
return _grid.GridCellCoords_Get(*args, **kwargs)
|
||||
|
||||
def __str__(self): return str(self.asTuple())
|
||||
def __repr__(self): return 'wxGridCellCoords'+str(self.asTuple())
|
||||
def __len__(self): return len(self.asTuple())
|
||||
asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
|
||||
def __str__(self): return str(self.Get())
|
||||
def __repr__(self): return 'wxGridCellCoords'+str(self.Get())
|
||||
def __len__(self): return len(self.Get())
|
||||
def __getitem__(self, index): return self.asTuple()[index]
|
||||
def __setitem__(self, index, val):
|
||||
if index == 0: self.SetRow(val)
|
||||
@ -1987,15 +1988,15 @@ class Grid(_windows.ScrolledWindow):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -2012,15 +2013,15 @@ def Grid_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
Grid_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _grid.Grid_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
|
@ -1409,7 +1409,7 @@ PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
|
||||
return list;
|
||||
}
|
||||
|
||||
PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
|
||||
PyObject *wxGridCellCoords_Get(wxGridCellCoords *self){
|
||||
PyObject* tup = PyTuple_New(2);
|
||||
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
|
||||
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
|
||||
@ -7981,7 +7981,7 @@ static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyO
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GridCellCoords_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
|
||||
PyObject *result;
|
||||
@ -7990,12 +7990,12 @@ static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, Py
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_Get",kwnames,&obj0)) goto fail;
|
||||
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridCellCoords,
|
||||
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (PyObject *)wxGridCellCoords_asTuple(arg1);
|
||||
result = (PyObject *)wxGridCellCoords_Get(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
@ -15697,7 +15697,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GridCellCoords_Get", (PyCFunction) _wrap_GridCellCoords_Get, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
|
||||
{ (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -1093,15 +1093,15 @@ class HtmlWindow(_windows.ScrolledWindow):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
@ -1128,15 +1128,15 @@ def HtmlWindow_GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
HtmlWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
|
||||
Get the default attributes for this class. This is useful if
|
||||
you want to use the same font or colour in your own control as
|
||||
in a standard control -- which is a much better idea than hard
|
||||
coding specific colours or fonts which might look completely out
|
||||
of place on the users system, especially if it uses themes.
|
||||
Get the default attributes for this class. This is useful if you want
|
||||
to use the same font or colour in your own control as in a standard
|
||||
control -- which is a much better idea than hard coding specific
|
||||
colours or fonts which might look completely out of place on the users
|
||||
system, especially if it uses themes.
|
||||
|
||||
The variant parameter is only relevant under Mac currently and is
|
||||
ignore under other platforms. Under Mac, it will change the size of the
|
||||
returned font. See SetWindowVariant for more about this.
|
||||
ignore under other platforms. Under Mac, it will change the size of
|
||||
the returned font. See SetWindowVariant for more about this.
|
||||
"""
|
||||
return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user