reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8942133af3
commit
b850e7f334
@ -2375,6 +2375,14 @@ class RadioBox(_core.Control):
|
||||
"""GetItemToolTip(self, unsigned int item) -> ToolTip"""
|
||||
return _controls_.RadioBox_GetItemToolTip(*args, **kwargs)
|
||||
|
||||
def SetItemHelpText(*args, **kwargs):
|
||||
"""SetItemHelpText(self, unsigned int n, String helpText)"""
|
||||
return _controls_.RadioBox_SetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetItemHelpText(*args, **kwargs):
|
||||
"""GetItemHelpText(self, unsigned int n) -> String"""
|
||||
return _controls_.RadioBox_GetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@ -5924,6 +5932,16 @@ class HelpProvider(object):
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelp(*args, **kwargs)
|
||||
|
||||
def ShowHelpAtPoint(*args, **kwargs):
|
||||
"""
|
||||
ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool
|
||||
|
||||
Show help for the given window (uses window.GetHelpAtPoint()
|
||||
internally if applicable), return true if it was done or false if no
|
||||
help available for this window.
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelpAtPoint(*args, **kwargs)
|
||||
|
||||
def AddHelp(*args, **kwargs):
|
||||
"""
|
||||
AddHelp(self, Window window, String text)
|
||||
@ -6313,5 +6331,380 @@ _controls_.HyperlinkEvent_swigregister(HyperlinkEvent)
|
||||
|
||||
EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PB_USE_TEXTCTRL = _controls_.PB_USE_TEXTCTRL
|
||||
class PickerBase(_core.Control):
|
||||
"""
|
||||
Base abstract class for all pickers which support an auxiliary text
|
||||
control. This class handles all positioning and sizing of the text
|
||||
control like a an horizontal `wx.BoxSizer` would do, with the text
|
||||
control on the left of the picker button and the proportion of the
|
||||
picker fixed to value 1.
|
||||
"""
|
||||
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
|
||||
def CreateBase(*args, **kwargs):
|
||||
"""
|
||||
CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=0, Validator validator=DefaultValidator,
|
||||
String name=wxButtonNameStr) -> bool
|
||||
"""
|
||||
return _controls_.PickerBase_CreateBase(*args, **kwargs)
|
||||
|
||||
def SetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
SetInternalMargin(self, int newmargin)
|
||||
|
||||
Sets the margin (in pixels) between the picker and the text control.
|
||||
"""
|
||||
return _controls_.PickerBase_SetInternalMargin(*args, **kwargs)
|
||||
|
||||
def GetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
GetInternalMargin(self) -> int
|
||||
|
||||
Returns the margin (in pixels) between the picker and the text
|
||||
control.
|
||||
"""
|
||||
return _controls_.PickerBase_GetInternalMargin(*args, **kwargs)
|
||||
|
||||
def SetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
SetTextCtrlProportion(self, int prop)
|
||||
|
||||
Sets the proportion between the text control and the picker button.
|
||||
This is used to set relative sizes of the text contorl and the picker.
|
||||
The value passed to this function must be >= 1.
|
||||
"""
|
||||
return _controls_.PickerBase_SetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def GetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrlProportion(self) -> int
|
||||
|
||||
Returns the proportion between the text control and the picker.
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def HasTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
HasTextCtrl(self) -> bool
|
||||
|
||||
Returns true if this class has a valid text control (i.e. if the
|
||||
wx.PB_USE_TEXTCTRL style was given when creating this control).
|
||||
"""
|
||||
return _controls_.PickerBase_HasTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrl(self) -> TextCtrl
|
||||
|
||||
Returns a pointer to the text control handled by this class or None if
|
||||
the wx.PB_USE_TEXTCTRL style was not specified when this control was
|
||||
created.
|
||||
|
||||
Very important: the contents of the text control could be containing
|
||||
an invalid representation of the entity which can be chosen through
|
||||
the picker (e.g. the user entered an invalid colour syntax because of
|
||||
a typo). Thus you should never parse the content of the textctrl to
|
||||
get the user's input; rather use the derived-class getter
|
||||
(e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`,
|
||||
etc).
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetPickerCtrl(*args, **kwargs):
|
||||
"""GetPickerCtrl(self) -> Control"""
|
||||
return _controls_.PickerBase_GetPickerCtrl(*args, **kwargs)
|
||||
|
||||
_controls_.PickerBase_swigregister(PickerBase)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
CLRP_SHOW_LABEL = _controls_.CLRP_SHOW_LABEL
|
||||
CLRP_USE_TEXTCTRL = _controls_.CLRP_USE_TEXTCTRL
|
||||
CLRP_DEFAULT_STYLE = _controls_.CLRP_DEFAULT_STYLE
|
||||
class ColourPickerCtrl(PickerBase):
|
||||
"""
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
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 parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
_controls_.ColourPickerCtrl_swiginit(self,_controls_.new_ColourPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetColour(*args, **kwargs):
|
||||
"""
|
||||
GetColour(self) -> Colour
|
||||
|
||||
Returns the currently selected colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""
|
||||
SetColour(self, Colour col)
|
||||
|
||||
Set the displayed colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerCtrl_swigregister(ColourPickerCtrl)
|
||||
ColourPickerCtrlNameStr = cvar.ColourPickerCtrlNameStr
|
||||
|
||||
def PreColourPickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreColourPickerCtrl() -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
val = _controls_.new_PreColourPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_COLOURPICKER_CHANGED = _controls_.wxEVT_COMMAND_COLOURPICKER_CHANGED
|
||||
EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED, 1 )
|
||||
|
||||
class ColourPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ ColourPickerEvent class"""
|
||||
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, Object generator, int id, Colour col) -> ColourPickerEvent"""
|
||||
_controls_.ColourPickerEvent_swiginit(self,_controls_.new_ColourPickerEvent(*args, **kwargs))
|
||||
def GetColour(*args, **kwargs):
|
||||
"""GetColour(self) -> Colour"""
|
||||
return _controls_.ColourPickerEvent_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(self, Colour c)"""
|
||||
return _controls_.ColourPickerEvent_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerEvent_swigregister(ColourPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FLP_OPEN = _controls_.FLP_OPEN
|
||||
FLP_SAVE = _controls_.FLP_SAVE
|
||||
FLP_OVERWRITE_PROMPT = _controls_.FLP_OVERWRITE_PROMPT
|
||||
FLP_FILE_MUST_EXIST = _controls_.FLP_FILE_MUST_EXIST
|
||||
FLP_CHANGE_DIR = _controls_.FLP_CHANGE_DIR
|
||||
DIRP_DIR_MUST_EXIST = _controls_.DIRP_DIR_MUST_EXIST
|
||||
DIRP_CHANGE_DIR = _controls_.DIRP_CHANGE_DIR
|
||||
FLP_USE_TEXTCTRL = _controls_.FLP_USE_TEXTCTRL
|
||||
FLP_DEFAULT_STYLE = _controls_.FLP_DEFAULT_STYLE
|
||||
DIRP_USE_TEXTCTRL = _controls_.DIRP_USE_TEXTCTRL
|
||||
DIRP_DEFAULT_STYLE = _controls_.DIRP_DEFAULT_STYLE
|
||||
class FilePickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FilePickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> FilePickerCtrl
|
||||
"""
|
||||
_controls_.FilePickerCtrl_swiginit(self,_controls_.new_FilePickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FilePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FilePickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.FilePickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FilePickerCtrl_swigregister(FilePickerCtrl)
|
||||
FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr
|
||||
FileSelectorPromptStr = cvar.FileSelectorPromptStr
|
||||
DirPickerCtrlNameStr = cvar.DirPickerCtrlNameStr
|
||||
DirSelectorPromptStr = cvar.DirSelectorPromptStr
|
||||
FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
|
||||
|
||||
def PreFilePickerCtrl(*args, **kwargs):
|
||||
"""PreFilePickerCtrl() -> FilePickerCtrl"""
|
||||
val = _controls_.new_PreFilePickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
class DirPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ DirPickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> DirPickerCtrl
|
||||
"""
|
||||
_controls_.DirPickerCtrl_swiginit(self,_controls_.new_DirPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.DirPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.DirPickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.DirPickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.DirPickerCtrl_swigregister(DirPickerCtrl)
|
||||
|
||||
def PreDirPickerCtrl(*args, **kwargs):
|
||||
"""PreDirPickerCtrl() -> DirPickerCtrl"""
|
||||
val = _controls_.new_PreDirPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FILEPICKER_CHANGED = _controls_.wxEVT_COMMAND_FILEPICKER_CHANGED
|
||||
wxEVT_COMMAND_DIRPICKER_CHANGED = _controls_.wxEVT_COMMAND_DIRPICKER_CHANGED
|
||||
EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED, 1 )
|
||||
EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED, 1 )
|
||||
|
||||
class FileDirPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FileDirPickerEvent class"""
|
||||
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, Object generator, int id, String path) -> FileDirPickerEvent"""
|
||||
_controls_.FileDirPickerEvent_swiginit(self,_controls_.new_FileDirPickerEvent(*args, **kwargs))
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FileDirPickerEvent_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String p)"""
|
||||
return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FNTP_FONTDESC_AS_LABEL = _controls_.FNTP_FONTDESC_AS_LABEL
|
||||
FNTP_USEFONT_FOR_LABEL = _controls_.FNTP_USEFONT_FOR_LABEL
|
||||
FNTP_USE_TEXTCTRL = _controls_.FNTP_USE_TEXTCTRL
|
||||
FNTP_DEFAULT_STYLE = _controls_.FNTP_DEFAULT_STYLE
|
||||
class FontPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FontPickerCtrl class"""
|
||||
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 parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> FontPickerCtrl
|
||||
"""
|
||||
_controls_.FontPickerCtrl_swiginit(self,_controls_.new_FontPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FontPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetSelectedFont(*args, **kwargs):
|
||||
"""GetSelectedFont(self) -> Font"""
|
||||
return _controls_.FontPickerCtrl_GetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetSelectedFont(*args, **kwargs):
|
||||
"""SetSelectedFont(self, Font f)"""
|
||||
return _controls_.FontPickerCtrl_SetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetMaxPointSize(*args, **kwargs):
|
||||
"""SetMaxPointSize(self, unsigned int max)"""
|
||||
return _controls_.FontPickerCtrl_SetMaxPointSize(*args, **kwargs)
|
||||
|
||||
def GetMaxPointSize(*args, **kwargs):
|
||||
"""GetMaxPointSize(self) -> unsigned int"""
|
||||
return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerCtrl_swigregister(FontPickerCtrl)
|
||||
FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr
|
||||
|
||||
def PreFontPickerCtrl(*args, **kwargs):
|
||||
"""PreFontPickerCtrl() -> FontPickerCtrl"""
|
||||
val = _controls_.new_PreFontPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FONTPICKER_CHANGED = _controls_.wxEVT_COMMAND_FONTPICKER_CHANGED
|
||||
EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED, 1 )
|
||||
|
||||
class FontPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FontPickerEvent class"""
|
||||
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, Object generator, int id, Font f) -> FontPickerEvent"""
|
||||
_controls_.FontPickerEvent_swiginit(self,_controls_.new_FontPickerEvent(*args, **kwargs))
|
||||
def GetFont(*args, **kwargs):
|
||||
"""GetFont(self) -> Font"""
|
||||
return _controls_.FontPickerEvent_GetFont(*args, **kwargs)
|
||||
|
||||
def SetFont(*args, **kwargs):
|
||||
"""SetFont(self, Font c)"""
|
||||
return _controls_.FontPickerEvent_SetFont(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1691,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):
|
||||
@ -4818,6 +4816,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
|
||||
@ -9313,6 +9320,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
|
||||
|
@ -2512,85 +2512,86 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
||||
#define SWIGTYPE_p_wxGIFHandler swig_types[50]
|
||||
#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
|
||||
#define SWIGTYPE_p_wxGridSizer swig_types[52]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[53]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[54]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxImage swig_types[56]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[58]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[63]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[64]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[65]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[66]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[67]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[68]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[70]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[75]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxObject swig_types[82]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[83]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[84]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[89]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[91]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[93]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[100]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[101]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[102]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[103]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[104]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[105]
|
||||
#define SWIGTYPE_p_wxRect swig_types[106]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[107]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxSize swig_types[112]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[115]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[117]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[119]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[120]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[121]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[122]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[123]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[124]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[128]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[129]
|
||||
static swig_type_info *swig_types[131];
|
||||
static swig_module_info swig_module = {swig_types, 130, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_wxHelpEvent__Origin swig_types[53]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[54]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[56]
|
||||
#define SWIGTYPE_p_wxImage swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[58]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[61]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[64]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[65]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[66]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[67]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[68]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[69]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[75]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[82]
|
||||
#define SWIGTYPE_p_wxObject swig_types[83]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[84]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[91]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[93]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[100]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[101]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[102]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[103]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[104]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[105]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[106]
|
||||
#define SWIGTYPE_p_wxRect swig_types[107]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[112]
|
||||
#define SWIGTYPE_p_wxSize swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[115]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[117]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[119]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[120]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[121]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[122]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[123]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[124]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[128]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[129]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[130]
|
||||
static swig_type_info *swig_types[132];
|
||||
static swig_module_info swig_module = {swig_types, 131, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@ -3690,6 +3691,11 @@ SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
|
||||
#if wxUSE_UNICODE
|
||||
self->m_uniChar = uniChar;
|
||||
#endif
|
||||
}
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_From_unsigned_SS_int (unsigned int value)
|
||||
@ -9652,9 +9658,7 @@ SWIGINTERN PyObject *_wrap_new_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFSFile, SWIG_POINTER_NEW | 0 );
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
@ -10078,7 +10082,7 @@ SWIGINTERN PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *SWIGUNUSEDPARM(s
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -10632,7 +10636,7 @@ SWIGINTERN PyObject *_wrap_FileSystem_OpenFile(PyObject *SWIGUNUSEDPARM(self), P
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@ -10996,7 +11000,7 @@ SWIGINTERN PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(s
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -11133,7 +11137,7 @@ SWIGINTERN PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self),
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -11556,7 +11560,7 @@ SWIGINTERN PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(sel
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -22149,6 +22153,44 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
int arg2 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "uniChar", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxKeyEvent_SetUnicodeKey(arg1,arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
@ -36859,6 +36901,66 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxPoint *arg2 = 0 ;
|
||||
wxHelpEvent::Origin arg3 ;
|
||||
wxString result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxPoint temp2 ;
|
||||
void *argp3 ;
|
||||
int res3 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "pt",(char *) "origin", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
|
||||
if (!SWIG_IsOK(res3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
}
|
||||
if (!argp3) {
|
||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
} else {
|
||||
wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
|
||||
arg3 = *temp;
|
||||
if (SWIG_IsNewObj(res3)) delete temp;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -53106,6 +53208,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
|
||||
@ -53593,6 +53696,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
|
||||
{ (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
|
||||
{ (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -54592,6 +54696,7 @@ static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (
|
||||
static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
|
||||
@ -54724,6 +54829,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_wxGIFHandler,
|
||||
&_swigt__p_wxGridBagSizer,
|
||||
&_swigt__p_wxGridSizer,
|
||||
&_swigt__p_wxHelpEvent__Origin,
|
||||
&_swigt__p_wxICOHandler,
|
||||
&_swigt__p_wxIconizeEvent,
|
||||
&_swigt__p_wxIdleEvent,
|
||||
@ -54856,6 +54962,7 @@ static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{
|
||||
static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0}, {&_swigt__p_wxGridSizer, 0, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxICOHandler[] = { {&_swigt__p_wxICOHandler, 0, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxICOHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxICOHandler, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@ -54988,6 +55095,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_wxGIFHandler,
|
||||
_swigc__p_wxGridBagSizer,
|
||||
_swigc__p_wxGridSizer,
|
||||
_swigc__p_wxHelpEvent__Origin,
|
||||
_swigc__p_wxICOHandler,
|
||||
_swigc__p_wxIconizeEvent,
|
||||
_swigc__p_wxIdleEvent,
|
||||
|
@ -4338,7 +4338,7 @@ class ImageList(_core.Object):
|
||||
return _gdi_.ImageList_RemoveAll(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize() -> (width,height)"""
|
||||
"""GetSize(index) -> (width,height)"""
|
||||
return _gdi_.ImageList_GetSize(*args, **kwargs)
|
||||
|
||||
_gdi_.ImageList_swigregister(ImageList)
|
||||
|
@ -2362,6 +2362,14 @@ class RadioBox(_core.Control):
|
||||
"""GetItemToolTip(self, unsigned int item) -> ToolTip"""
|
||||
return _controls_.RadioBox_GetItemToolTip(*args, **kwargs)
|
||||
|
||||
def SetItemHelpText(*args, **kwargs):
|
||||
"""SetItemHelpText(self, unsigned int n, String helpText)"""
|
||||
return _controls_.RadioBox_SetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetItemHelpText(*args, **kwargs):
|
||||
"""GetItemHelpText(self, unsigned int n) -> String"""
|
||||
return _controls_.RadioBox_GetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@ -5911,6 +5919,16 @@ class HelpProvider(object):
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelp(*args, **kwargs)
|
||||
|
||||
def ShowHelpAtPoint(*args, **kwargs):
|
||||
"""
|
||||
ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool
|
||||
|
||||
Show help for the given window (uses window.GetHelpAtPoint()
|
||||
internally if applicable), return true if it was done or false if no
|
||||
help available for this window.
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelpAtPoint(*args, **kwargs)
|
||||
|
||||
def AddHelp(*args, **kwargs):
|
||||
"""
|
||||
AddHelp(self, Window window, String text)
|
||||
@ -6300,5 +6318,380 @@ _controls_.HyperlinkEvent_swigregister(HyperlinkEvent)
|
||||
|
||||
EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PB_USE_TEXTCTRL = _controls_.PB_USE_TEXTCTRL
|
||||
class PickerBase(_core.Control):
|
||||
"""
|
||||
Base abstract class for all pickers which support an auxiliary text
|
||||
control. This class handles all positioning and sizing of the text
|
||||
control like a an horizontal `wx.BoxSizer` would do, with the text
|
||||
control on the left of the picker button and the proportion of the
|
||||
picker fixed to value 1.
|
||||
"""
|
||||
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
|
||||
def CreateBase(*args, **kwargs):
|
||||
"""
|
||||
CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=0, Validator validator=DefaultValidator,
|
||||
String name=wxButtonNameStr) -> bool
|
||||
"""
|
||||
return _controls_.PickerBase_CreateBase(*args, **kwargs)
|
||||
|
||||
def SetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
SetInternalMargin(self, int newmargin)
|
||||
|
||||
Sets the margin (in pixels) between the picker and the text control.
|
||||
"""
|
||||
return _controls_.PickerBase_SetInternalMargin(*args, **kwargs)
|
||||
|
||||
def GetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
GetInternalMargin(self) -> int
|
||||
|
||||
Returns the margin (in pixels) between the picker and the text
|
||||
control.
|
||||
"""
|
||||
return _controls_.PickerBase_GetInternalMargin(*args, **kwargs)
|
||||
|
||||
def SetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
SetTextCtrlProportion(self, int prop)
|
||||
|
||||
Sets the proportion between the text control and the picker button.
|
||||
This is used to set relative sizes of the text contorl and the picker.
|
||||
The value passed to this function must be >= 1.
|
||||
"""
|
||||
return _controls_.PickerBase_SetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def GetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrlProportion(self) -> int
|
||||
|
||||
Returns the proportion between the text control and the picker.
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def HasTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
HasTextCtrl(self) -> bool
|
||||
|
||||
Returns true if this class has a valid text control (i.e. if the
|
||||
wx.PB_USE_TEXTCTRL style was given when creating this control).
|
||||
"""
|
||||
return _controls_.PickerBase_HasTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrl(self) -> TextCtrl
|
||||
|
||||
Returns a pointer to the text control handled by this class or None if
|
||||
the wx.PB_USE_TEXTCTRL style was not specified when this control was
|
||||
created.
|
||||
|
||||
Very important: the contents of the text control could be containing
|
||||
an invalid representation of the entity which can be chosen through
|
||||
the picker (e.g. the user entered an invalid colour syntax because of
|
||||
a typo). Thus you should never parse the content of the textctrl to
|
||||
get the user's input; rather use the derived-class getter
|
||||
(e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`,
|
||||
etc).
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetPickerCtrl(*args, **kwargs):
|
||||
"""GetPickerCtrl(self) -> Control"""
|
||||
return _controls_.PickerBase_GetPickerCtrl(*args, **kwargs)
|
||||
|
||||
_controls_.PickerBase_swigregister(PickerBase)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
CLRP_SHOW_LABEL = _controls_.CLRP_SHOW_LABEL
|
||||
CLRP_USE_TEXTCTRL = _controls_.CLRP_USE_TEXTCTRL
|
||||
CLRP_DEFAULT_STYLE = _controls_.CLRP_DEFAULT_STYLE
|
||||
class ColourPickerCtrl(PickerBase):
|
||||
"""
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
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 parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
_controls_.ColourPickerCtrl_swiginit(self,_controls_.new_ColourPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetColour(*args, **kwargs):
|
||||
"""
|
||||
GetColour(self) -> Colour
|
||||
|
||||
Returns the currently selected colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""
|
||||
SetColour(self, Colour col)
|
||||
|
||||
Set the displayed colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerCtrl_swigregister(ColourPickerCtrl)
|
||||
ColourPickerCtrlNameStr = cvar.ColourPickerCtrlNameStr
|
||||
|
||||
def PreColourPickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreColourPickerCtrl() -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
val = _controls_.new_PreColourPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_COLOURPICKER_CHANGED = _controls_.wxEVT_COMMAND_COLOURPICKER_CHANGED
|
||||
EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED, 1 )
|
||||
|
||||
class ColourPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ ColourPickerEvent class"""
|
||||
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, Object generator, int id, Colour col) -> ColourPickerEvent"""
|
||||
_controls_.ColourPickerEvent_swiginit(self,_controls_.new_ColourPickerEvent(*args, **kwargs))
|
||||
def GetColour(*args, **kwargs):
|
||||
"""GetColour(self) -> Colour"""
|
||||
return _controls_.ColourPickerEvent_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(self, Colour c)"""
|
||||
return _controls_.ColourPickerEvent_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerEvent_swigregister(ColourPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FLP_OPEN = _controls_.FLP_OPEN
|
||||
FLP_SAVE = _controls_.FLP_SAVE
|
||||
FLP_OVERWRITE_PROMPT = _controls_.FLP_OVERWRITE_PROMPT
|
||||
FLP_FILE_MUST_EXIST = _controls_.FLP_FILE_MUST_EXIST
|
||||
FLP_CHANGE_DIR = _controls_.FLP_CHANGE_DIR
|
||||
DIRP_DIR_MUST_EXIST = _controls_.DIRP_DIR_MUST_EXIST
|
||||
DIRP_CHANGE_DIR = _controls_.DIRP_CHANGE_DIR
|
||||
FLP_USE_TEXTCTRL = _controls_.FLP_USE_TEXTCTRL
|
||||
FLP_DEFAULT_STYLE = _controls_.FLP_DEFAULT_STYLE
|
||||
DIRP_USE_TEXTCTRL = _controls_.DIRP_USE_TEXTCTRL
|
||||
DIRP_DEFAULT_STYLE = _controls_.DIRP_DEFAULT_STYLE
|
||||
class FilePickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FilePickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> FilePickerCtrl
|
||||
"""
|
||||
_controls_.FilePickerCtrl_swiginit(self,_controls_.new_FilePickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FilePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FilePickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.FilePickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FilePickerCtrl_swigregister(FilePickerCtrl)
|
||||
FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr
|
||||
FileSelectorPromptStr = cvar.FileSelectorPromptStr
|
||||
DirPickerCtrlNameStr = cvar.DirPickerCtrlNameStr
|
||||
DirSelectorPromptStr = cvar.DirSelectorPromptStr
|
||||
FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
|
||||
|
||||
def PreFilePickerCtrl(*args, **kwargs):
|
||||
"""PreFilePickerCtrl() -> FilePickerCtrl"""
|
||||
val = _controls_.new_PreFilePickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
class DirPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ DirPickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> DirPickerCtrl
|
||||
"""
|
||||
_controls_.DirPickerCtrl_swiginit(self,_controls_.new_DirPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.DirPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.DirPickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.DirPickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.DirPickerCtrl_swigregister(DirPickerCtrl)
|
||||
|
||||
def PreDirPickerCtrl(*args, **kwargs):
|
||||
"""PreDirPickerCtrl() -> DirPickerCtrl"""
|
||||
val = _controls_.new_PreDirPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FILEPICKER_CHANGED = _controls_.wxEVT_COMMAND_FILEPICKER_CHANGED
|
||||
wxEVT_COMMAND_DIRPICKER_CHANGED = _controls_.wxEVT_COMMAND_DIRPICKER_CHANGED
|
||||
EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED, 1 )
|
||||
EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED, 1 )
|
||||
|
||||
class FileDirPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FileDirPickerEvent class"""
|
||||
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, Object generator, int id, String path) -> FileDirPickerEvent"""
|
||||
_controls_.FileDirPickerEvent_swiginit(self,_controls_.new_FileDirPickerEvent(*args, **kwargs))
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FileDirPickerEvent_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String p)"""
|
||||
return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FNTP_FONTDESC_AS_LABEL = _controls_.FNTP_FONTDESC_AS_LABEL
|
||||
FNTP_USEFONT_FOR_LABEL = _controls_.FNTP_USEFONT_FOR_LABEL
|
||||
FNTP_USE_TEXTCTRL = _controls_.FNTP_USE_TEXTCTRL
|
||||
FNTP_DEFAULT_STYLE = _controls_.FNTP_DEFAULT_STYLE
|
||||
class FontPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FontPickerCtrl class"""
|
||||
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 parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> FontPickerCtrl
|
||||
"""
|
||||
_controls_.FontPickerCtrl_swiginit(self,_controls_.new_FontPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FontPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetSelectedFont(*args, **kwargs):
|
||||
"""GetSelectedFont(self) -> Font"""
|
||||
return _controls_.FontPickerCtrl_GetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetSelectedFont(*args, **kwargs):
|
||||
"""SetSelectedFont(self, Font f)"""
|
||||
return _controls_.FontPickerCtrl_SetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetMaxPointSize(*args, **kwargs):
|
||||
"""SetMaxPointSize(self, unsigned int max)"""
|
||||
return _controls_.FontPickerCtrl_SetMaxPointSize(*args, **kwargs)
|
||||
|
||||
def GetMaxPointSize(*args, **kwargs):
|
||||
"""GetMaxPointSize(self) -> unsigned int"""
|
||||
return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerCtrl_swigregister(FontPickerCtrl)
|
||||
FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr
|
||||
|
||||
def PreFontPickerCtrl(*args, **kwargs):
|
||||
"""PreFontPickerCtrl() -> FontPickerCtrl"""
|
||||
val = _controls_.new_PreFontPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FONTPICKER_CHANGED = _controls_.wxEVT_COMMAND_FONTPICKER_CHANGED
|
||||
EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED, 1 )
|
||||
|
||||
class FontPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FontPickerEvent class"""
|
||||
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, Object generator, int id, Font f) -> FontPickerEvent"""
|
||||
_controls_.FontPickerEvent_swiginit(self,_controls_.new_FontPickerEvent(*args, **kwargs))
|
||||
def GetFont(*args, **kwargs):
|
||||
"""GetFont(self) -> Font"""
|
||||
return _controls_.FontPickerEvent_GetFont(*args, **kwargs)
|
||||
|
||||
def SetFont(*args, **kwargs):
|
||||
"""SetFont(self, Font c)"""
|
||||
return _controls_.FontPickerEvent_SetFont(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1691,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):
|
||||
@ -4818,6 +4816,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
|
||||
@ -9313,6 +9320,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
|
||||
|
@ -2512,85 +2512,86 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
||||
#define SWIGTYPE_p_wxGIFHandler swig_types[50]
|
||||
#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
|
||||
#define SWIGTYPE_p_wxGridSizer swig_types[52]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[53]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[54]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxImage swig_types[56]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[58]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[63]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[64]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[65]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[66]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[67]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[68]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[70]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[75]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxObject swig_types[82]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[83]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[84]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[89]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[91]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[93]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[100]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[101]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[102]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[103]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[104]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[105]
|
||||
#define SWIGTYPE_p_wxRect swig_types[106]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[107]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxSize swig_types[112]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[115]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[117]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[119]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[120]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[121]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[122]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[123]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[124]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[128]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[129]
|
||||
static swig_type_info *swig_types[131];
|
||||
static swig_module_info swig_module = {swig_types, 130, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_wxHelpEvent__Origin swig_types[53]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[54]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[56]
|
||||
#define SWIGTYPE_p_wxImage swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[58]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[61]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[64]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[65]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[66]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[67]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[68]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[69]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[75]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[82]
|
||||
#define SWIGTYPE_p_wxObject swig_types[83]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[84]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[91]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[93]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[100]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[101]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[102]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[103]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[104]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[105]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[106]
|
||||
#define SWIGTYPE_p_wxRect swig_types[107]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[112]
|
||||
#define SWIGTYPE_p_wxSize swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[115]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[117]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[119]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[120]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[121]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[122]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[123]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[124]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[128]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[129]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[130]
|
||||
static swig_type_info *swig_types[132];
|
||||
static swig_module_info swig_module = {swig_types, 131, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@ -3690,6 +3691,11 @@ SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
|
||||
#if wxUSE_UNICODE
|
||||
self->m_uniChar = uniChar;
|
||||
#endif
|
||||
}
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_From_unsigned_SS_int (unsigned int value)
|
||||
@ -9651,9 +9657,7 @@ SWIGINTERN PyObject *_wrap_new_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFSFile, SWIG_POINTER_NEW | 0 );
|
||||
{
|
||||
if (temp2)
|
||||
delete arg2;
|
||||
@ -10077,7 +10081,7 @@ SWIGINTERN PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *SWIGUNUSEDPARM(s
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -10631,7 +10635,7 @@ SWIGINTERN PyObject *_wrap_FileSystem_OpenFile(PyObject *SWIGUNUSEDPARM(self), P
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@ -10995,7 +10999,7 @@ SWIGINTERN PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(s
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -11132,7 +11136,7 @@ SWIGINTERN PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self),
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -11555,7 +11559,7 @@ SWIGINTERN PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(sel
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
||||
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@ -22148,6 +22152,44 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
int arg2 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "uniChar", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxKeyEvent_SetUnicodeKey(arg1,arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
@ -36858,6 +36900,66 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxPoint *arg2 = 0 ;
|
||||
wxHelpEvent::Origin arg3 ;
|
||||
wxString result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxPoint temp2 ;
|
||||
void *argp3 ;
|
||||
int res3 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "pt",(char *) "origin", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
|
||||
if (!SWIG_IsOK(res3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
}
|
||||
if (!argp3) {
|
||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
} else {
|
||||
wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
|
||||
arg3 = *temp;
|
||||
if (SWIG_IsNewObj(res3)) delete temp;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -53105,6 +53207,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
|
||||
@ -53592,6 +53695,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
|
||||
{ (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
|
||||
{ (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -54591,6 +54695,7 @@ static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (
|
||||
static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
|
||||
@ -54723,6 +54828,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_wxGIFHandler,
|
||||
&_swigt__p_wxGridBagSizer,
|
||||
&_swigt__p_wxGridSizer,
|
||||
&_swigt__p_wxHelpEvent__Origin,
|
||||
&_swigt__p_wxICOHandler,
|
||||
&_swigt__p_wxIconizeEvent,
|
||||
&_swigt__p_wxIdleEvent,
|
||||
@ -54855,6 +54961,7 @@ static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{
|
||||
static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0}, {&_swigt__p_wxGridSizer, 0, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxICOHandler[] = { {&_swigt__p_wxICOHandler, 0, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxICOHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxICOHandler, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@ -54987,6 +55094,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_wxGIFHandler,
|
||||
_swigc__p_wxGridBagSizer,
|
||||
_swigc__p_wxGridSizer,
|
||||
_swigc__p_wxHelpEvent__Origin,
|
||||
_swigc__p_wxICOHandler,
|
||||
_swigc__p_wxIconizeEvent,
|
||||
_swigc__p_wxIdleEvent,
|
||||
|
@ -4365,7 +4365,7 @@ class ImageList(_core.Object):
|
||||
return _gdi_.ImageList_RemoveAll(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize() -> (width,height)"""
|
||||
"""GetSize(index) -> (width,height)"""
|
||||
return _gdi_.ImageList_GetSize(*args, **kwargs)
|
||||
|
||||
_gdi_.ImageList_swigregister(ImageList)
|
||||
|
@ -2383,6 +2383,14 @@ class RadioBox(_core.Control):
|
||||
"""GetItemToolTip(self, unsigned int item) -> ToolTip"""
|
||||
return _controls_.RadioBox_GetItemToolTip(*args, **kwargs)
|
||||
|
||||
def SetItemHelpText(*args, **kwargs):
|
||||
"""SetItemHelpText(self, unsigned int n, String helpText)"""
|
||||
return _controls_.RadioBox_SetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetItemHelpText(*args, **kwargs):
|
||||
"""GetItemHelpText(self, unsigned int n) -> String"""
|
||||
return _controls_.RadioBox_GetItemHelpText(*args, **kwargs)
|
||||
|
||||
def GetClassDefaultAttributes(*args, **kwargs):
|
||||
"""
|
||||
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
|
||||
@ -5943,6 +5951,16 @@ class HelpProvider(object):
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelp(*args, **kwargs)
|
||||
|
||||
def ShowHelpAtPoint(*args, **kwargs):
|
||||
"""
|
||||
ShowHelpAtPoint(self, wxWindowBase window, Point pt, int origin) -> bool
|
||||
|
||||
Show help for the given window (uses window.GetHelpAtPoint()
|
||||
internally if applicable), return true if it was done or false if no
|
||||
help available for this window.
|
||||
"""
|
||||
return _controls_.HelpProvider_ShowHelpAtPoint(*args, **kwargs)
|
||||
|
||||
def AddHelp(*args, **kwargs):
|
||||
"""
|
||||
AddHelp(self, Window window, String text)
|
||||
@ -6332,5 +6350,380 @@ _controls_.HyperlinkEvent_swigregister(HyperlinkEvent)
|
||||
|
||||
EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
PB_USE_TEXTCTRL = _controls_.PB_USE_TEXTCTRL
|
||||
class PickerBase(_core.Control):
|
||||
"""
|
||||
Base abstract class for all pickers which support an auxiliary text
|
||||
control. This class handles all positioning and sizing of the text
|
||||
control like a an horizontal `wx.BoxSizer` would do, with the text
|
||||
control on the left of the picker button and the proportion of the
|
||||
picker fixed to value 1.
|
||||
"""
|
||||
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
|
||||
def CreateBase(*args, **kwargs):
|
||||
"""
|
||||
CreateBase(self, Window parent, int id, String text=wxEmptyString, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=0, Validator validator=DefaultValidator,
|
||||
String name=wxButtonNameStr) -> bool
|
||||
"""
|
||||
return _controls_.PickerBase_CreateBase(*args, **kwargs)
|
||||
|
||||
def SetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
SetInternalMargin(self, int newmargin)
|
||||
|
||||
Sets the margin (in pixels) between the picker and the text control.
|
||||
"""
|
||||
return _controls_.PickerBase_SetInternalMargin(*args, **kwargs)
|
||||
|
||||
def GetInternalMargin(*args, **kwargs):
|
||||
"""
|
||||
GetInternalMargin(self) -> int
|
||||
|
||||
Returns the margin (in pixels) between the picker and the text
|
||||
control.
|
||||
"""
|
||||
return _controls_.PickerBase_GetInternalMargin(*args, **kwargs)
|
||||
|
||||
def SetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
SetTextCtrlProportion(self, int prop)
|
||||
|
||||
Sets the proportion between the text control and the picker button.
|
||||
This is used to set relative sizes of the text contorl and the picker.
|
||||
The value passed to this function must be >= 1.
|
||||
"""
|
||||
return _controls_.PickerBase_SetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def GetTextCtrlProportion(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrlProportion(self) -> int
|
||||
|
||||
Returns the proportion between the text control and the picker.
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrlProportion(*args, **kwargs)
|
||||
|
||||
def HasTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
HasTextCtrl(self) -> bool
|
||||
|
||||
Returns true if this class has a valid text control (i.e. if the
|
||||
wx.PB_USE_TEXTCTRL style was given when creating this control).
|
||||
"""
|
||||
return _controls_.PickerBase_HasTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetTextCtrl(*args, **kwargs):
|
||||
"""
|
||||
GetTextCtrl(self) -> TextCtrl
|
||||
|
||||
Returns a pointer to the text control handled by this class or None if
|
||||
the wx.PB_USE_TEXTCTRL style was not specified when this control was
|
||||
created.
|
||||
|
||||
Very important: the contents of the text control could be containing
|
||||
an invalid representation of the entity which can be chosen through
|
||||
the picker (e.g. the user entered an invalid colour syntax because of
|
||||
a typo). Thus you should never parse the content of the textctrl to
|
||||
get the user's input; rather use the derived-class getter
|
||||
(e.g. `wx.ColourPickerCtrl.GetColour`, `wx.FilePickerCtrl.GetPath`,
|
||||
etc).
|
||||
"""
|
||||
return _controls_.PickerBase_GetTextCtrl(*args, **kwargs)
|
||||
|
||||
def GetPickerCtrl(*args, **kwargs):
|
||||
"""GetPickerCtrl(self) -> Control"""
|
||||
return _controls_.PickerBase_GetPickerCtrl(*args, **kwargs)
|
||||
|
||||
_controls_.PickerBase_swigregister(PickerBase)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
CLRP_SHOW_LABEL = _controls_.CLRP_SHOW_LABEL
|
||||
CLRP_USE_TEXTCTRL = _controls_.CLRP_USE_TEXTCTRL
|
||||
CLRP_DEFAULT_STYLE = _controls_.CLRP_DEFAULT_STYLE
|
||||
class ColourPickerCtrl(PickerBase):
|
||||
"""
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
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 parent, int id=-1, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=CLRP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
_controls_.ColourPickerCtrl_swiginit(self,_controls_.new_ColourPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Colour col=*wxBLACK, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=CLRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=ColourPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetColour(*args, **kwargs):
|
||||
"""
|
||||
GetColour(self) -> Colour
|
||||
|
||||
Returns the currently selected colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""
|
||||
SetColour(self, Colour col)
|
||||
|
||||
Set the displayed colour.
|
||||
"""
|
||||
return _controls_.ColourPickerCtrl_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerCtrl_swigregister(ColourPickerCtrl)
|
||||
ColourPickerCtrlNameStr = cvar.ColourPickerCtrlNameStr
|
||||
|
||||
def PreColourPickerCtrl(*args, **kwargs):
|
||||
"""
|
||||
PreColourPickerCtrl() -> ColourPickerCtrl
|
||||
|
||||
This control allows the user to select a colour. The generic
|
||||
implementation is a button which brings up a `wx.ColourDialog` when
|
||||
clicked. Native implementations may differ but this is usually a
|
||||
(small) widget which give access to the colour-chooser dialog.
|
||||
"""
|
||||
val = _controls_.new_PreColourPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_COLOURPICKER_CHANGED = _controls_.wxEVT_COMMAND_COLOURPICKER_CHANGED
|
||||
EVT_COLOURPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_COLOURPICKER_CHANGED, 1 )
|
||||
|
||||
class ColourPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ ColourPickerEvent class"""
|
||||
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, Object generator, int id, Colour col) -> ColourPickerEvent"""
|
||||
_controls_.ColourPickerEvent_swiginit(self,_controls_.new_ColourPickerEvent(*args, **kwargs))
|
||||
def GetColour(*args, **kwargs):
|
||||
"""GetColour(self) -> Colour"""
|
||||
return _controls_.ColourPickerEvent_GetColour(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(self, Colour c)"""
|
||||
return _controls_.ColourPickerEvent_SetColour(*args, **kwargs)
|
||||
|
||||
_controls_.ColourPickerEvent_swigregister(ColourPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FLP_OPEN = _controls_.FLP_OPEN
|
||||
FLP_SAVE = _controls_.FLP_SAVE
|
||||
FLP_OVERWRITE_PROMPT = _controls_.FLP_OVERWRITE_PROMPT
|
||||
FLP_FILE_MUST_EXIST = _controls_.FLP_FILE_MUST_EXIST
|
||||
FLP_CHANGE_DIR = _controls_.FLP_CHANGE_DIR
|
||||
DIRP_DIR_MUST_EXIST = _controls_.DIRP_DIR_MUST_EXIST
|
||||
DIRP_CHANGE_DIR = _controls_.DIRP_CHANGE_DIR
|
||||
FLP_USE_TEXTCTRL = _controls_.FLP_USE_TEXTCTRL
|
||||
FLP_DEFAULT_STYLE = _controls_.FLP_DEFAULT_STYLE
|
||||
DIRP_USE_TEXTCTRL = _controls_.DIRP_USE_TEXTCTRL
|
||||
DIRP_DEFAULT_STYLE = _controls_.DIRP_DEFAULT_STYLE
|
||||
class FilePickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FilePickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> FilePickerCtrl
|
||||
"""
|
||||
_controls_.FilePickerCtrl_swiginit(self,_controls_.new_FilePickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=FileSelectorPromptStr, String wildcard=FileSelectorDefaultWildcardStr,
|
||||
Point pos=DefaultPosition,
|
||||
Size size=DefaultSize,
|
||||
long style=FLP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FilePickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FilePickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FilePickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.FilePickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FilePickerCtrl_swigregister(FilePickerCtrl)
|
||||
FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr
|
||||
FileSelectorPromptStr = cvar.FileSelectorPromptStr
|
||||
DirPickerCtrlNameStr = cvar.DirPickerCtrlNameStr
|
||||
DirSelectorPromptStr = cvar.DirSelectorPromptStr
|
||||
FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
|
||||
|
||||
def PreFilePickerCtrl(*args, **kwargs):
|
||||
"""PreFilePickerCtrl() -> FilePickerCtrl"""
|
||||
val = _controls_.new_PreFilePickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
class DirPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ DirPickerCtrl class"""
|
||||
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 parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> DirPickerCtrl
|
||||
"""
|
||||
_controls_.DirPickerCtrl_swiginit(self,_controls_.new_DirPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, String path=EmptyString,
|
||||
String message=DirSelectorPromptStr, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=DIRP_DEFAULT_STYLE,
|
||||
Validator validator=DefaultValidator,
|
||||
String name=DirPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.DirPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.DirPickerCtrl_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String str)"""
|
||||
return _controls_.DirPickerCtrl_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.DirPickerCtrl_swigregister(DirPickerCtrl)
|
||||
|
||||
def PreDirPickerCtrl(*args, **kwargs):
|
||||
"""PreDirPickerCtrl() -> DirPickerCtrl"""
|
||||
val = _controls_.new_PreDirPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FILEPICKER_CHANGED = _controls_.wxEVT_COMMAND_FILEPICKER_CHANGED
|
||||
wxEVT_COMMAND_DIRPICKER_CHANGED = _controls_.wxEVT_COMMAND_DIRPICKER_CHANGED
|
||||
EVT_FILEPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FILEPICKER_CHANGED, 1 )
|
||||
EVT_DIRPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_DIRPICKER_CHANGED, 1 )
|
||||
|
||||
class FileDirPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FileDirPickerEvent class"""
|
||||
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, Object generator, int id, String path) -> FileDirPickerEvent"""
|
||||
_controls_.FileDirPickerEvent_swiginit(self,_controls_.new_FileDirPickerEvent(*args, **kwargs))
|
||||
def GetPath(*args, **kwargs):
|
||||
"""GetPath(self) -> String"""
|
||||
return _controls_.FileDirPickerEvent_GetPath(*args, **kwargs)
|
||||
|
||||
def SetPath(*args, **kwargs):
|
||||
"""SetPath(self, String p)"""
|
||||
return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs)
|
||||
|
||||
_controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
FNTP_FONTDESC_AS_LABEL = _controls_.FNTP_FONTDESC_AS_LABEL
|
||||
FNTP_USEFONT_FOR_LABEL = _controls_.FNTP_USEFONT_FOR_LABEL
|
||||
FNTP_USE_TEXTCTRL = _controls_.FNTP_USE_TEXTCTRL
|
||||
FNTP_DEFAULT_STYLE = _controls_.FNTP_DEFAULT_STYLE
|
||||
class FontPickerCtrl(PickerBase):
|
||||
"""Proxy of C++ FontPickerCtrl class"""
|
||||
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 parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> FontPickerCtrl
|
||||
"""
|
||||
_controls_.FontPickerCtrl_swiginit(self,_controls_.new_FontPickerCtrl(*args, **kwargs))
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id=-1, Font initial=*wxNORMAL_FONT,
|
||||
Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=FNTP_DEFAULT_STYLE, Validator validator=DefaultValidator,
|
||||
String name=FontPickerCtrlNameStr) -> bool
|
||||
"""
|
||||
return _controls_.FontPickerCtrl_Create(*args, **kwargs)
|
||||
|
||||
def GetSelectedFont(*args, **kwargs):
|
||||
"""GetSelectedFont(self) -> Font"""
|
||||
return _controls_.FontPickerCtrl_GetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetSelectedFont(*args, **kwargs):
|
||||
"""SetSelectedFont(self, Font f)"""
|
||||
return _controls_.FontPickerCtrl_SetSelectedFont(*args, **kwargs)
|
||||
|
||||
def SetMaxPointSize(*args, **kwargs):
|
||||
"""SetMaxPointSize(self, unsigned int max)"""
|
||||
return _controls_.FontPickerCtrl_SetMaxPointSize(*args, **kwargs)
|
||||
|
||||
def GetMaxPointSize(*args, **kwargs):
|
||||
"""GetMaxPointSize(self) -> unsigned int"""
|
||||
return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerCtrl_swigregister(FontPickerCtrl)
|
||||
FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr
|
||||
|
||||
def PreFontPickerCtrl(*args, **kwargs):
|
||||
"""PreFontPickerCtrl() -> FontPickerCtrl"""
|
||||
val = _controls_.new_PreFontPickerCtrl(*args, **kwargs)
|
||||
return val
|
||||
|
||||
wxEVT_COMMAND_FONTPICKER_CHANGED = _controls_.wxEVT_COMMAND_FONTPICKER_CHANGED
|
||||
EVT_FONTPICKER_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_FONTPICKER_CHANGED, 1 )
|
||||
|
||||
class FontPickerEvent(_core.CommandEvent):
|
||||
"""Proxy of C++ FontPickerEvent class"""
|
||||
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, Object generator, int id, Font f) -> FontPickerEvent"""
|
||||
_controls_.FontPickerEvent_swiginit(self,_controls_.new_FontPickerEvent(*args, **kwargs))
|
||||
def GetFont(*args, **kwargs):
|
||||
"""GetFont(self) -> Font"""
|
||||
return _controls_.FontPickerEvent_GetFont(*args, **kwargs)
|
||||
|
||||
def SetFont(*args, **kwargs):
|
||||
"""SetFont(self, Font c)"""
|
||||
return _controls_.FontPickerEvent_SetFont(*args, **kwargs)
|
||||
|
||||
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -4818,6 +4818,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
|
||||
@ -9317,6 +9326,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
|
||||
|
@ -2512,85 +2512,86 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags)
|
||||
#define SWIGTYPE_p_wxGIFHandler swig_types[50]
|
||||
#define SWIGTYPE_p_wxGridBagSizer swig_types[51]
|
||||
#define SWIGTYPE_p_wxGridSizer swig_types[52]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[53]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[54]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxImage swig_types[56]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[58]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[63]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[64]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[65]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[66]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[67]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[68]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[70]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[75]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxObject swig_types[82]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[83]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[84]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[89]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[91]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[93]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[100]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[101]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[102]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[103]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[104]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[105]
|
||||
#define SWIGTYPE_p_wxRect swig_types[106]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[107]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxSize swig_types[112]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[115]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[117]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[119]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[120]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[121]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[122]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[123]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[124]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[128]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[129]
|
||||
static swig_type_info *swig_types[131];
|
||||
static swig_module_info swig_module = {swig_types, 130, 0, 0, 0, 0};
|
||||
#define SWIGTYPE_p_wxHelpEvent__Origin swig_types[53]
|
||||
#define SWIGTYPE_p_wxICOHandler swig_types[54]
|
||||
#define SWIGTYPE_p_wxIconizeEvent swig_types[55]
|
||||
#define SWIGTYPE_p_wxIdleEvent swig_types[56]
|
||||
#define SWIGTYPE_p_wxImage swig_types[57]
|
||||
#define SWIGTYPE_p_wxImageHandler swig_types[58]
|
||||
#define SWIGTYPE_p_wxImageHistogram swig_types[59]
|
||||
#define SWIGTYPE_p_wxImage_HSVValue swig_types[60]
|
||||
#define SWIGTYPE_p_wxImage_RGBValue swig_types[61]
|
||||
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
|
||||
#define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
|
||||
#define SWIGTYPE_p_wxInputStream swig_types[64]
|
||||
#define SWIGTYPE_p_wxInternetFSHandler swig_types[65]
|
||||
#define SWIGTYPE_p_wxItemContainer swig_types[66]
|
||||
#define SWIGTYPE_p_wxJPEGHandler swig_types[67]
|
||||
#define SWIGTYPE_p_wxKeyEvent swig_types[68]
|
||||
#define SWIGTYPE_p_wxLayoutConstraints swig_types[69]
|
||||
#define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
|
||||
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[71]
|
||||
#define SWIGTYPE_p_wxMenu swig_types[72]
|
||||
#define SWIGTYPE_p_wxMenuBar swig_types[73]
|
||||
#define SWIGTYPE_p_wxMenuBarBase swig_types[74]
|
||||
#define SWIGTYPE_p_wxMenuEvent swig_types[75]
|
||||
#define SWIGTYPE_p_wxMenuItem swig_types[76]
|
||||
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[77]
|
||||
#define SWIGTYPE_p_wxMouseEvent swig_types[78]
|
||||
#define SWIGTYPE_p_wxMoveEvent swig_types[79]
|
||||
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[80]
|
||||
#define SWIGTYPE_p_wxNcPaintEvent swig_types[81]
|
||||
#define SWIGTYPE_p_wxNotifyEvent swig_types[82]
|
||||
#define SWIGTYPE_p_wxObject swig_types[83]
|
||||
#define SWIGTYPE_p_wxOutputStream swig_types[84]
|
||||
#define SWIGTYPE_p_wxPCXHandler swig_types[85]
|
||||
#define SWIGTYPE_p_wxPNGHandler swig_types[86]
|
||||
#define SWIGTYPE_p_wxPNMHandler swig_types[87]
|
||||
#define SWIGTYPE_p_wxPaintEvent swig_types[88]
|
||||
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[89]
|
||||
#define SWIGTYPE_p_wxPaperSize swig_types[90]
|
||||
#define SWIGTYPE_p_wxPoint swig_types[91]
|
||||
#define SWIGTYPE_p_wxPoint2D swig_types[92]
|
||||
#define SWIGTYPE_p_wxPropagateOnce swig_types[93]
|
||||
#define SWIGTYPE_p_wxPropagationDisabler swig_types[94]
|
||||
#define SWIGTYPE_p_wxPyApp swig_types[95]
|
||||
#define SWIGTYPE_p_wxPyCommandEvent swig_types[96]
|
||||
#define SWIGTYPE_p_wxPyDropTarget swig_types[97]
|
||||
#define SWIGTYPE_p_wxPyEvent swig_types[98]
|
||||
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[99]
|
||||
#define SWIGTYPE_p_wxPyImageHandler swig_types[100]
|
||||
#define SWIGTYPE_p_wxPyInputStream swig_types[101]
|
||||
#define SWIGTYPE_p_wxPySizer swig_types[102]
|
||||
#define SWIGTYPE_p_wxPyValidator swig_types[103]
|
||||
#define SWIGTYPE_p_wxQuantize swig_types[104]
|
||||
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[105]
|
||||
#define SWIGTYPE_p_wxRealPoint swig_types[106]
|
||||
#define SWIGTYPE_p_wxRect swig_types[107]
|
||||
#define SWIGTYPE_p_wxRegion swig_types[108]
|
||||
#define SWIGTYPE_p_wxScrollEvent swig_types[109]
|
||||
#define SWIGTYPE_p_wxScrollWinEvent swig_types[110]
|
||||
#define SWIGTYPE_p_wxSetCursorEvent swig_types[111]
|
||||
#define SWIGTYPE_p_wxShowEvent swig_types[112]
|
||||
#define SWIGTYPE_p_wxSize swig_types[113]
|
||||
#define SWIGTYPE_p_wxSizeEvent swig_types[114]
|
||||
#define SWIGTYPE_p_wxSizer swig_types[115]
|
||||
#define SWIGTYPE_p_wxSizerItem swig_types[116]
|
||||
#define SWIGTYPE_p_wxStaticBox swig_types[117]
|
||||
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[118]
|
||||
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[119]
|
||||
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[120]
|
||||
#define SWIGTYPE_p_wxTIFFHandler swig_types[121]
|
||||
#define SWIGTYPE_p_wxToolTip swig_types[122]
|
||||
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[123]
|
||||
#define SWIGTYPE_p_wxValidator swig_types[124]
|
||||
#define SWIGTYPE_p_wxVisualAttributes swig_types[125]
|
||||
#define SWIGTYPE_p_wxWindow swig_types[126]
|
||||
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[127]
|
||||
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[128]
|
||||
#define SWIGTYPE_p_wxXPMHandler swig_types[129]
|
||||
#define SWIGTYPE_p_wxZipFSHandler swig_types[130]
|
||||
static swig_type_info *swig_types[132];
|
||||
static swig_module_info swig_module = {swig_types, 131, 0, 0, 0, 0};
|
||||
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
||||
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
||||
|
||||
@ -3690,6 +3691,11 @@ SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
|
||||
#if wxUSE_UNICODE
|
||||
self->m_uniChar = uniChar;
|
||||
#endif
|
||||
}
|
||||
|
||||
SWIGINTERNINLINE PyObject *
|
||||
SWIG_From_unsigned_SS_int (unsigned int value)
|
||||
@ -22133,6 +22139,44 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
int arg2 ;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
int val2 ;
|
||||
int ecode2 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "uniChar", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
||||
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
||||
if (!SWIG_IsOK(ecode2)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
|
||||
}
|
||||
arg2 = static_cast< int >(val2);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxKeyEvent_SetUnicodeKey(arg1,arg2);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_Py_Void();
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
||||
@ -36884,6 +36928,66 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxPoint *arg2 = 0 ;
|
||||
wxHelpEvent::Origin arg3 ;
|
||||
wxString result;
|
||||
void *argp1 = 0 ;
|
||||
int res1 = 0 ;
|
||||
wxPoint temp2 ;
|
||||
void *argp3 ;
|
||||
int res3 = 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
char * kwnames[] = {
|
||||
(char *) "self",(char *) "pt",(char *) "origin", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
|
||||
if (!SWIG_IsOK(res3)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
}
|
||||
if (!argp3) {
|
||||
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
||||
} else {
|
||||
wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
|
||||
arg3 = *temp;
|
||||
if (SWIG_IsNewObj(res3)) delete temp;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
#if wxUSE_UNICODE
|
||||
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
||||
#else
|
||||
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
||||
#endif
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
@ -53131,6 +53235,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
|
||||
{ (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
|
||||
@ -53619,6 +53724,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
|
||||
{ (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
|
||||
{ (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@ -54618,6 +54724,7 @@ static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (
|
||||
static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
|
||||
static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
|
||||
@ -54750,6 +54857,7 @@ static swig_type_info *swig_type_initial[] = {
|
||||
&_swigt__p_wxGIFHandler,
|
||||
&_swigt__p_wxGridBagSizer,
|
||||
&_swigt__p_wxGridSizer,
|
||||
&_swigt__p_wxHelpEvent__Origin,
|
||||
&_swigt__p_wxICOHandler,
|
||||
&_swigt__p_wxIconizeEvent,
|
||||
&_swigt__p_wxIdleEvent,
|
||||
@ -54882,6 +54990,7 @@ static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{
|
||||
static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0}, {&_swigt__p_wxGridSizer, 0, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxICOHandler[] = { {&_swigt__p_wxICOHandler, 0, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxICOHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxICOHandler, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
|
||||
@ -55014,6 +55123,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
||||
_swigc__p_wxGIFHandler,
|
||||
_swigc__p_wxGridBagSizer,
|
||||
_swigc__p_wxGridSizer,
|
||||
_swigc__p_wxHelpEvent__Origin,
|
||||
_swigc__p_wxICOHandler,
|
||||
_swigc__p_wxIconizeEvent,
|
||||
_swigc__p_wxIdleEvent,
|
||||
|
@ -4461,7 +4461,7 @@ class ImageList(_core.Object):
|
||||
return _gdi_.ImageList_RemoveAll(*args, **kwargs)
|
||||
|
||||
def GetSize(*args, **kwargs):
|
||||
"""GetSize() -> (width,height)"""
|
||||
"""GetSize(index) -> (width,height)"""
|
||||
return _gdi_.ImageList_GetSize(*args, **kwargs)
|
||||
|
||||
_gdi_.ImageList_swigregister(ImageList)
|
||||
|
@ -4062,16 +4062,8 @@ SWIGINTERN wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ ret
|
||||
#ifndef wxHAS_POWER_EVENTS
|
||||
// Dummy class and other definitions for platforms that don't have them
|
||||
|
||||
class wxPowerEvent : public wxEvent
|
||||
{
|
||||
public:
|
||||
wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
|
||||
void Veto() {}
|
||||
bool IsVetoed() const { return false; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
|
||||
};
|
||||
|
||||
// See wxPython_int.h for wxPowerEvent
|
||||
|
||||
enum {
|
||||
wxEVT_POWER_SUSPENDING,
|
||||
wxEVT_POWER_SUSPENDED,
|
||||
|
Loading…
Reference in New Issue
Block a user