X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f078d013aed3cb805dbfa2a10f2e300e35f2455a..b854b7b82e033d1dbd9d300402df50ec5e1e8b74:/utils/wxPython/src/gtk/windows.py diff --git a/utils/wxPython/src/gtk/windows.py b/utils/wxPython/src/gtk/windows.py index e496e1ce4a..589b81c33b 100644 --- a/utils/wxPython/src/gtk/windows.py +++ b/utils/wxPython/src/gtk/windows.py @@ -4,6 +4,8 @@ import windowsc from misc import * from gdi import * + +from clip_dnd import * import wx def wxDLG_PNT(win, point_or_x, y=None): @@ -48,6 +50,9 @@ class wxEvtHandlerPtr : def Connect(self, *_args, **_kwargs): val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs) return val + def Disconnect(self, *_args, **_kwargs): + val = apply(windowsc.wxEvtHandler_Disconnect,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxEvtHandler(wxEvtHandlerPtr): @@ -192,6 +197,9 @@ class wxWindowPtr(wxEvtHandlerPtr): val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs) if val: val = wxWindowPtr(val) return val + def GetHandle(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs) + return val def GetId(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs) return val @@ -260,6 +268,15 @@ class wxWindowPtr(wxEvtHandlerPtr): def IsEnabled(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs) return val + def IsExposed(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_IsExposed,(self,) + _args, _kwargs) + return val + def IsExposedPoint(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_IsExposedPoint,(self,) + _args, _kwargs) + return val + def IsExposedRect(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_IsExposedRect,(self,) + _args, _kwargs) + return val def IsRetained(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs) return val @@ -450,6 +467,18 @@ class wxWindowPtr(wxEvtHandlerPtr): def SetValidator(self, *_args, **_kwargs): val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs) return val + def SetDropTarget(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_SetDropTarget,(self,) + _args, _kwargs) + _args[0].thisown = 0 + return val + def GetDropTarget(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetDropTarget,(self,) + _args, _kwargs) + if val: val = wxDropTargetPtr(val) + return val + def GetBestSize(self, *_args, **_kwargs): + val = apply(windowsc.wxWindow_GetBestSize,(self,) + _args, _kwargs) + if val: val = wxSizePtr(val) ; val.thisown = 1 + return val def __repr__(self): return "" % (self.this,) class wxWindow(wxWindowPtr): @@ -569,6 +598,9 @@ class wxScrolledWindowPtr(wxPanelPtr): def SetScrollbars(self, *_args, **_kwargs): val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs) return val + def SetTargetWindow(self, *_args, **_kwargs): + val = apply(windowsc.wxScrolledWindow_SetTargetWindow,(self,) + _args, _kwargs) + return val def ViewStart(self, *_args, **_kwargs): val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs) return val @@ -612,46 +644,102 @@ class wxMenuPtr(wxEvtHandlerPtr): def Check(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs) return val + def IsChecked(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs) + return val def Enable(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs) return val + def IsEnabled(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs) + return val def FindItem(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs) return val + def FindItemById(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_FindItemById,(self,) + _args, _kwargs) + if val: val = wxMenuItemPtr(val) + return val def GetTitle(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs) return val def SetTitle(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs) return val - def FindItemForId(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_FindItemForId,(self,) + _args, _kwargs) - if val: val = wxMenuItemPtr(val) + def GetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs) + return val + def SetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs) return val def GetHelpString(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs) return val - def GetLabel(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs) - return val def SetHelpString(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs) return val - def IsChecked(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs) + def UpdateUI(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs) return val - def IsEnabled(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs) + def Delete(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_Delete,(self,) + _args, _kwargs) return val - def SetLabel(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs) + def DeleteItem(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_DeleteItem,(self,) + _args, _kwargs) return val - def UpdateUI(self, *_args, **_kwargs): - val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs) + def Insert(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_Insert,(self,) + _args, _kwargs) + return val + def Remove(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_Remove,(self,) + _args, _kwargs) + if val: val = wxMenuItemPtr(val) + return val + def RemoveItem(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_RemoveItem,(self,) + _args, _kwargs) + if val: val = wxMenuItemPtr(val) return val def Destroy(self, *_args, **_kwargs): val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs) return val + def DestroyId(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_DestroyId,(self,) + _args, _kwargs) + return val + def DestroyItem(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_DestroyItem,(self,) + _args, _kwargs) + return val + def GetMenuItemCount(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetMenuItemCount,(self,) + _args, _kwargs) + return val + def GetMenuItems(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetMenuItems,(self,) + _args, _kwargs) + return val + def SetEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_SetEventHandler,(self,) + _args, _kwargs) + return val + def GetEventHandler(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetEventHandler,(self,) + _args, _kwargs) + if val: val = wxEvtHandlerPtr(val) + return val + def SetInvokingWindow(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_SetInvokingWindow,(self,) + _args, _kwargs) + return val + def GetInvokingWindow(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetInvokingWindow,(self,) + _args, _kwargs) + if val: val = wxWindowPtr(val) + return val + def GetStyle(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetStyle,(self,) + _args, _kwargs) + return val + def IsAttached(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_IsAttached,(self,) + _args, _kwargs) + return val + def SetParent(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_SetParent,(self,) + _args, _kwargs) + return val + def GetParent(self, *_args, **_kwargs): + val = apply(windowsc.wxMenu_GetParent,(self,) + _args, _kwargs) + if val: val = wxMenuPtr(val) + return val def __repr__(self): return "" % (self.this,) class wxMenu(wxMenuPtr): @@ -662,40 +750,61 @@ class wxMenu(wxMenuPtr): -class wxMenuBarPtr(wxEvtHandlerPtr): +class wxMenuBarPtr(wxWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 def Append(self, *_args, **_kwargs): val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs) return val - def Check(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs) + def Insert(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Insert,(self,) + _args, _kwargs) return val - def Checked(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_Checked,(self,) + _args, _kwargs) + def GetMenuCount(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs) return val - def Enable(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs) + def GetMenu(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs) + if val: val = wxMenuPtr(val) + return val + def Replace(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs) + if val: val = wxMenuPtr(val) + return val + def Remove(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs) + if val: val = wxMenuPtr(val) + return val + def EnableTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs) return val - def Enabled(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_Enabled,(self,) + _args, _kwargs) + def SetLabelTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs) + return val + def GetLabelTop(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs) return val def FindMenuItem(self, *_args, **_kwargs): val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs) return val - def FindItemForId(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs) + def FindItemById(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_FindItemById,(self,) + _args, _kwargs) if val: val = wxMenuItemPtr(val) return val - def SetLabel(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs) + def Enable(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs) return val - def EnableTop(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs) + def Check(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs) return val - def GetHelpString(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs) + def IsChecked(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_IsChecked,(self,) + _args, _kwargs) + return val + def IsEnabled(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_IsEnabled,(self,) + _args, _kwargs) + return val + def SetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs) return val def GetLabel(self, *_args, **_kwargs): val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs) @@ -703,21 +812,8 @@ class wxMenuBarPtr(wxEvtHandlerPtr): def SetHelpString(self, *_args, **_kwargs): val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs) return val - def GetLabelTop(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs) - return val - def SetLabelTop(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs) - return val - def GetMenuCount(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs) - return val - def GetMenu(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs) - if val: val = wxMenuPtr(val) - return val - def Refresh(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuBar_Refresh,(self,) + _args, _kwargs) + def GetHelpString(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,) @@ -733,42 +829,71 @@ class wxMenuItemPtr : def __init__(self,this): self.this = this self.thisown = 0 + def GetMenu(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetMenu,(self,) + _args, _kwargs) + if val: val = wxMenuPtr(val) + return val + def SetId(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs) + return val + def GetId(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs) + return val def IsSeparator(self, *_args, **_kwargs): val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs) return val - def IsEnabled(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs) + def SetText(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_SetText,(self,) + _args, _kwargs) return val - def IsChecked(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs) + def GetLabel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetLabel,(self,) + _args, _kwargs) + return val + def GetText(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetText,(self,) + _args, _kwargs) + return val + def SetCheckable(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_SetCheckable,(self,) + _args, _kwargs) return val def IsCheckable(self, *_args, **_kwargs): val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs) return val - def GetId(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs) + def IsSubMenu(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_IsSubMenu,(self,) + _args, _kwargs) + return val + def SetSubMenu(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_SetSubMenu,(self,) + _args, _kwargs) return val def GetSubMenu(self, *_args, **_kwargs): val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs) if val: val = wxMenuPtr(val) return val - def SetName(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_SetName,(self,) + _args, _kwargs) + def Enable(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs) return val - def GetName(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_GetName,(self,) + _args, _kwargs) + def IsEnabled(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs) return val - def GetHelp(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs) + def Check(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs) + return val + def IsChecked(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs) + return val + def Toggle(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_Toggle,(self,) + _args, _kwargs) return val def SetHelp(self, *_args, **_kwargs): val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs) return val - def Enable(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs) + def GetHelp(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs) return val - def Check(self, *_args, **_kwargs): - val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs) + def GetAccel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_GetAccel,(self,) + _args, _kwargs) + if val: val = wxAcceleratorEntryPtr(val) + return val + def SetAccel(self, *_args, **_kwargs): + val = apply(windowsc.wxMenuItem_SetAccel,(self,) + _args, _kwargs) return val def __repr__(self): return "" % (self.this,)