Various cleanup, tweaks, minor additions, etc. to maintain compatibility with the current wxWindows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
231 lines
8.1 KiB
Python
231 lines
8.1 KiB
Python
# This file was created automatically by SWIG.
|
|
import stattoolc
|
|
|
|
from misc import *
|
|
|
|
from windows import *
|
|
|
|
from gdi import *
|
|
|
|
from controls import *
|
|
|
|
from events import *
|
|
import wx
|
|
class wxStatusBarPtr(wxWindowPtr):
|
|
def __init__(self,this):
|
|
self.this = this
|
|
self.thisown = 0
|
|
def GetFieldRect(self,arg0):
|
|
val = stattoolc.wxStatusBar_GetFieldRect(self.this,arg0)
|
|
val = wxRectPtr(val)
|
|
val.thisown = 1
|
|
return val
|
|
def GetFieldsCount(self):
|
|
val = stattoolc.wxStatusBar_GetFieldsCount(self.this)
|
|
return val
|
|
def GetStatusText(self,*args):
|
|
val = apply(stattoolc.wxStatusBar_GetStatusText,(self.this,)+args)
|
|
return val
|
|
def DrawField(self,arg0,arg1):
|
|
val = stattoolc.wxStatusBar_DrawField(self.this,arg0.this,arg1)
|
|
return val
|
|
def DrawFieldText(self,arg0,arg1):
|
|
val = stattoolc.wxStatusBar_DrawFieldText(self.this,arg0.this,arg1)
|
|
return val
|
|
def InitColours(self):
|
|
val = stattoolc.wxStatusBar_InitColours(self.this)
|
|
return val
|
|
def SetFieldsCount(self,*args):
|
|
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self.this,)+args)
|
|
return val
|
|
def SetStatusText(self,arg0,*args):
|
|
val = apply(stattoolc.wxStatusBar_SetStatusText,(self.this,arg0,)+args)
|
|
return val
|
|
def SetStatusWidths(self,arg0,*args):
|
|
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self.this,arg0,)+args)
|
|
return val
|
|
def __repr__(self):
|
|
return "<C wxStatusBar instance>"
|
|
class wxStatusBar(wxStatusBarPtr):
|
|
def __init__(self,arg0,arg1,*args) :
|
|
argl = map(None,args)
|
|
try: argl[0] = argl[0].this
|
|
except: pass
|
|
try: argl[1] = argl[1].this
|
|
except: pass
|
|
args = tuple(argl)
|
|
self.this = apply(stattoolc.new_wxStatusBar,(arg0.this,arg1,)+args)
|
|
self.thisown = 1
|
|
wx._StdWindowCallbacks(self)
|
|
|
|
|
|
|
|
|
|
class wxToolBarToolPtr :
|
|
def __init__(self,this):
|
|
self.this = this
|
|
self.thisown = 0
|
|
def __del__(self):
|
|
if self.thisown == 1 :
|
|
stattoolc.delete_wxToolBarTool(self.this)
|
|
def __setattr__(self,name,value):
|
|
if name == "m_toolStyle" :
|
|
stattoolc.wxToolBarTool_m_toolStyle_set(self.this,value)
|
|
return
|
|
if name == "m_clientData" :
|
|
stattoolc.wxToolBarTool_m_clientData_set(self.this,value)
|
|
return
|
|
if name == "m_index" :
|
|
stattoolc.wxToolBarTool_m_index_set(self.this,value)
|
|
return
|
|
if name == "m_toggleState" :
|
|
stattoolc.wxToolBarTool_m_toggleState_set(self.this,value)
|
|
return
|
|
if name == "m_isToggle" :
|
|
stattoolc.wxToolBarTool_m_isToggle_set(self.this,value)
|
|
return
|
|
if name == "m_deleteSecondBitmap" :
|
|
stattoolc.wxToolBarTool_m_deleteSecondBitmap_set(self.this,value)
|
|
return
|
|
if name == "m_enabled" :
|
|
stattoolc.wxToolBarTool_m_enabled_set(self.this,value)
|
|
return
|
|
if name == "m_bitmap1" :
|
|
stattoolc.wxToolBarTool_m_bitmap1_set(self.this,value.this)
|
|
return
|
|
if name == "m_bitmap2" :
|
|
stattoolc.wxToolBarTool_m_bitmap2_set(self.this,value.this)
|
|
return
|
|
if name == "m_isMenuCommand" :
|
|
stattoolc.wxToolBarTool_m_isMenuCommand_set(self.this,value)
|
|
return
|
|
if name == "m_shortHelpString" :
|
|
stattoolc.wxToolBarTool_m_shortHelpString_set(self.this,value)
|
|
return
|
|
if name == "m_longHelpString" :
|
|
stattoolc.wxToolBarTool_m_longHelpString_set(self.this,value)
|
|
return
|
|
self.__dict__[name] = value
|
|
def __getattr__(self,name):
|
|
if name == "m_toolStyle" :
|
|
return stattoolc.wxToolBarTool_m_toolStyle_get(self.this)
|
|
if name == "m_clientData" :
|
|
return stattoolc.wxToolBarTool_m_clientData_get(self.this)
|
|
if name == "m_index" :
|
|
return stattoolc.wxToolBarTool_m_index_get(self.this)
|
|
if name == "m_toggleState" :
|
|
return stattoolc.wxToolBarTool_m_toggleState_get(self.this)
|
|
if name == "m_isToggle" :
|
|
return stattoolc.wxToolBarTool_m_isToggle_get(self.this)
|
|
if name == "m_deleteSecondBitmap" :
|
|
return stattoolc.wxToolBarTool_m_deleteSecondBitmap_get(self.this)
|
|
if name == "m_enabled" :
|
|
return stattoolc.wxToolBarTool_m_enabled_get(self.this)
|
|
if name == "m_bitmap1" :
|
|
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap1_get(self.this))
|
|
if name == "m_bitmap2" :
|
|
return wxBitmapPtr(stattoolc.wxToolBarTool_m_bitmap2_get(self.this))
|
|
if name == "m_isMenuCommand" :
|
|
return stattoolc.wxToolBarTool_m_isMenuCommand_get(self.this)
|
|
if name == "m_shortHelpString" :
|
|
return stattoolc.wxToolBarTool_m_shortHelpString_get(self.this)
|
|
if name == "m_longHelpString" :
|
|
return stattoolc.wxToolBarTool_m_longHelpString_get(self.this)
|
|
raise AttributeError,name
|
|
def __repr__(self):
|
|
return "<C wxToolBarTool instance>"
|
|
class wxToolBarTool(wxToolBarToolPtr):
|
|
def __init__(self) :
|
|
self.this = stattoolc.new_wxToolBarTool()
|
|
self.thisown = 1
|
|
|
|
|
|
|
|
|
|
class wxToolBarPtr(wxControlPtr):
|
|
def __init__(self,this):
|
|
self.this = this
|
|
self.thisown = 0
|
|
def AddSeparator(self):
|
|
val = stattoolc.wxToolBar_AddSeparator(self.this)
|
|
return val
|
|
def AddTool(self,arg0,arg1,*args):
|
|
argl = map(None,args)
|
|
try: argl[0] = argl[0].this
|
|
except: pass
|
|
args = tuple(argl)
|
|
val = apply(stattoolc.wxToolBar_AddTool,(self.this,arg0,arg1.this,)+args)
|
|
val = wxToolBarToolPtr(val)
|
|
return val
|
|
def AddSimpleTool(self,arg0,arg1,*args):
|
|
val = apply(stattoolc.wxToolBar_AddSimpleTool,(self.this,arg0,arg1.this,)+args)
|
|
val = wxToolBarToolPtr(val)
|
|
return val
|
|
def EnableTool(self,arg0,arg1):
|
|
val = stattoolc.wxToolBar_EnableTool(self.this,arg0,arg1)
|
|
return val
|
|
def GetToolEnabled(self,arg0):
|
|
val = stattoolc.wxToolBar_GetToolEnabled(self.this,arg0)
|
|
return val
|
|
def GetToolLongHelp(self,arg0):
|
|
val = stattoolc.wxToolBar_GetToolLongHelp(self.this,arg0)
|
|
return val
|
|
def GetToolPacking(self):
|
|
val = stattoolc.wxToolBar_GetToolPacking(self.this)
|
|
return val
|
|
def GetToolSeparation(self):
|
|
val = stattoolc.wxToolBar_GetToolSeparation(self.this)
|
|
return val
|
|
def GetToolShortHelp(self,arg0):
|
|
val = stattoolc.wxToolBar_GetToolShortHelp(self.this,arg0)
|
|
return val
|
|
def GetToolState(self,arg0):
|
|
val = stattoolc.wxToolBar_GetToolState(self.this,arg0)
|
|
return val
|
|
def Realize(self):
|
|
val = stattoolc.wxToolBar_Realize(self.this)
|
|
return val
|
|
def SetToolLongHelp(self,arg0,arg1):
|
|
val = stattoolc.wxToolBar_SetToolLongHelp(self.this,arg0,arg1)
|
|
return val
|
|
def SetToolShortHelp(self,arg0,arg1):
|
|
val = stattoolc.wxToolBar_SetToolShortHelp(self.this,arg0,arg1)
|
|
return val
|
|
def SetMargins(self,arg0):
|
|
val = stattoolc.wxToolBar_SetMargins(self.this,arg0.this)
|
|
return val
|
|
def SetToolPacking(self,arg0):
|
|
val = stattoolc.wxToolBar_SetToolPacking(self.this,arg0)
|
|
return val
|
|
def SetToolSeparation(self,arg0):
|
|
val = stattoolc.wxToolBar_SetToolSeparation(self.this,arg0)
|
|
return val
|
|
def ToggleTool(self,arg0,arg1):
|
|
val = stattoolc.wxToolBar_ToggleTool(self.this,arg0,arg1)
|
|
return val
|
|
def __repr__(self):
|
|
return "<C wxToolBar instance>"
|
|
class wxToolBar(wxToolBarPtr):
|
|
def __init__(self,arg0,arg1,*args) :
|
|
argl = map(None,args)
|
|
try: argl[0] = argl[0].this
|
|
except: pass
|
|
try: argl[1] = argl[1].this
|
|
except: pass
|
|
args = tuple(argl)
|
|
self.this = apply(stattoolc.new_wxToolBar,(arg0.this,arg1,)+args)
|
|
self.thisown = 1
|
|
wx._StdWindowCallbacks(self)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------- FUNCTION WRAPPERS ------------------
|
|
|
|
|
|
|
|
#-------------- VARIABLE WRAPPERS ------------------
|
|
|