X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2131d850ee99b2bebed4cc8d1467493ad0c226a5..9165401fbedc620814401be5e6d6729dfa59c311:/wxPython/src/gtk/_core.py diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index 5f09f3bc03..d601fdfe60 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_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,9 +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 -DD_CHANGE_DIR = _core_.DD_CHANGE_DIR MENU_TEAROFF = _core_.MENU_TEAROFF MB_DOCKABLE = _core_.MB_DOCKABLE NO_FULL_REPAINT_ON_RESIZE = _core_.NO_FULL_REPAINT_ON_RESIZE @@ -1700,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): @@ -1993,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) @@ -3501,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 @@ -3557,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 ) @@ -3568,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 ) @@ -3617,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, @@ -3637,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, ]) @@ -3658,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) @@ -4828,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 @@ -8403,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 @@ -9315,6 +9324,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 @@ -9542,7 +9563,7 @@ 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))) _core_.Window_swigregister(Window)