X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/50efceee4e8b2e3c26f6a2b0d2bdecc36de7b61b..7e664d85e6512d807ce2eb186ed9e0bbd60d6e8b:/wxPython/src/msw/_core.py diff --git a/wxPython/src/msw/_core.py b/wxPython/src/msw/_core.py index 1377f5452d..5bebbd6c9b 100644 --- a/wxPython/src/msw/_core.py +++ b/wxPython/src/msw/_core.py @@ -102,6 +102,7 @@ CENTRE_ON_SCREEN = _core_.CENTRE_ON_SCREEN CENTER_ON_SCREEN = _core_.CENTER_ON_SCREEN CLIP_CHILDREN = _core_.CLIP_CHILDREN CLIP_SIBLINGS = _core_.CLIP_SIBLINGS +WINDOW_STYLE_MASK = _core_.WINDOW_STYLE_MASK ALWAYS_SHOW_SB = _core_.ALWAYS_SHOW_SB RETAINED = _core_.RETAINED BACKINGSTORE = _core_.BACKINGSTORE @@ -271,13 +272,6 @@ ID_ZOOM_OUT = _core_.ID_ZOOM_OUT ID_UNDELETE = _core_.ID_UNDELETE ID_REVERT_TO_SAVED = _core_.ID_REVERT_TO_SAVED ID_HIGHEST = _core_.ID_HIGHEST -OPEN = _core_.OPEN -SAVE = _core_.SAVE -HIDE_READONLY = _core_.HIDE_READONLY -OVERWRITE_PROMPT = _core_.OVERWRITE_PROMPT -FILE_MUST_EXIST = _core_.FILE_MUST_EXIST -MULTIPLE = _core_.MULTIPLE -CHANGE_DIR = _core_.CHANGE_DIR ACCEL_ALT = _core_.ACCEL_ALT ACCEL_CTRL = _core_.ACCEL_CTRL ACCEL_SHIFT = _core_.ACCEL_SHIFT @@ -290,8 +284,6 @@ PD_ESTIMATED_TIME = _core_.PD_ESTIMATED_TIME PD_REMAINING_TIME = _core_.PD_REMAINING_TIME PD_SMOOTH = _core_.PD_SMOOTH PD_CAN_SKIP = _core_.PD_CAN_SKIP -DD_NEW_DIR_BUTTON = _core_.DD_NEW_DIR_BUTTON -DD_DEFAULT_STYLE = _core_.DD_DEFAULT_STYLE MENU_TEAROFF = _core_.MENU_TEAROFF MB_DOCKABLE = _core_.MB_DOCKABLE NO_FULL_REPAINT_ON_RESIZE = _core_.NO_FULL_REPAINT_ON_RESIZE @@ -721,8 +713,7 @@ class Object(object): args[0].thisown = 0 return val -Object_swigregister = _core_.Object_swigregister -Object_swigregister(Object) +_core_.Object_swigregister(Object) _wxPySetDictionary = _core_._wxPySetDictionary cvar = _core_.cvar EmptyString = cvar.EmptyString @@ -915,8 +906,7 @@ class Size(object): __safe_for_unpickling__ = True def __reduce__(self): return (wx.Size, self.Get()) -Size_swigregister = _core_.Size_swigregister -Size_swigregister(Size) +_core_.Size_swigregister(Size) #--------------------------------------------------------------------------- @@ -1000,8 +990,7 @@ class RealPoint(object): __safe_for_unpickling__ = True def __reduce__(self): return (wx.RealPoint, self.Get()) -RealPoint_swigregister = _core_.RealPoint_swigregister -RealPoint_swigregister(RealPoint) +_core_.RealPoint_swigregister(RealPoint) #--------------------------------------------------------------------------- @@ -1101,8 +1090,7 @@ class Point(object): __safe_for_unpickling__ = True def __reduce__(self): return (wx.Point, self.Get()) -Point_swigregister = _core_.Point_swigregister -Point_swigregister(Point) +_core_.Point_swigregister(Point) #--------------------------------------------------------------------------- @@ -1400,8 +1388,7 @@ class Rect(object): __safe_for_unpickling__ = True def __reduce__(self): return (wx.Rect, self.Get()) -Rect_swigregister = _core_.Rect_swigregister -Rect_swigregister(Rect) +_core_.Rect_swigregister(Rect) def RectPP(*args, **kwargs): """ @@ -1575,8 +1562,7 @@ class Point2D(object): __safe_for_unpickling__ = True def __reduce__(self): return (wx.Point2D, self.Get()) -Point2D_swigregister = _core_.Point2D_swigregister -Point2D_swigregister(Point2D) +_core_.Point2D_swigregister(Point2D) def Point2DCopy(*args, **kwargs): """ @@ -1674,8 +1660,7 @@ class InputStream(object): """TellI(self) -> long""" return _core_.InputStream_TellI(*args, **kwargs) -InputStream_swigregister = _core_.InputStream_swigregister -InputStream_swigregister(InputStream) +_core_.InputStream_swigregister(InputStream) DefaultPosition = cvar.DefaultPosition DefaultSize = cvar.DefaultSize @@ -1692,8 +1677,7 @@ class OutputStream(object): """LastWrite(self) -> size_t""" return _core_.OutputStream_LastWrite(*args, **kwargs) -OutputStream_swigregister = _core_.OutputStream_swigregister -OutputStream_swigregister(OutputStream) +_core_.OutputStream_swigregister(OutputStream) #--------------------------------------------------------------------------- @@ -1707,8 +1691,6 @@ class FSFile(Object): DateTime modif) -> FSFile """ _core_.FSFile_swiginit(self,_core_.new_FSFile(*args, **kwargs)) - self.thisown = 0 # It will normally be deleted by the user of the wx.FileSystem - __swig_destroy__ = _core_.delete_FSFile __del__ = lambda self : None; def GetStream(*args, **kwargs): @@ -1731,8 +1713,7 @@ class FSFile(Object): """GetModificationTime(self) -> DateTime""" return _core_.FSFile_GetModificationTime(*args, **kwargs) -FSFile_swigregister = _core_.FSFile_swigregister -FSFile_swigregister(FSFile) +_core_.FSFile_swigregister(FSFile) class CPPFileSystemHandler(object): """Proxy of C++ CPPFileSystemHandler class""" @@ -1741,8 +1722,7 @@ class CPPFileSystemHandler(object): __repr__ = _swig_repr __swig_destroy__ = _core_.delete_CPPFileSystemHandler __del__ = lambda self : None; -CPPFileSystemHandler_swigregister = _core_.CPPFileSystemHandler_swigregister -CPPFileSystemHandler_swigregister(CPPFileSystemHandler) +_core_.CPPFileSystemHandler_swigregister(CPPFileSystemHandler) class FileSystemHandler(CPPFileSystemHandler): """Proxy of C++ FileSystemHandler class""" @@ -1793,8 +1773,7 @@ class FileSystemHandler(CPPFileSystemHandler): """GetMimeTypeFromExt(self, String location) -> String""" return _core_.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) -FileSystemHandler_swigregister = _core_.FileSystemHandler_swigregister -FileSystemHandler_swigregister(FileSystemHandler) +_core_.FileSystemHandler_swigregister(FileSystemHandler) class FileSystem(Object): """Proxy of C++ FileSystem class""" @@ -1845,8 +1824,7 @@ class FileSystem(Object): return _core_.FileSystem_URLToFileName(*args, **kwargs) URLToFileName = staticmethod(URLToFileName) -FileSystem_swigregister = _core_.FileSystem_swigregister -FileSystem_swigregister(FileSystem) +_core_.FileSystem_swigregister(FileSystem) def FileSystem_AddHandler(*args, **kwargs): """FileSystem_AddHandler(CPPFileSystemHandler handler)""" @@ -1879,8 +1857,7 @@ class InternetFSHandler(CPPFileSystemHandler): """OpenFile(self, FileSystem fs, String location) -> FSFile""" return _core_.InternetFSHandler_OpenFile(*args, **kwargs) -InternetFSHandler_swigregister = _core_.InternetFSHandler_swigregister -InternetFSHandler_swigregister(InternetFSHandler) +_core_.InternetFSHandler_swigregister(InternetFSHandler) class ZipFSHandler(CPPFileSystemHandler): """Proxy of C++ ZipFSHandler class""" @@ -1905,8 +1882,7 @@ class ZipFSHandler(CPPFileSystemHandler): """FindNext(self) -> String""" return _core_.ZipFSHandler_FindNext(*args, **kwargs) -ZipFSHandler_swigregister = _core_.ZipFSHandler_swigregister -ZipFSHandler_swigregister(ZipFSHandler) +_core_.ZipFSHandler_swigregister(ZipFSHandler) def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): @@ -1966,8 +1942,7 @@ class MemoryFSHandler(CPPFileSystemHandler): """FindNext(self) -> String""" return _core_.MemoryFSHandler_FindNext(*args, **kwargs) -MemoryFSHandler_swigregister = _core_.MemoryFSHandler_swigregister -MemoryFSHandler_swigregister(MemoryFSHandler) +_core_.MemoryFSHandler_swigregister(MemoryFSHandler) def MemoryFSHandler_RemoveFile(*args, **kwargs): """MemoryFSHandler_RemoveFile(String filename)""" @@ -2007,6 +1982,10 @@ class ImageHandler(Object): """CanRead(self, String name) -> bool""" return _core_.ImageHandler_CanRead(*args, **kwargs) + def CanReadStream(*args, **kwargs): + """CanReadStream(self, InputStream stream) -> bool""" + return _core_.ImageHandler_CanReadStream(*args, **kwargs) + def SetName(*args, **kwargs): """SetName(self, String name)""" return _core_.ImageHandler_SetName(*args, **kwargs) @@ -2023,8 +2002,7 @@ class ImageHandler(Object): """SetMimeType(self, String mimetype)""" return _core_.ImageHandler_SetMimeType(*args, **kwargs) -ImageHandler_swigregister = _core_.ImageHandler_swigregister -ImageHandler_swigregister(ImageHandler) +_core_.ImageHandler_swigregister(ImageHandler) class PyImageHandler(ImageHandler): """ @@ -2089,8 +2067,7 @@ class PyImageHandler(ImageHandler): """_SetSelf(self, PyObject self)""" return _core_.PyImageHandler__SetSelf(*args, **kwargs) -PyImageHandler_swigregister = _core_.PyImageHandler_swigregister -PyImageHandler_swigregister(PyImageHandler) +_core_.PyImageHandler_swigregister(PyImageHandler) class ImageHistogram(object): """Proxy of C++ ImageHistogram class""" @@ -2143,8 +2120,7 @@ class ImageHistogram(object): """ return _core_.ImageHistogram_GetCountColour(*args, **kwargs) -ImageHistogram_swigregister = _core_.ImageHistogram_swigregister -ImageHistogram_swigregister(ImageHistogram) +_core_.ImageHistogram_swigregister(ImageHistogram) def ImageHistogram_MakeKey(*args, **kwargs): """ @@ -2173,8 +2149,7 @@ class Image_RGBValue(object): red = property(_core_.Image_RGBValue_red_get, _core_.Image_RGBValue_red_set) green = property(_core_.Image_RGBValue_green_get, _core_.Image_RGBValue_green_set) blue = property(_core_.Image_RGBValue_blue_get, _core_.Image_RGBValue_blue_set) -Image_RGBValue_swigregister = _core_.Image_RGBValue_swigregister -Image_RGBValue_swigregister(Image_RGBValue) +_core_.Image_RGBValue_swigregister(Image_RGBValue) class Image_HSVValue(object): """ @@ -2195,8 +2170,7 @@ class Image_HSVValue(object): hue = property(_core_.Image_HSVValue_hue_get, _core_.Image_HSVValue_hue_set) saturation = property(_core_.Image_HSVValue_saturation_get, _core_.Image_HSVValue_saturation_set) value = property(_core_.Image_HSVValue_value_get, _core_.Image_HSVValue_value_set) -Image_HSVValue_swigregister = _core_.Image_HSVValue_swigregister -Image_HSVValue_swigregister(Image_HSVValue) +_core_.Image_HSVValue_swigregister(Image_HSVValue) class Image(Object): """ @@ -2913,8 +2887,7 @@ class Image(Object): HSVtoRGB = staticmethod(HSVtoRGB) def __nonzero__(self): return self.Ok() -Image_swigregister = _core_.Image_swigregister -Image_swigregister(Image) +_core_.Image_swigregister(Image) def ImageFromMime(*args, **kwargs): """ @@ -3090,8 +3063,7 @@ class BMPHandler(ImageHandler): A `wx.ImageHandler` for \*.bmp bitmap files. """ _core_.BMPHandler_swiginit(self,_core_.new_BMPHandler(*args, **kwargs)) -BMPHandler_swigregister = _core_.BMPHandler_swigregister -BMPHandler_swigregister(BMPHandler) +_core_.BMPHandler_swigregister(BMPHandler) NullImage = cvar.NullImage IMAGE_OPTION_FILENAME = cvar.IMAGE_OPTION_FILENAME IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT @@ -3120,8 +3092,7 @@ class ICOHandler(BMPHandler): A `wx.ImageHandler` for \*.ico icon files. """ _core_.ICOHandler_swiginit(self,_core_.new_ICOHandler(*args, **kwargs)) -ICOHandler_swigregister = _core_.ICOHandler_swigregister -ICOHandler_swigregister(ICOHandler) +_core_.ICOHandler_swigregister(ICOHandler) class CURHandler(ICOHandler): """A `wx.ImageHandler` for \*.cur cursor files.""" @@ -3134,8 +3105,7 @@ class CURHandler(ICOHandler): A `wx.ImageHandler` for \*.cur cursor files. """ _core_.CURHandler_swiginit(self,_core_.new_CURHandler(*args, **kwargs)) -CURHandler_swigregister = _core_.CURHandler_swigregister -CURHandler_swigregister(CURHandler) +_core_.CURHandler_swigregister(CURHandler) class ANIHandler(CURHandler): """A `wx.ImageHandler` for \*.ani animated cursor files.""" @@ -3148,8 +3118,7 @@ class ANIHandler(CURHandler): A `wx.ImageHandler` for \*.ani animated cursor files. """ _core_.ANIHandler_swiginit(self,_core_.new_ANIHandler(*args, **kwargs)) -ANIHandler_swigregister = _core_.ANIHandler_swigregister -ANIHandler_swigregister(ANIHandler) +_core_.ANIHandler_swigregister(ANIHandler) class PNGHandler(ImageHandler): """A `wx.ImageHandler` for PNG image files.""" @@ -3162,8 +3131,7 @@ class PNGHandler(ImageHandler): A `wx.ImageHandler` for PNG image files. """ _core_.PNGHandler_swiginit(self,_core_.new_PNGHandler(*args, **kwargs)) -PNGHandler_swigregister = _core_.PNGHandler_swigregister -PNGHandler_swigregister(PNGHandler) +_core_.PNGHandler_swigregister(PNGHandler) class GIFHandler(ImageHandler): """A `wx.ImageHandler` for GIF image files.""" @@ -3176,8 +3144,7 @@ class GIFHandler(ImageHandler): A `wx.ImageHandler` for GIF image files. """ _core_.GIFHandler_swiginit(self,_core_.new_GIFHandler(*args, **kwargs)) -GIFHandler_swigregister = _core_.GIFHandler_swigregister -GIFHandler_swigregister(GIFHandler) +_core_.GIFHandler_swigregister(GIFHandler) class PCXHandler(ImageHandler): """A `wx.ImageHandler` for PCX imager files.""" @@ -3190,8 +3157,7 @@ class PCXHandler(ImageHandler): A `wx.ImageHandler` for PCX imager files. """ _core_.PCXHandler_swiginit(self,_core_.new_PCXHandler(*args, **kwargs)) -PCXHandler_swigregister = _core_.PCXHandler_swigregister -PCXHandler_swigregister(PCXHandler) +_core_.PCXHandler_swigregister(PCXHandler) class JPEGHandler(ImageHandler): """A `wx.ImageHandler` for JPEG/JPG image files.""" @@ -3204,8 +3170,7 @@ class JPEGHandler(ImageHandler): A `wx.ImageHandler` for JPEG/JPG image files. """ _core_.JPEGHandler_swiginit(self,_core_.new_JPEGHandler(*args, **kwargs)) -JPEGHandler_swigregister = _core_.JPEGHandler_swigregister -JPEGHandler_swigregister(JPEGHandler) +_core_.JPEGHandler_swigregister(JPEGHandler) class PNMHandler(ImageHandler): """A `wx.ImageHandler` for PNM image files.""" @@ -3218,8 +3183,7 @@ class PNMHandler(ImageHandler): A `wx.ImageHandler` for PNM image files. """ _core_.PNMHandler_swiginit(self,_core_.new_PNMHandler(*args, **kwargs)) -PNMHandler_swigregister = _core_.PNMHandler_swigregister -PNMHandler_swigregister(PNMHandler) +_core_.PNMHandler_swigregister(PNMHandler) class XPMHandler(ImageHandler): """A `wx.ImageHandler` for XPM image.""" @@ -3232,8 +3196,7 @@ class XPMHandler(ImageHandler): A `wx.ImageHandler` for XPM image. """ _core_.XPMHandler_swiginit(self,_core_.new_XPMHandler(*args, **kwargs)) -XPMHandler_swigregister = _core_.XPMHandler_swigregister -XPMHandler_swigregister(XPMHandler) +_core_.XPMHandler_swigregister(XPMHandler) class TIFFHandler(ImageHandler): """A `wx.ImageHandler` for TIFF image files.""" @@ -3246,8 +3209,7 @@ class TIFFHandler(ImageHandler): A `wx.ImageHandler` for TIFF image files. """ _core_.TIFFHandler_swiginit(self,_core_.new_TIFFHandler(*args, **kwargs)) -TIFFHandler_swigregister = _core_.TIFFHandler_swigregister -TIFFHandler_swigregister(TIFFHandler) +_core_.TIFFHandler_swigregister(TIFFHandler) QUANTIZE_INCLUDE_WINDOWS_COLOURS = _core_.QUANTIZE_INCLUDE_WINDOWS_COLOURS QUANTIZE_FILL_DESTINATION_IMAGE = _core_.QUANTIZE_FILL_DESTINATION_IMAGE @@ -3267,8 +3229,7 @@ class Quantize(object): return _core_.Quantize_Quantize(*args, **kwargs) Quantize = staticmethod(Quantize) -Quantize_swigregister = _core_.Quantize_swigregister -Quantize_swigregister(Quantize) +_core_.Quantize_swigregister(Quantize) def Quantize_Quantize(*args, **kwargs): """ @@ -3330,7 +3291,7 @@ class EvtHandler(Object): return _core_.EvtHandler_Connect(*args, **kwargs) def Disconnect(*args, **kwargs): - """Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" + """Disconnect(self, int id, int lastId=-1, EventType eventType=wxEVT_NULL) -> bool""" return _core_.EvtHandler_Disconnect(*args, **kwargs) def _setOORInfo(*args, **kwargs): @@ -3378,8 +3339,7 @@ class EvtHandler(Object): id = source.GetId() return event.Unbind(self, id, id2) -EvtHandler_swigregister = _core_.EvtHandler_swigregister -EvtHandler_swigregister(EvtHandler) +_core_.EvtHandler_swigregister(EvtHandler) #--------------------------------------------------------------------------- @@ -3454,7 +3414,7 @@ EVENT_PROPAGATE_NONE = _core_.EVENT_PROPAGATE_NONE EVENT_PROPAGATE_MAX = _core_.EVENT_PROPAGATE_MAX def NewEventType(*args): - """NewEventType() -> wxEventType""" + """NewEventType() -> EventType""" return _core_.NewEventType(*args) wxEVT_NULL = _core_.wxEVT_NULL wxEVT_FIRST = _core_.wxEVT_FIRST @@ -3534,7 +3494,6 @@ wxEVT_CLOSE_WINDOW = _core_.wxEVT_CLOSE_WINDOW wxEVT_END_SESSION = _core_.wxEVT_END_SESSION wxEVT_QUERY_END_SESSION = _core_.wxEVT_QUERY_END_SESSION wxEVT_ACTIVATE_APP = _core_.wxEVT_ACTIVATE_APP -wxEVT_POWER = _core_.wxEVT_POWER wxEVT_ACTIVATE = _core_.wxEVT_ACTIVATE wxEVT_CREATE = _core_.wxEVT_CREATE wxEVT_DESTROY = _core_.wxEVT_DESTROY @@ -3565,6 +3524,9 @@ wxEVT_UPDATE_UI = _core_.wxEVT_UPDATE_UI wxEVT_SIZING = _core_.wxEVT_SIZING wxEVT_MOVING = _core_.wxEVT_MOVING wxEVT_HIBERNATE = _core_.wxEVT_HIBERNATE +wxEVT_COMMAND_TEXT_COPY = _core_.wxEVT_COMMAND_TEXT_COPY +wxEVT_COMMAND_TEXT_CUT = _core_.wxEVT_COMMAND_TEXT_CUT +wxEVT_COMMAND_TEXT_PASTE = _core_.wxEVT_COMMAND_TEXT_PASTE wxEVT_COMMAND_LEFT_CLICK = _core_.wxEVT_COMMAND_LEFT_CLICK wxEVT_COMMAND_LEFT_DCLICK = _core_.wxEVT_COMMAND_LEFT_DCLICK wxEVT_COMMAND_RIGHT_CLICK = _core_.wxEVT_COMMAND_RIGHT_CLICK @@ -3587,7 +3549,7 @@ EVT_ERASE_BACKGROUND = wx.PyEventBinder( wxEVT_ERASE_BACKGROUND ) EVT_CHAR = wx.PyEventBinder( wxEVT_CHAR ) EVT_KEY_DOWN = wx.PyEventBinder( wxEVT_KEY_DOWN ) EVT_KEY_UP = wx.PyEventBinder( wxEVT_KEY_UP ) -EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) +EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) EVT_CHAR_HOOK = wx.PyEventBinder( wxEVT_CHAR_HOOK ) EVT_MENU_OPEN = wx.PyEventBinder( wxEVT_MENU_OPEN ) EVT_MENU_CLOSE = wx.PyEventBinder( wxEVT_MENU_CLOSE ) @@ -3598,7 +3560,7 @@ EVT_KILL_FOCUS = wx.PyEventBinder( wxEVT_KILL_FOCUS ) EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS ) EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE ) EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP ) -EVT_HIBERNATE = wx.PyEventBinder( wxEVT_HIBERNATE ) +EVT_HIBERNATE = wx.PyEventBinder( wxEVT_HIBERNATE ) EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES ) @@ -3647,11 +3609,11 @@ EVT_MOUSE_EVENTS = wx.PyEventBinder([ wxEVT_LEFT_DOWN, # Scrolling from wxWindow (sent to wxScrolledWindow) -EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, +EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, wxEVT_SCROLLWIN_BOTTOM, wxEVT_SCROLLWIN_LINEUP, wxEVT_SCROLLWIN_LINEDOWN, - wxEVT_SCROLLWIN_PAGEUP, + wxEVT_SCROLLWIN_PAGEUP, wxEVT_SCROLLWIN_PAGEDOWN, wxEVT_SCROLLWIN_THUMBTRACK, wxEVT_SCROLLWIN_THUMBRELEASE, @@ -3667,14 +3629,14 @@ EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK ) EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE ) # Scrolling from wx.Slider and wx.ScrollBar -EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, - wxEVT_SCROLL_THUMBRELEASE, +EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, + wxEVT_SCROLL_BOTTOM, + wxEVT_SCROLL_LINEUP, + wxEVT_SCROLL_LINEDOWN, + wxEVT_SCROLL_PAGEUP, + wxEVT_SCROLL_PAGEDOWN, + wxEVT_SCROLL_THUMBTRACK, + wxEVT_SCROLL_THUMBRELEASE, wxEVT_SCROLL_CHANGED, ]) @@ -3688,15 +3650,15 @@ EVT_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK ) EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE ) EVT_SCROLL_CHANGED = wx.PyEventBinder( wxEVT_SCROLL_CHANGED ) EVT_SCROLL_ENDSCROLL = EVT_SCROLL_CHANGED - + # Scrolling from wx.Slider and wx.ScrollBar, with an id -EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, - wxEVT_SCROLL_BOTTOM, - wxEVT_SCROLL_LINEUP, - wxEVT_SCROLL_LINEDOWN, - wxEVT_SCROLL_PAGEUP, - wxEVT_SCROLL_PAGEDOWN, - wxEVT_SCROLL_THUMBTRACK, +EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, + wxEVT_SCROLL_BOTTOM, + wxEVT_SCROLL_LINEUP, + wxEVT_SCROLL_LINEDOWN, + wxEVT_SCROLL_PAGEUP, + wxEVT_SCROLL_PAGEDOWN, + wxEVT_SCROLL_THUMBTRACK, wxEVT_SCROLL_THUMBRELEASE, wxEVT_SCROLL_CHANGED, ], 1) @@ -3749,6 +3711,9 @@ EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) +EVT_TEXT_CUT = wx.PyEventBinder( wxEVT_COMMAND_TEXT_CUT ) +EVT_TEXT_COPY = wx.PyEventBinder( wxEVT_COMMAND_TEXT_COPY ) +EVT_TEXT_PASTE = wx.PyEventBinder( wxEVT_COMMAND_TEXT_PASTE ) #--------------------------------------------------------------------------- @@ -3766,7 +3731,7 @@ class Event(Object): __del__ = lambda self : None; def SetEventType(*args, **kwargs): """ - SetEventType(self, wxEventType typ) + SetEventType(self, EventType typ) Sets the specific type of the event. """ @@ -3774,7 +3739,7 @@ class Event(Object): def GetEventType(*args, **kwargs): """ - GetEventType(self) -> wxEventType + GetEventType(self) -> EventType Returns the identifier of the given event type, such as ``wxEVT_COMMAND_BUTTON_CLICKED``. @@ -3893,8 +3858,7 @@ class Event(Object): """Clone(self) -> Event""" return _core_.Event_Clone(*args, **kwargs) -Event_swigregister = _core_.Event_swigregister -Event_swigregister(Event) +_core_.Event_swigregister(Event) #--------------------------------------------------------------------------- @@ -3917,8 +3881,7 @@ class PropagationDisabler(object): _core_.PropagationDisabler_swiginit(self,_core_.new_PropagationDisabler(*args, **kwargs)) __swig_destroy__ = _core_.delete_PropagationDisabler __del__ = lambda self : None; -PropagationDisabler_swigregister = _core_.PropagationDisabler_swigregister -PropagationDisabler_swigregister(PropagationDisabler) +_core_.PropagationDisabler_swigregister(PropagationDisabler) class PropagateOnce(object): """ @@ -3939,8 +3902,7 @@ class PropagateOnce(object): _core_.PropagateOnce_swiginit(self,_core_.new_PropagateOnce(*args, **kwargs)) __swig_destroy__ = _core_.delete_PropagateOnce __del__ = lambda self : None; -PropagateOnce_swigregister = _core_.PropagateOnce_swigregister -PropagateOnce_swigregister(PropagateOnce) +_core_.PropagateOnce_swigregister(PropagateOnce) #--------------------------------------------------------------------------- @@ -3954,7 +3916,7 @@ class CommandEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent + __init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent This event class contains information about command events, which originate from a variety of simple controls, as well as menus and @@ -4028,7 +3990,7 @@ class CommandEvent(Event): def GetInt(*args, **kwargs): """ - GetInt(self) -> long + GetInt(self) -> int Returns the integer identifier corresponding to a listbox, choice or radiobox selection (only if the event was a selection, not a @@ -4059,8 +4021,7 @@ class CommandEvent(Event): """Clone(self) -> Event""" return _core_.CommandEvent_Clone(*args, **kwargs) -CommandEvent_swigregister = _core_.CommandEvent_swigregister -CommandEvent_swigregister(CommandEvent) +_core_.CommandEvent_swigregister(CommandEvent) #--------------------------------------------------------------------------- @@ -4075,7 +4036,7 @@ class NotifyEvent(CommandEvent): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent + __init__(self, EventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent An instance of this class (or one of its derived classes) is sent from a control when the control's state is being changed and the control @@ -4115,8 +4076,7 @@ class NotifyEvent(CommandEvent): """ return _core_.NotifyEvent_IsAllowed(*args, **kwargs) -NotifyEvent_swigregister = _core_.NotifyEvent_swigregister -NotifyEvent_swigregister(NotifyEvent) +_core_.NotifyEvent_swigregister(NotifyEvent) #--------------------------------------------------------------------------- @@ -4131,7 +4091,7 @@ class ScrollEvent(CommandEvent): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, + __init__(self, EventType commandType=wxEVT_NULL, int winid=0, int pos=0, int orient=0) -> ScrollEvent """ _core_.ScrollEvent_swiginit(self,_core_.new_ScrollEvent(*args, **kwargs)) @@ -4160,8 +4120,7 @@ class ScrollEvent(CommandEvent): """SetPosition(self, int pos)""" return _core_.ScrollEvent_SetPosition(*args, **kwargs) -ScrollEvent_swigregister = _core_.ScrollEvent_swigregister -ScrollEvent_swigregister(ScrollEvent) +_core_.ScrollEvent_swigregister(ScrollEvent) #--------------------------------------------------------------------------- @@ -4174,7 +4133,7 @@ class ScrollWinEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent + __init__(self, EventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent A wx.ScrollWinEvent holds information about scrolling and is sent from scrolling windows. @@ -4207,8 +4166,7 @@ class ScrollWinEvent(Event): """SetPosition(self, int pos)""" return _core_.ScrollWinEvent_SetPosition(*args, **kwargs) -ScrollWinEvent_swigregister = _core_.ScrollWinEvent_swigregister -ScrollWinEvent_swigregister(ScrollWinEvent) +_core_.ScrollWinEvent_swigregister(ScrollWinEvent) #--------------------------------------------------------------------------- @@ -4243,7 +4201,7 @@ class MouseEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent + __init__(self, EventType mouseType=wxEVT_NULL) -> MouseEvent Constructs a wx.MouseEvent. Valid event types are: @@ -4623,8 +4581,7 @@ class MouseEvent(Event): m_wheelRotation = property(_core_.MouseEvent_m_wheelRotation_get, _core_.MouseEvent_m_wheelRotation_set) m_wheelDelta = property(_core_.MouseEvent_m_wheelDelta_get, _core_.MouseEvent_m_wheelDelta_set) m_linesPerAction = property(_core_.MouseEvent_m_linesPerAction_get, _core_.MouseEvent_m_linesPerAction_set) -MouseEvent_swigregister = _core_.MouseEvent_swigregister -MouseEvent_swigregister(MouseEvent) +_core_.MouseEvent_swigregister(MouseEvent) #--------------------------------------------------------------------------- @@ -4685,8 +4642,7 @@ class SetCursorEvent(Event): """ return _core_.SetCursorEvent_HasCursor(*args, **kwargs) -SetCursorEvent_swigregister = _core_.SetCursorEvent_swigregister -SetCursorEvent_swigregister(SetCursorEvent) +_core_.SetCursorEvent_swigregister(SetCursorEvent) #--------------------------------------------------------------------------- @@ -4757,7 +4713,7 @@ class KeyEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType eventType=wxEVT_NULL) -> KeyEvent + __init__(self, EventType eventType=wxEVT_NULL) -> KeyEvent Construct a new `wx.KeyEvent`. Valid event types are: * @@ -4864,6 +4820,15 @@ class KeyEvent(Event): return _core_.KeyEvent_GetUnicodeKey(*args, **kwargs) GetUniChar = GetUnicodeKey + def SetUnicodeKey(*args, **kwargs): + """ + SetUnicodeKey(self, int uniChar) + + Set the Unicode value of the key event, but only if this is a Unicode + build of wxPython. + """ + return _core_.KeyEvent_SetUnicodeKey(*args, **kwargs) + def GetRawKeyCode(*args, **kwargs): """ GetRawKeyCode(self) -> unsigned int @@ -4929,8 +4894,7 @@ class KeyEvent(Event): m_scanCode = property(_core_.KeyEvent_m_scanCode_get, _core_.KeyEvent_m_scanCode_set) m_rawCode = property(_core_.KeyEvent_m_rawCode_get, _core_.KeyEvent_m_rawCode_set) m_rawFlags = property(_core_.KeyEvent_m_rawFlags_get, _core_.KeyEvent_m_rawFlags_set) -KeyEvent_swigregister = _core_.KeyEvent_swigregister -KeyEvent_swigregister(KeyEvent) +_core_.KeyEvent_swigregister(KeyEvent) #--------------------------------------------------------------------------- @@ -4984,8 +4948,7 @@ class SizeEvent(Event): m_size = property(_core_.SizeEvent_m_size_get, _core_.SizeEvent_m_size_set) m_rect = property(_core_.SizeEvent_m_rect_get, _core_.SizeEvent_m_rect_set) -SizeEvent_swigregister = _core_.SizeEvent_swigregister -SizeEvent_swigregister(SizeEvent) +_core_.SizeEvent_swigregister(SizeEvent) #--------------------------------------------------------------------------- @@ -5026,8 +4989,7 @@ class MoveEvent(Event): m_pos = property(GetPosition, SetPosition) m_rect = property(GetRect, SetRect) -MoveEvent_swigregister = _core_.MoveEvent_swigregister -MoveEvent_swigregister(MoveEvent) +_core_.MoveEvent_swigregister(MoveEvent) #--------------------------------------------------------------------------- @@ -5052,8 +5014,7 @@ class PaintEvent(Event): def __init__(self, *args, **kwargs): """__init__(self, int Id=0) -> PaintEvent""" _core_.PaintEvent_swiginit(self,_core_.new_PaintEvent(*args, **kwargs)) -PaintEvent_swigregister = _core_.PaintEvent_swigregister -PaintEvent_swigregister(PaintEvent) +_core_.PaintEvent_swigregister(PaintEvent) class NcPaintEvent(Event): """Proxy of C++ NcPaintEvent class""" @@ -5062,8 +5023,7 @@ class NcPaintEvent(Event): def __init__(self, *args, **kwargs): """__init__(self, int winid=0) -> NcPaintEvent""" _core_.NcPaintEvent_swiginit(self,_core_.new_NcPaintEvent(*args, **kwargs)) -NcPaintEvent_swigregister = _core_.NcPaintEvent_swigregister -NcPaintEvent_swigregister(NcPaintEvent) +_core_.NcPaintEvent_swigregister(NcPaintEvent) #--------------------------------------------------------------------------- @@ -5098,8 +5058,7 @@ class EraseEvent(Event): """ return _core_.EraseEvent_GetDC(*args, **kwargs) -EraseEvent_swigregister = _core_.EraseEvent_swigregister -EraseEvent_swigregister(EraseEvent) +_core_.EraseEvent_swigregister(EraseEvent) #--------------------------------------------------------------------------- @@ -5118,7 +5077,7 @@ class FocusEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent + __init__(self, EventType type=wxEVT_NULL, int winid=0) -> FocusEvent Constructor """ @@ -5139,8 +5098,7 @@ class FocusEvent(Event): """SetWindow(self, Window win)""" return _core_.FocusEvent_SetWindow(*args, **kwargs) -FocusEvent_swigregister = _core_.FocusEvent_swigregister -FocusEvent_swigregister(FocusEvent) +_core_.FocusEvent_swigregister(FocusEvent) #--------------------------------------------------------------------------- @@ -5167,8 +5125,7 @@ class ChildFocusEvent(CommandEvent): """ return _core_.ChildFocusEvent_GetWindow(*args, **kwargs) -ChildFocusEvent_swigregister = _core_.ChildFocusEvent_swigregister -ChildFocusEvent_swigregister(ChildFocusEvent) +_core_.ChildFocusEvent_swigregister(ChildFocusEvent) #--------------------------------------------------------------------------- @@ -5193,7 +5150,7 @@ class ActivateEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent + __init__(self, EventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent Constructor """ @@ -5207,8 +5164,7 @@ class ActivateEvent(Event): """ return _core_.ActivateEvent_GetActive(*args, **kwargs) -ActivateEvent_swigregister = _core_.ActivateEvent_swigregister -ActivateEvent_swigregister(ActivateEvent) +_core_.ActivateEvent_swigregister(ActivateEvent) #--------------------------------------------------------------------------- @@ -5229,8 +5185,7 @@ class InitDialogEvent(Event): Constructor """ _core_.InitDialogEvent_swiginit(self,_core_.new_InitDialogEvent(*args, **kwargs)) -InitDialogEvent_swigregister = _core_.InitDialogEvent_swigregister -InitDialogEvent_swigregister(InitDialogEvent) +_core_.InitDialogEvent_swigregister(InitDialogEvent) #--------------------------------------------------------------------------- @@ -5247,7 +5202,7 @@ class MenuEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent + __init__(self, EventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent Constructor """ @@ -5280,8 +5235,7 @@ class MenuEvent(Event): """ return _core_.MenuEvent_GetMenu(*args, **kwargs) -MenuEvent_swigregister = _core_.MenuEvent_swigregister -MenuEvent_swigregister(MenuEvent) +_core_.MenuEvent_swigregister(MenuEvent) #--------------------------------------------------------------------------- @@ -5312,7 +5266,7 @@ class CloseEvent(Event): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent + __init__(self, EventType type=wxEVT_NULL, int winid=0) -> CloseEvent Constructor. """ @@ -5370,8 +5324,7 @@ class CloseEvent(Event): """ return _core_.CloseEvent_CanVeto(*args, **kwargs) -CloseEvent_swigregister = _core_.CloseEvent_swigregister -CloseEvent_swigregister(CloseEvent) +_core_.CloseEvent_swigregister(CloseEvent) #--------------------------------------------------------------------------- @@ -5394,8 +5347,7 @@ class ShowEvent(Event): """GetShow(self) -> bool""" return _core_.ShowEvent_GetShow(*args, **kwargs) -ShowEvent_swigregister = _core_.ShowEvent_swigregister -ShowEvent_swigregister(ShowEvent) +_core_.ShowEvent_swigregister(ShowEvent) #--------------------------------------------------------------------------- @@ -5423,8 +5375,7 @@ class IconizeEvent(Event): """ return _core_.IconizeEvent_Iconized(*args, **kwargs) -IconizeEvent_swigregister = _core_.IconizeEvent_swigregister -IconizeEvent_swigregister(IconizeEvent) +_core_.IconizeEvent_swigregister(IconizeEvent) #--------------------------------------------------------------------------- @@ -5439,8 +5390,7 @@ class MaximizeEvent(Event): An EVT_MAXIMIZE event is sent when a frame is maximized or restored. """ _core_.MaximizeEvent_swiginit(self,_core_.new_MaximizeEvent(*args, **kwargs)) -MaximizeEvent_swigregister = _core_.MaximizeEvent_swigregister -MaximizeEvent_swigregister(MaximizeEvent) +_core_.MaximizeEvent_swigregister(MaximizeEvent) #--------------------------------------------------------------------------- @@ -5487,8 +5437,7 @@ class DropFilesEvent(Event): """ return _core_.DropFilesEvent_GetFiles(*args, **kwargs) -DropFilesEvent_swigregister = _core_.DropFilesEvent_swigregister -DropFilesEvent_swigregister(DropFilesEvent) +_core_.DropFilesEvent_swigregister(DropFilesEvent) #--------------------------------------------------------------------------- @@ -5747,8 +5696,7 @@ class UpdateUIEvent(CommandEvent): return _core_.UpdateUIEvent_GetMode(*args, **kwargs) GetMode = staticmethod(GetMode) -UpdateUIEvent_swigregister = _core_.UpdateUIEvent_swigregister -UpdateUIEvent_swigregister(UpdateUIEvent) +_core_.UpdateUIEvent_swigregister(UpdateUIEvent) def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): """ @@ -5859,8 +5807,7 @@ class SysColourChangedEvent(Event): Constructor """ _core_.SysColourChangedEvent_swiginit(self,_core_.new_SysColourChangedEvent(*args, **kwargs)) -SysColourChangedEvent_swigregister = _core_.SysColourChangedEvent_swigregister -SysColourChangedEvent_swigregister(SysColourChangedEvent) +_core_.SysColourChangedEvent_swigregister(SysColourChangedEvent) #--------------------------------------------------------------------------- @@ -5892,8 +5839,7 @@ class MouseCaptureChangedEvent(Event): """ return _core_.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) -MouseCaptureChangedEvent_swigregister = _core_.MouseCaptureChangedEvent_swigregister -MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEvent) +_core_.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEvent) #--------------------------------------------------------------------------- @@ -5909,8 +5855,7 @@ class DisplayChangedEvent(Event): def __init__(self, *args, **kwargs): """__init__(self) -> DisplayChangedEvent""" _core_.DisplayChangedEvent_swiginit(self,_core_.new_DisplayChangedEvent(*args, **kwargs)) -DisplayChangedEvent_swigregister = _core_.DisplayChangedEvent_swigregister -DisplayChangedEvent_swigregister(DisplayChangedEvent) +_core_.DisplayChangedEvent_swigregister(DisplayChangedEvent) #--------------------------------------------------------------------------- @@ -5943,8 +5888,7 @@ class PaletteChangedEvent(Event): """GetChangedWindow(self) -> Window""" return _core_.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) -PaletteChangedEvent_swigregister = _core_.PaletteChangedEvent_swigregister -PaletteChangedEvent_swigregister(PaletteChangedEvent) +_core_.PaletteChangedEvent_swigregister(PaletteChangedEvent) #--------------------------------------------------------------------------- @@ -5976,8 +5920,7 @@ class QueryNewPaletteEvent(Event): """GetPaletteRealized(self) -> bool""" return _core_.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) -QueryNewPaletteEvent_swigregister = _core_.QueryNewPaletteEvent_swigregister -QueryNewPaletteEvent_swigregister(QueryNewPaletteEvent) +_core_.QueryNewPaletteEvent_swigregister(QueryNewPaletteEvent) #--------------------------------------------------------------------------- @@ -6084,8 +6027,7 @@ class NavigationKeyEvent(Event): IsForward = _core_.NavigationKeyEvent_IsForward WinChange = _core_.NavigationKeyEvent_WinChange FromTab = _core_.NavigationKeyEvent_FromTab -NavigationKeyEvent_swigregister = _core_.NavigationKeyEvent_swigregister -NavigationKeyEvent_swigregister(NavigationKeyEvent) +_core_.NavigationKeyEvent_swigregister(NavigationKeyEvent) #--------------------------------------------------------------------------- @@ -6112,8 +6054,7 @@ class WindowCreateEvent(CommandEvent): """ return _core_.WindowCreateEvent_GetWindow(*args, **kwargs) -WindowCreateEvent_swigregister = _core_.WindowCreateEvent_swigregister -WindowCreateEvent_swigregister(WindowCreateEvent) +_core_.WindowCreateEvent_swigregister(WindowCreateEvent) class WindowDestroyEvent(CommandEvent): """ @@ -6152,8 +6093,7 @@ class WindowDestroyEvent(CommandEvent): """ return _core_.WindowDestroyEvent_GetWindow(*args, **kwargs) -WindowDestroyEvent_swigregister = _core_.WindowDestroyEvent_swigregister -WindowDestroyEvent_swigregister(WindowDestroyEvent) +_core_.WindowDestroyEvent_swigregister(WindowDestroyEvent) #--------------------------------------------------------------------------- @@ -6166,7 +6106,7 @@ class ContextMenuEvent(CommandEvent): __repr__ = _swig_repr def __init__(self, *args, **kwargs): """ - __init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent + __init__(self, EventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent Constructor. """ @@ -6188,8 +6128,7 @@ class ContextMenuEvent(CommandEvent): """ return _core_.ContextMenuEvent_SetPosition(*args, **kwargs) -ContextMenuEvent_swigregister = _core_.ContextMenuEvent_swigregister -ContextMenuEvent_swigregister(ContextMenuEvent) +_core_.ContextMenuEvent_swigregister(ContextMenuEvent) #--------------------------------------------------------------------------- @@ -6292,8 +6231,7 @@ class IdleEvent(Event): return _core_.IdleEvent_CanSend(*args, **kwargs) CanSend = staticmethod(CanSend) -IdleEvent_swigregister = _core_.IdleEvent_swigregister -IdleEvent_swigregister(IdleEvent) +_core_.IdleEvent_swigregister(IdleEvent) def IdleEvent_SetMode(*args, **kwargs): """ @@ -6343,6 +6281,31 @@ def IdleEvent_CanSend(*args, **kwargs): #--------------------------------------------------------------------------- +class ClipboardTextEvent(CommandEvent): + """ + A Clipboard Text event is sent when a window intercepts a text + copy/cut/paste message, i.e. the user has cut/copied/pasted data + from/into a text control via ctrl-C/X/V, ctrl/shift-del/insert, a + popup menu command, etc. NOTE : under windows these events are *NOT* + generated automatically for a Rich Edit text control. + """ + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, EventType type=wxEVT_NULL, int winid=0) -> ClipboardTextEvent + + A Clipboard Text event is sent when a window intercepts a text + copy/cut/paste message, i.e. the user has cut/copied/pasted data + from/into a text control via ctrl-C/X/V, ctrl/shift-del/insert, a + popup menu command, etc. NOTE : under windows these events are *NOT* + generated automatically for a Rich Edit text control. + """ + _core_.ClipboardTextEvent_swiginit(self,_core_.new_ClipboardTextEvent(*args, **kwargs)) +_core_.ClipboardTextEvent_swigregister(ClipboardTextEvent) + +#--------------------------------------------------------------------------- + class PyEvent(Event): """ wx.PyEvent can be used as a base class for implementing custom event @@ -6357,7 +6320,7 @@ class PyEvent(Event): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args, **kwargs): - """__init__(self, int winid=0, wxEventType eventType=wxEVT_NULL) -> PyEvent""" + """__init__(self, int winid=0, EventType eventType=wxEVT_NULL) -> PyEvent""" _core_.PyEvent_swiginit(self,_core_.new_PyEvent(*args, **kwargs)) self._SetSelf(self) @@ -6371,8 +6334,7 @@ class PyEvent(Event): """_GetSelf(self) -> PyObject""" return _core_.PyEvent__GetSelf(*args, **kwargs) -PyEvent_swigregister = _core_.PyEvent_swigregister -PyEvent_swigregister(PyEvent) +_core_.PyEvent_swigregister(PyEvent) class PyCommandEvent(CommandEvent): """ @@ -6389,7 +6351,7 @@ class PyCommandEvent(CommandEvent): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args, **kwargs): - """__init__(self, wxEventType eventType=wxEVT_NULL, int id=0) -> PyCommandEvent""" + """__init__(self, EventType eventType=wxEVT_NULL, int id=0) -> PyCommandEvent""" _core_.PyCommandEvent_swiginit(self,_core_.new_PyCommandEvent(*args, **kwargs)) self._SetSelf(self) @@ -6403,8 +6365,7 @@ class PyCommandEvent(CommandEvent): """_GetSelf(self) -> PyObject""" return _core_.PyCommandEvent__GetSelf(*args, **kwargs) -PyCommandEvent_swigregister = _core_.PyCommandEvent_swigregister -PyCommandEvent_swigregister(PyCommandEvent) +_core_.PyCommandEvent_swigregister(PyCommandEvent) class DateEvent(CommandEvent): """ @@ -6416,7 +6377,7 @@ class DateEvent(CommandEvent): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') __repr__ = _swig_repr def __init__(self, *args, **kwargs): - """__init__(self, Window win, DateTime dt, wxEventType type) -> DateEvent""" + """__init__(self, Window win, DateTime dt, EventType type) -> DateEvent""" _core_.DateEvent_swiginit(self,_core_.new_DateEvent(*args, **kwargs)) def GetDate(*args, **kwargs): """ @@ -6435,8 +6396,7 @@ class DateEvent(CommandEvent): """ return _core_.DateEvent_SetDate(*args, **kwargs) -DateEvent_swigregister = _core_.DateEvent_swigregister -DateEvent_swigregister(DateEvent) +_core_.DateEvent_swigregister(DateEvent) wxEVT_DATE_CHANGED = _core_.wxEVT_DATE_CHANGED EVT_DATE_CHANGED = wx.PyEventBinder( wxEVT_DATE_CHANGED, 1 ) @@ -6803,8 +6763,7 @@ class PyApp(EvtHandler): return _core_.PyApp_GetComCtl32Version(*args, **kwargs) GetComCtl32Version = staticmethod(GetComCtl32Version) -PyApp_swigregister = _core_.PyApp_swigregister -PyApp_swigregister(PyApp) +_core_.PyApp_swigregister(PyApp) def PyApp_IsMainLoopRunning(*args): """ @@ -6991,7 +6950,7 @@ class PyOnDemandOutputWindow: style=wx.TE_MULTILINE|wx.TE_READONLY) self.text.AppendText(st) self.frame.Show(True) - EVT_CLOSE(self.frame, self.OnCloseWindow) + self.frame.Bind(wx.EVT_CLOSE, self.OnCloseWindow) def OnCloseWindow(self, event): @@ -7137,6 +7096,15 @@ your Mac.""" self._BootstrapApp() + def OnPreInit(self): + """ + Things that must be done after _BootstrapApp has done its + thing, but would be nice if they were already done by the time + that OnInit is called. + """ + wx.StockGDI._initStockObjects() + + def __del__(self, destroy=wx.PyApp.__del__): self.RestoreStdio() # Just in case the MainLoop was overridden destroy(self) @@ -7309,8 +7277,7 @@ class EventLoop(object): return _core_.EventLoop_SetActive(*args, **kwargs) SetActive = staticmethod(SetActive) -EventLoop_swigregister = _core_.EventLoop_swigregister -EventLoop_swigregister(EventLoop) +_core_.EventLoop_swigregister(EventLoop) def EventLoop_GetActive(*args): """EventLoop_GetActive() -> EventLoop""" @@ -7329,8 +7296,7 @@ class EventLoopActivator(object): _core_.EventLoopActivator_swiginit(self,_core_.new_EventLoopActivator(*args, **kwargs)) __swig_destroy__ = _core_.delete_EventLoopActivator __del__ = lambda self : None; -EventLoopActivator_swigregister = _core_.EventLoopActivator_swigregister -EventLoopActivator_swigregister(EventLoopActivator) +_core_.EventLoopActivator_swigregister(EventLoopActivator) #--------------------------------------------------------------------------- @@ -7387,8 +7353,7 @@ class AcceleratorEntry(object): """ return _core_.AcceleratorEntry_GetCommand(*args, **kwargs) -AcceleratorEntry_swigregister = _core_.AcceleratorEntry_swigregister -AcceleratorEntry_swigregister(AcceleratorEntry) +_core_.AcceleratorEntry_swigregister(AcceleratorEntry) class AcceleratorTable(Object): """ @@ -7415,8 +7380,7 @@ class AcceleratorTable(Object): """Ok(self) -> bool""" return _core_.AcceleratorTable_Ok(*args, **kwargs) -AcceleratorTable_swigregister = _core_.AcceleratorTable_swigregister -AcceleratorTable_swigregister(AcceleratorTable) +_core_.AcceleratorTable_swigregister(AcceleratorTable) def GetAccelFromString(*args, **kwargs): @@ -7440,8 +7404,7 @@ class VisualAttributes(object): font = property(_core_.VisualAttributes_font_get, _core_.VisualAttributes_font_set) colFg = property(_core_.VisualAttributes_colFg_get, _core_.VisualAttributes_colFg_set) colBg = property(_core_.VisualAttributes_colBg_get, _core_.VisualAttributes_colBg_set) -VisualAttributes_swigregister = _core_.VisualAttributes_swigregister -VisualAttributes_swigregister(VisualAttributes) +_core_.VisualAttributes_swigregister(VisualAttributes) NullAcceleratorTable = cvar.NullAcceleratorTable PanelNameStr = cvar.PanelNameStr @@ -8441,6 +8404,14 @@ class Window(EvtHandler): """ return _core_.Window_RemoveChild(*args, **kwargs) + def SetDoubleBuffered(*args, **kwargs): + """ + SetDoubleBuffered(self, bool on) + + Currently wxGTK2 only. + """ + return _core_.Window_SetDoubleBuffered(*args, **kwargs) + def FindWindowById(*args, **kwargs): """ FindWindowById(self, long winid) -> Window @@ -9357,6 +9328,18 @@ class Window(EvtHandler): """ return _core_.Window_SetHelpTextForId(*args, **kwargs) + def GetHelpTextAtPoint(*args, **kwargs): + """ + GetHelpTextAtPoint(self, Point pt, wxHelpEvent::Origin origin) -> String + + Get the help string associated with the given position in this window. + + Notice that pt may be invalid if event origin is keyboard or unknown + and this method should return the global window help text then + + """ + return _core_.Window_GetHelpTextAtPoint(*args, **kwargs) + def GetHelpText(*args, **kwargs): """ GetHelpText(self) -> String @@ -9584,10 +9567,9 @@ class Window(EvtHandler): self._setCallbackInfo(self, self.__class__) def SendSizeEvent(self): - self.GetEventhandler().ProcessEvent(wx.SizeEvent((-1,-1))) + self.GetEventHandler().ProcessEvent(wx.SizeEvent((-1,-1))) -Window_swigregister = _core_.Window_swigregister -Window_swigregister(Window) +_core_.Window_swigregister(Window) def PreWindow(*args, **kwargs): """ @@ -9776,8 +9758,7 @@ class Validator(EvtHandler): return _core_.Validator_SetBellOnError(*args, **kwargs) SetBellOnError = staticmethod(SetBellOnError) -Validator_swigregister = _core_.Validator_swigregister -Validator_swigregister(Validator) +_core_.Validator_swigregister(Validator) def Validator_IsSilent(*args): """Validator_IsSilent() -> bool""" @@ -9802,8 +9783,7 @@ class PyValidator(Validator): """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)""" return _core_.PyValidator__setCallbackInfo(*args, **kwargs) -PyValidator_swigregister = _core_.PyValidator_swigregister -PyValidator_swigregister(PyValidator) +_core_.PyValidator_swigregister(PyValidator) #--------------------------------------------------------------------------- @@ -10053,8 +10033,7 @@ class Menu(EvtHandler): """GetParent(self) -> Menu""" return _core_.Menu_GetParent(*args, **kwargs) -Menu_swigregister = _core_.Menu_swigregister -Menu_swigregister(Menu) +_core_.Menu_swigregister(Menu) DefaultValidator = cvar.DefaultValidator #--------------------------------------------------------------------------- @@ -10178,8 +10157,7 @@ class MenuBar(Window): return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs) GetAutoWindowMenu = staticmethod(GetAutoWindowMenu) -MenuBar_swigregister = _core_.MenuBar_swigregister -MenuBar_swigregister(MenuBar) +_core_.MenuBar_swigregister(MenuBar) def MenuBar_SetAutoWindowMenu(*args, **kwargs): """MenuBar_SetAutoWindowMenu(bool enable)""" @@ -10374,8 +10352,7 @@ class MenuItem(Object): """ResetOwnerDrawn(self)""" return _core_.MenuItem_ResetOwnerDrawn(*args, **kwargs) -MenuItem_swigregister = _core_.MenuItem_swigregister -MenuItem_swigregister(MenuItem) +_core_.MenuItem_swigregister(MenuItem) def MenuItem_GetLabelFromText(*args, **kwargs): """MenuItem_GetLabelFromText(String text) -> String""" @@ -10455,8 +10432,7 @@ class Control(Window): return _core_.Control_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) -Control_swigregister = _core_.Control_swigregister -Control_swigregister(Control) +_core_.Control_swigregister(Control) ControlNameStr = cvar.ControlNameStr def PreControl(*args, **kwargs): @@ -10656,8 +10632,7 @@ class ItemContainer(object): """ return _core_.ItemContainer_Select(*args, **kwargs) -ItemContainer_swigregister = _core_.ItemContainer_swigregister -ItemContainer_swigregister(ItemContainer) +_core_.ItemContainer_swigregister(ItemContainer) #--------------------------------------------------------------------------- @@ -10670,18 +10645,20 @@ class ControlWithItems(Control,ItemContainer): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') def __init__(self): raise AttributeError, "No constructor defined" __repr__ = _swig_repr -ControlWithItems_swigregister = _core_.ControlWithItems_swigregister -ControlWithItems_swigregister(ControlWithItems) +_core_.ControlWithItems_swigregister(ControlWithItems) #--------------------------------------------------------------------------- class SizerItem(Object): """ The wx.SizerItem class is used to track the position, size and other - attributes of each item managed by a `wx.Sizer`. In normal usage user - code should never need to deal directly with a wx.SizerItem, but - custom classes derived from `wx.PySizer` will probably need to use the - collection of wx.SizerItems held by wx.Sizer when calculating layout. + attributes of each item managed by a `wx.Sizer`. It is not usually + necessary to use this class because the sizer elements can also be + identified by their positions or window or sizer references but + sometimes it may be more convenient to use wx.SizerItem directly. + Also, custom classes derived from `wx.PySizer` will probably need to + use the collection of wx.SizerItems held by wx.Sizer when calculating + layout. :see: `wx.Sizer`, `wx.GBSizerItem` """ @@ -10974,8 +10951,7 @@ class SizerItem(Object): """ return _core_.SizerItem_SetUserData(*args, **kwargs) -SizerItem_swigregister = _core_.SizerItem_swigregister -SizerItem_swigregister(SizerItem) +_core_.SizerItem_swigregister(SizerItem) def SizerItemWindow(*args, **kwargs): """ @@ -11411,8 +11387,7 @@ class Sizer(Object): """ return _core_.Sizer_ShowItems(*args, **kwargs) -Sizer_swigregister = _core_.Sizer_swigregister -Sizer_swigregister(Sizer) +_core_.Sizer_swigregister(Sizer) class PySizer(Sizer): """ @@ -11472,8 +11447,7 @@ class PySizer(Sizer): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _core_.PySizer__setCallbackInfo(*args, **kwargs) -PySizer_swigregister = _core_.PySizer_swigregister -PySizer_swigregister(PySizer) +_core_.PySizer_swigregister(PySizer) #--------------------------------------------------------------------------- @@ -11514,8 +11488,7 @@ class BoxSizer(Sizer): """ return _core_.BoxSizer_SetOrientation(*args, **kwargs) -BoxSizer_swigregister = _core_.BoxSizer_swigregister -BoxSizer_swigregister(BoxSizer) +_core_.BoxSizer_swigregister(BoxSizer) #--------------------------------------------------------------------------- @@ -11547,8 +11520,7 @@ class StaticBoxSizer(BoxSizer): """ return _core_.StaticBoxSizer_GetStaticBox(*args, **kwargs) -StaticBoxSizer_swigregister = _core_.StaticBoxSizer_swigregister -StaticBoxSizer_swigregister(StaticBoxSizer) +_core_.StaticBoxSizer_swigregister(StaticBoxSizer) #--------------------------------------------------------------------------- @@ -11666,8 +11638,7 @@ class GridSizer(Sizer): cols = (nitems + rows - 1) / rows return (rows, cols) -GridSizer_swigregister = _core_.GridSizer_swigregister -GridSizer_swigregister(GridSizer) +_core_.GridSizer_swigregister(GridSizer) #--------------------------------------------------------------------------- @@ -11833,8 +11804,7 @@ class FlexGridSizer(GridSizer): """ return _core_.FlexGridSizer_GetColWidths(*args, **kwargs) -FlexGridSizer_swigregister = _core_.FlexGridSizer_swigregister -FlexGridSizer_swigregister(FlexGridSizer) +_core_.FlexGridSizer_swigregister(FlexGridSizer) class StdDialogButtonSizer(BoxSizer): """ @@ -11901,8 +11871,7 @@ class StdDialogButtonSizer(BoxSizer): """GetHelpButton(self) -> wxButton""" return _core_.StdDialogButtonSizer_GetHelpButton(*args, **kwargs) -StdDialogButtonSizer_swigregister = _core_.StdDialogButtonSizer_swigregister -StdDialogButtonSizer_swigregister(StdDialogButtonSizer) +_core_.StdDialogButtonSizer_swigregister(StdDialogButtonSizer) #--------------------------------------------------------------------------- @@ -11985,8 +11954,7 @@ class GBPosition(object): row = property(GetRow, SetRow) col = property(GetCol, SetCol) -GBPosition_swigregister = _core_.GBPosition_swigregister -GBPosition_swigregister(GBPosition) +_core_.GBPosition_swigregister(GBPosition) class GBSpan(object): """ @@ -12066,8 +12034,7 @@ class GBSpan(object): rowspan = property(GetRowspan, SetRowspan) colspan = property(GetColspan, SetColspan) -GBSpan_swigregister = _core_.GBSpan_swigregister -GBSpan_swigregister(GBSpan) +_core_.GBSpan_swigregister(GBSpan) class GBSizerItem(SizerItem): """ @@ -12173,8 +12140,7 @@ class GBSizerItem(SizerItem): """ return _core_.GBSizerItem_SetGBSizer(*args, **kwargs) -GBSizerItem_swigregister = _core_.GBSizerItem_swigregister -GBSizerItem_swigregister(GBSizerItem) +_core_.GBSizerItem_swigregister(GBSizerItem) DefaultSpan = cvar.DefaultSpan def GBSizerItemWindow(*args, **kwargs): @@ -12376,8 +12342,7 @@ class GridBagSizer(FlexGridSizer): """ return _core_.GridBagSizer_CheckForIntersectionPos(*args, **kwargs) -GridBagSizer_swigregister = _core_.GridBagSizer_swigregister -GridBagSizer_swigregister(GridBagSizer) +_core_.GridBagSizer_swigregister(GridBagSizer) #--------------------------------------------------------------------------- @@ -12586,8 +12551,7 @@ class IndividualLayoutConstraint(Object): """ return _core_.IndividualLayoutConstraint_GetEdge(*args, **kwargs) -IndividualLayoutConstraint_swigregister = _core_.IndividualLayoutConstraint_swigregister -IndividualLayoutConstraint_swigregister(IndividualLayoutConstraint) +_core_.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraint) class LayoutConstraints(Object): """ @@ -12644,8 +12608,7 @@ class LayoutConstraints(Object): """AreSatisfied(self) -> bool""" return _core_.LayoutConstraints_AreSatisfied(*args, **kwargs) -LayoutConstraints_swigregister = _core_.LayoutConstraints_swigregister -LayoutConstraints_swigregister(LayoutConstraints) +_core_.LayoutConstraints_swigregister(LayoutConstraints) #----------------------------------------------------------------------------