from misc import *
from gdi import *
+
+from clip_dnd import *
import wx
def wxDLG_PNT(win, point_or_x, y=None):
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 "<C wxEvtHandler instance at %s>" % (self.this,)
class wxEvtHandler(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
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
def ReleaseMouse(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
return val
+ def RemoveChild(self, *_args, **_kwargs):
+ val = apply(windowsc.wxWindow_RemoveChild,(self,) + _args, _kwargs)
+ return val
def Reparent(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
return val
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 SetCaret(self, *_args, **_kwargs):
+ val = apply(windowsc.wxWindow_SetCaret,(self,) + _args, _kwargs)
+ return val
+ def GetCaret(self, *_args, **_kwargs):
+ val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
+ if val: val = wxCaretPtr(val)
+ return val
def __repr__(self):
return "<C wxWindow instance at %s>" % (self.this,)
+ # replaces broken shadow method
+ def GetCaret(self, *_args, **_kwargs):
+ from misc2 import wxCaretPtr
+ val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
+ if val: val = wxCaretPtr(val)
+ return val
+
class wxWindow(wxWindowPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
def EnableScrolling(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
return val
+ def GetScrollPageSize(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_GetScrollPageSize,(self,) + _args, _kwargs)
+ return val
def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
return val
+ def GetTargetWindow(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
+ if val: val = wxWindowPtr(val)
+ return val
def GetVirtualSize(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
return val
def SetScrollbars(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
return val
+ def SetScrollPageSize(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_SetScrollPageSize,(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
+ def CalcScrolledPosition(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_CalcScrolledPosition,(self,) + _args, _kwargs)
+ return val
+ def CalcUnscrolledPosition(self, *_args, **_kwargs):
+ val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxScrolledWindow instance at %s>" % (self.this,)
class wxScrolledWindow(wxScrolledWindowPtr):
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 "<C wxMenu instance at %s>" % (self.this,)
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)
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 "<C wxMenuBar instance at %s>" % (self.this,)
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 "<C wxMenuItem instance at %s>" % (self.this,)
wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
+wxWindow_NewControlId = windowsc.wxWindow_NewControlId
+
+wxWindow_NextControlId = windowsc.wxWindow_NextControlId
+
+wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
+
#-------------- VARIABLE WRAPPERS ------------------