reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-09-08 03:31:18 +00:00
parent 8e1a5d3aa9
commit ac5d357a44
12 changed files with 1457 additions and 395 deletions
+71
View File
@@ -942,6 +942,10 @@ class Gauge(_core.Control):
return _controls_.Gauge_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
BezelFace = property(GetBezelFace,SetBezelFace,doc="See `GetBezelFace` and `SetBezelFace`")
Range = property(GetRange,SetRange,doc="See `GetRange` and `SetRange`")
ShadowWidth = property(GetShadowWidth,SetShadowWidth,doc="See `GetShadowWidth` and `SetShadowWidth`")
Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`")
_controls_.Gauge_swigregister(Gauge)
GaugeNameStr = cvar.GaugeNameStr
@@ -1399,6 +1403,7 @@ class ListBox(_core.ControlWithItems):
return _controls_.ListBox_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
Selections = property(GetSelections,doc="See `GetSelections`")
_controls_.ListBox_swigregister(ListBox)
ListBoxNameStr = cvar.ListBoxNameStr
@@ -3158,6 +3163,7 @@ class Listbook(BookCtrlBase):
"""GetListView(self) -> ListView"""
return _controls_.Listbook_GetListView(*args, **kwargs)
ListView = property(GetListView,doc="See `GetListView`")
_controls_.Listbook_swigregister(Listbook)
def PreListbook(*args, **kwargs):
@@ -4032,6 +4038,9 @@ class ListItemAttr(object):
args[0].thisown = 0
return val
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`")
_controls_.ListItemAttr_swigregister(ListItemAttr)
ListCtrlNameStr = cvar.ListCtrlNameStr
@@ -4172,6 +4181,19 @@ class ListItem(_core.Object):
m_data = property(_controls_.ListItem_m_data_get, _controls_.ListItem_m_data_set)
m_format = property(_controls_.ListItem_m_format_get, _controls_.ListItem_m_format_set)
m_width = property(_controls_.ListItem_m_width_get, _controls_.ListItem_m_width_set)
Align = property(GetAlign,SetAlign,doc="See `GetAlign` and `SetAlign`")
Attributes = property(GetAttributes,doc="See `GetAttributes`")
BackgroundColour = property(GetBackgroundColour,SetBackgroundColour,doc="See `GetBackgroundColour` and `SetBackgroundColour`")
Column = property(GetColumn,SetColumn,doc="See `GetColumn` and `SetColumn`")
Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
Image = property(GetImage,SetImage,doc="See `GetImage` and `SetImage`")
Mask = property(GetMask,SetMask,doc="See `GetMask` and `SetMask`")
State = property(GetState,SetState,doc="See `GetState` and `SetState`")
Text = property(GetText,SetText,doc="See `GetText` and `SetText`")
TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`")
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
_controls_.ListItem_swigregister(ListItem)
#---------------------------------------------------------------------------
@@ -4247,6 +4269,18 @@ class ListEvent(_core.NotifyEvent):
"""SetEditCanceled(self, bool editCancelled)"""
return _controls_.ListEvent_SetEditCanceled(*args, **kwargs)
CacheFrom = property(GetCacheFrom,doc="See `GetCacheFrom`")
CacheTo = property(GetCacheTo,doc="See `GetCacheTo`")
Column = property(GetColumn,doc="See `GetColumn`")
Data = property(GetData,doc="See `GetData`")
Image = property(GetImage,doc="See `GetImage`")
Index = property(GetIndex,doc="See `GetIndex`")
Item = property(GetItem,doc="See `GetItem`")
KeyCode = property(GetKeyCode,doc="See `GetKeyCode`")
Label = property(GetLabel,doc="See `GetLabel`")
Mask = property(GetMask,doc="See `GetMask`")
Point = property(GetPoint,doc="See `GetPoint`")
Text = property(GetText,doc="See `GetText`")
_controls_.ListEvent_swigregister(ListEvent)
wxEVT_COMMAND_LIST_BEGIN_DRAG = _controls_.wxEVT_COMMAND_LIST_BEGIN_DRAG
@@ -4693,6 +4727,17 @@ class ListCtrl(_core.Control):
return _controls_.ListCtrl_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
ColumnCount = property(GetColumnCount,doc="See `GetColumnCount`")
CountPerPage = property(GetCountPerPage,doc="See `GetCountPerPage`")
EditControl = property(GetEditControl,doc="See `GetEditControl`")
FocusedItem = property(GetFocusedItem,doc="See `GetFocusedItem`")
ImageList = property(GetImageList,SetImageList,doc="See `GetImageList` and `SetImageList`")
ItemCount = property(GetItemCount,SetItemCount,doc="See `GetItemCount` and `SetItemCount`")
MainWindow = property(GetMainWindow,doc="See `GetMainWindow`")
SelectedItemCount = property(GetSelectedItemCount,doc="See `GetSelectedItemCount`")
TextColour = property(GetTextColour,SetTextColour,doc="See `GetTextColour` and `SetTextColour`")
TopItem = property(GetTopItem,doc="See `GetTopItem`")
ViewRect = property(GetViewRect,doc="See `GetViewRect`")
_controls_.ListCtrl_swigregister(ListCtrl)
def PreListCtrl(*args, **kwargs):
@@ -4774,6 +4819,7 @@ class ListView(ListCtrl):
"""ClearColumnImage(self, int col)"""
return _controls_.ListView_ClearColumnImage(*args, **kwargs)
FocusedItem = property(GetFocusedItem,doc="See `GetFocusedItem`")
_controls_.ListView_swigregister(ListView)
def PreListView(*args, **kwargs):
@@ -5505,6 +5551,15 @@ class GenericDirCtrl(_core.Control):
"""ReCreateTree(self)"""
return _controls_.GenericDirCtrl_ReCreateTree(*args, **kwargs)
DefaultPath = property(GetDefaultPath,SetDefaultPath,doc="See `GetDefaultPath` and `SetDefaultPath`")
FilePath = property(GetFilePath,doc="See `GetFilePath`")
Filter = property(GetFilter,SetFilter,doc="See `GetFilter` and `SetFilter`")
FilterIndex = property(GetFilterIndex,SetFilterIndex,doc="See `GetFilterIndex` and `SetFilterIndex`")
FilterListCtrl = property(GetFilterListCtrl,doc="See `GetFilterListCtrl`")
Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
RootId = property(GetRootId,doc="See `GetRootId`")
ShowHidden = property(GetShowHidden,ShowHidden,doc="See `GetShowHidden` and `ShowHidden`")
TreeCtrl = property(GetTreeCtrl,doc="See `GetTreeCtrl`")
_controls_.GenericDirCtrl_swigregister(GenericDirCtrl)
DirDialogDefaultFolderStr = cvar.DirDialogDefaultFolderStr
@@ -5826,6 +5881,10 @@ class HelpEvent(_core.CommandEvent):
"""SetOrigin(self, int origin)"""
return _controls_.HelpEvent_SetOrigin(*args, **kwargs)
Link = property(GetLink,SetLink,doc="See `GetLink` and `SetLink`")
Origin = property(GetOrigin,SetOrigin,doc="See `GetOrigin` and `SetOrigin`")
Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
Target = property(GetTarget,SetTarget,doc="See `GetTarget` and `SetTarget`")
_controls_.HelpEvent_swigregister(HelpEvent)
class ContextHelp(_core.Object):
@@ -6337,6 +6396,11 @@ class HyperlinkCtrl(_core.Control):
"""GetVisited(self) -> bool"""
return _controls_.HyperlinkCtrl_GetVisited(*args, **kwargs)
HoverColour = property(GetHoverColour,SetHoverColour,doc="See `GetHoverColour` and `SetHoverColour`")
NormalColour = property(GetNormalColour,SetNormalColour,doc="See `GetNormalColour` and `SetNormalColour`")
URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
Visited = property(GetVisited,SetVisited,doc="See `GetVisited` and `SetVisited`")
VisitedColour = property(GetVisitedColour,SetVisitedColour,doc="See `GetVisitedColour` and `SetVisitedColour`")
_controls_.HyperlinkCtrl_swigregister(HyperlinkCtrl)
HyperlinkCtrlNameStr = cvar.HyperlinkCtrlNameStr
@@ -6373,6 +6437,7 @@ class HyperlinkEvent(_core.CommandEvent):
"""SetURL(self, String url)"""
return _controls_.HyperlinkEvent_SetURL(*args, **kwargs)
URL = property(GetURL,SetURL,doc="See `GetURL` and `SetURL`")
_controls_.HyperlinkEvent_swigregister(HyperlinkEvent)
EVT_HYPERLINK = wx.PyEventBinder( wxEVT_COMMAND_HYPERLINK, 1 )
@@ -6647,6 +6712,8 @@ class FilePickerCtrl(PickerBase):
"""GetTextCtrlValue(self) -> String"""
return _controls_.FilePickerCtrl_GetTextCtrlValue(*args, **kwargs)
Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
TextCtrlValue = property(GetTextCtrlValue,doc="See `GetTextCtrlValue`")
_controls_.FilePickerCtrl_swigregister(FilePickerCtrl)
FilePickerCtrlNameStr = cvar.FilePickerCtrlNameStr
FileSelectorPromptStr = cvar.FileSelectorPromptStr
@@ -6729,6 +6796,7 @@ class FileDirPickerEvent(_core.CommandEvent):
"""SetPath(self, String p)"""
return _controls_.FileDirPickerEvent_SetPath(*args, **kwargs)
Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
_controls_.FileDirPickerEvent_swigregister(FileDirPickerEvent)
#---------------------------------------------------------------------------
@@ -6776,6 +6844,8 @@ class FontPickerCtrl(PickerBase):
"""GetMaxPointSize(self) -> unsigned int"""
return _controls_.FontPickerCtrl_GetMaxPointSize(*args, **kwargs)
MaxPointSize = property(GetMaxPointSize,SetMaxPointSize,doc="See `GetMaxPointSize` and `SetMaxPointSize`")
SelectedFont = property(GetSelectedFont,SetSelectedFont,doc="See `GetSelectedFont` and `SetSelectedFont`")
_controls_.FontPickerCtrl_swigregister(FontPickerCtrl)
FontPickerCtrlNameStr = cvar.FontPickerCtrlNameStr
@@ -6802,6 +6872,7 @@ class FontPickerEvent(_core.CommandEvent):
"""SetFont(self, Font c)"""
return _controls_.FontPickerEvent_SetFont(*args, **kwargs)
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
_controls_.FontPickerEvent_swigregister(FontPickerEvent)
+247 -13
View File
@@ -205,6 +205,7 @@ ID_HELP_INDEX = _core_.ID_HELP_INDEX
ID_HELP_SEARCH = _core_.ID_HELP_SEARCH
ID_CLOSE_ALL = _core_.ID_CLOSE_ALL
ID_PREFERENCES = _core_.ID_PREFERENCES
ID_EDIT = _core_.ID_EDIT
ID_CUT = _core_.ID_CUT
ID_COPY = _core_.ID_COPY
ID_PASTE = _core_.ID_PASTE
@@ -224,6 +225,7 @@ ID_VIEW_SORTDATE = _core_.ID_VIEW_SORTDATE
ID_VIEW_SORTNAME = _core_.ID_VIEW_SORTNAME
ID_VIEW_SORTSIZE = _core_.ID_VIEW_SORTSIZE
ID_VIEW_SORTTYPE = _core_.ID_VIEW_SORTTYPE
ID_FILE = _core_.ID_FILE
ID_FILE1 = _core_.ID_FILE1
ID_FILE2 = _core_.ID_FILE2
ID_FILE3 = _core_.ID_FILE3
@@ -1713,6 +1715,10 @@ class FSFile(Object):
"""GetStream(self) -> InputStream"""
return _core_.FSFile_GetStream(*args, **kwargs)
def DetachStream(*args, **kwargs):
"""DetachStream(self)"""
return _core_.FSFile_DetachStream(*args, **kwargs)
def GetMimeType(*args, **kwargs):
"""GetMimeType(self) -> String"""
return _core_.FSFile_GetMimeType(*args, **kwargs)
@@ -1729,6 +1735,11 @@ class FSFile(Object):
"""GetModificationTime(self) -> DateTime"""
return _core_.FSFile_GetModificationTime(*args, **kwargs)
Anchor = property(GetAnchor,doc="See `GetAnchor`")
Location = property(GetLocation,doc="See `GetLocation`")
MimeType = property(GetMimeType,doc="See `GetMimeType`")
ModificationTime = property(GetModificationTime,doc="See `GetModificationTime`")
Stream = property(GetStream,doc="See `GetStream`")
_core_.FSFile_swigregister(FSFile)
class CPPFileSystemHandler(object):
@@ -1789,6 +1800,11 @@ class FileSystemHandler(CPPFileSystemHandler):
"""GetMimeTypeFromExt(self, String location) -> String"""
return _core_.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs)
Anchor = property(GetAnchor,doc="See `GetAnchor`")
LeftLocation = property(GetLeftLocation,doc="See `GetLeftLocation`")
MimeTypeFromExt = property(GetMimeTypeFromExt,doc="See `GetMimeTypeFromExt`")
Protocol = property(GetProtocol,doc="See `GetProtocol`")
RightLocation = property(GetRightLocation,doc="See `GetRightLocation`")
_core_.FileSystemHandler_swigregister(FileSystemHandler)
class FileSystem(Object):
@@ -1825,6 +1841,11 @@ class FileSystem(Object):
return _core_.FileSystem_AddHandler(*args, **kwargs)
AddHandler = staticmethod(AddHandler)
def RemoveHandler(*args, **kwargs):
"""RemoveHandler(CPPFileSystemHandler handler) -> CPPFileSystemHandler"""
return _core_.FileSystem_RemoveHandler(*args, **kwargs)
RemoveHandler = staticmethod(RemoveHandler)
def CleanUpHandlers(*args, **kwargs):
"""CleanUpHandlers()"""
return _core_.FileSystem_CleanUpHandlers(*args, **kwargs)
@@ -1840,12 +1861,17 @@ class FileSystem(Object):
return _core_.FileSystem_URLToFileName(*args, **kwargs)
URLToFileName = staticmethod(URLToFileName)
Path = property(GetPath,doc="See `GetPath`")
_core_.FileSystem_swigregister(FileSystem)
def FileSystem_AddHandler(*args, **kwargs):
"""FileSystem_AddHandler(CPPFileSystemHandler handler)"""
return _core_.FileSystem_AddHandler(*args, **kwargs)
def FileSystem_RemoveHandler(*args, **kwargs):
"""FileSystem_RemoveHandler(CPPFileSystemHandler handler) -> CPPFileSystemHandler"""
return _core_.FileSystem_RemoveHandler(*args, **kwargs)
def FileSystem_CleanUpHandlers(*args):
"""FileSystem_CleanUpHandlers()"""
return _core_.FileSystem_CleanUpHandlers(*args)
@@ -2018,6 +2044,10 @@ class ImageHandler(Object):
"""SetMimeType(self, String mimetype)"""
return _core_.ImageHandler_SetMimeType(*args, **kwargs)
Extension = property(GetExtension,SetExtension,doc="See `GetExtension` and `SetExtension`")
MimeType = property(GetMimeType,SetMimeType,doc="See `GetMimeType` and `SetMimeType`")
Name = property(GetName,SetName,doc="See `GetName` and `SetName`")
Type = property(GetType,SetType,doc="See `GetType` and `SetType`")
_core_.ImageHandler_swigregister(ImageHandler)
class PyImageHandler(ImageHandler):
@@ -2915,6 +2945,16 @@ class Image(Object):
HSVtoRGB = staticmethod(HSVtoRGB)
def __nonzero__(self): return self.Ok()
AlphaBuffer = property(GetAlphaBuffer,SetAlphaBuffer,doc="See `GetAlphaBuffer` and `SetAlphaBuffer`")
AlphaData = property(GetAlphaData,SetAlphaData,doc="See `GetAlphaData` and `SetAlphaData`")
Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
DataBuffer = property(GetDataBuffer,SetDataBuffer,doc="See `GetDataBuffer` and `SetDataBuffer`")
Height = property(GetHeight,doc="See `GetHeight`")
MaskBlue = property(GetMaskBlue,doc="See `GetMaskBlue`")
MaskGreen = property(GetMaskGreen,doc="See `GetMaskGreen`")
MaskRed = property(GetMaskRed,doc="See `GetMaskRed`")
Size = property(GetSize,doc="See `GetSize`")
Width = property(GetWidth,doc="See `GetWidth`")
_core_.Image_swigregister(Image)
def ImageFromMime(*args, **kwargs):
@@ -3401,6 +3441,9 @@ class EvtHandler(Object):
id = source.GetId()
return event.Unbind(self, id, id2)
EvtHandlerEnabled = property(GetEvtHandlerEnabled,SetEvtHandlerEnabled,doc="See `GetEvtHandlerEnabled` and `SetEvtHandlerEnabled`")
NextHandler = property(GetNextHandler,SetNextHandler,doc="See `GetNextHandler` and `SetNextHandler`")
PreviousHandler = property(GetPreviousHandler,SetPreviousHandler,doc="See `GetPreviousHandler` and `SetPreviousHandler`")
_core_.EvtHandler_swigregister(EvtHandler)
#---------------------------------------------------------------------------
@@ -3922,6 +3965,11 @@ class Event(Object):
"""Clone(self) -> Event"""
return _core_.Event_Clone(*args, **kwargs)
EventObject = property(GetEventObject,SetEventObject,doc="See `GetEventObject` and `SetEventObject`")
EventType = property(GetEventType,SetEventType,doc="See `GetEventType` and `SetEventType`")
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
Skipped = property(GetSkipped,doc="See `GetSkipped`")
Timestamp = property(GetTimestamp,SetTimestamp,doc="See `GetTimestamp` and `SetTimestamp`")
_core_.Event_swigregister(Event)
#---------------------------------------------------------------------------
@@ -4879,7 +4927,6 @@ class KeyEvent(Event):
"""
return _core_.KeyEvent_GetKeyCode(*args, **kwargs)
KeyCode = GetKeyCode
def GetUnicodeKey(*args, **kwargs):
"""
GetUnicodeKey(self) -> int
@@ -4964,6 +5011,14 @@ class KeyEvent(Event):
m_scanCode = property(_core_.KeyEvent_m_scanCode_get, _core_.KeyEvent_m_scanCode_set)
m_rawCode = property(_core_.KeyEvent_m_rawCode_get, _core_.KeyEvent_m_rawCode_set)
m_rawFlags = property(_core_.KeyEvent_m_rawFlags_get, _core_.KeyEvent_m_rawFlags_set)
KeyCode = property(GetKeyCode,doc="See `GetKeyCode`")
Modifiers = property(GetModifiers,doc="See `GetModifiers`")
Position = property(GetPosition,doc="See `GetPosition`")
RawKeyCode = property(GetRawKeyCode,doc="See `GetRawKeyCode`")
RawKeyFlags = property(GetRawKeyFlags,doc="See `GetRawKeyFlags`")
UnicodeKey = property(GetUnicodeKey,SetUnicodeKey,doc="See `GetUnicodeKey` and `SetUnicodeKey`")
X = property(GetX,doc="See `GetX`")
Y = property(GetY,doc="See `GetY`")
_core_.KeyEvent_swigregister(KeyEvent)
#---------------------------------------------------------------------------
@@ -5128,6 +5183,7 @@ class EraseEvent(Event):
"""
return _core_.EraseEvent_GetDC(*args, **kwargs)
DC = property(GetDC,doc="See `GetDC`")
_core_.EraseEvent_swigregister(EraseEvent)
#---------------------------------------------------------------------------
@@ -5168,6 +5224,7 @@ class FocusEvent(Event):
"""SetWindow(self, Window win)"""
return _core_.FocusEvent_SetWindow(*args, **kwargs)
Window = property(GetWindow,SetWindow,doc="See `GetWindow` and `SetWindow`")
_core_.FocusEvent_swigregister(FocusEvent)
#---------------------------------------------------------------------------
@@ -5397,7 +5454,6 @@ class CloseEvent(Event):
return _core_.CloseEvent_CanVeto(*args, **kwargs)
LoggingOff = property(GetLoggingOff,SetLoggingOff,doc="See `GetLoggingOff` and `SetLoggingOff`")
Veto = property(GetVeto,doc="See `GetVeto`")
_core_.CloseEvent_swigregister(CloseEvent)
#---------------------------------------------------------------------------
@@ -6683,6 +6739,14 @@ class PyApp(EvtHandler):
"""
return _core_.PyApp_Exit(*args, **kwargs)
def GetLayoutDirection(*args, **kwargs):
"""
GetLayoutDirection(self) -> wxLayoutDirection
Return the layout direction for the current locale.
"""
return _core_.PyApp_GetLayoutDirection(*args, **kwargs)
def ExitMainLoop(*args, **kwargs):
"""
ExitMainLoop(self)
@@ -7501,6 +7565,16 @@ class AcceleratorEntry(object):
"""
return _core_.AcceleratorEntry_Set(*args, **kwargs)
def Create(*args, **kwargs):
"""
Create(String str) -> AcceleratorEntry
Create accelerator corresponding to the specified string, or None if
it coulnd't be parsed.
"""
return _core_.AcceleratorEntry_Create(*args, **kwargs)
Create = staticmethod(Create)
def GetFlags(*args, **kwargs):
"""
GetFlags(self) -> int
@@ -7525,11 +7599,43 @@ class AcceleratorEntry(object):
"""
return _core_.AcceleratorEntry_GetCommand(*args, **kwargs)
def IsOk(*args, **kwargs):
"""IsOk(self) -> bool"""
return _core_.AcceleratorEntry_IsOk(*args, **kwargs)
def ToString(*args, **kwargs):
"""
ToString(self) -> String
Returns a string representation for the this accelerator. The string
is formatted using the <flags>-<keycode> format where <flags> maybe a
hyphen-separed list of "shift|alt|ctrl"
"""
return _core_.AcceleratorEntry_ToString(*args, **kwargs)
def FromString(*args, **kwargs):
"""
FromString(self, String str) -> bool
Returns true if the given string correctly initialized this object.
"""
return _core_.AcceleratorEntry_FromString(*args, **kwargs)
Command = property(GetCommand,doc="See `GetCommand`")
Flags = property(GetFlags,doc="See `GetFlags`")
KeyCode = property(GetKeyCode,doc="See `GetKeyCode`")
_core_.AcceleratorEntry_swigregister(AcceleratorEntry)
def AcceleratorEntry_Create(*args, **kwargs):
"""
AcceleratorEntry_Create(String str) -> AcceleratorEntry
Create accelerator corresponding to the specified string, or None if
it coulnd't be parsed.
"""
return _core_.AcceleratorEntry_Create(*args, **kwargs)
class AcceleratorTable(Object):
"""
An accelerator table allows the application to specify a table of
@@ -7766,6 +7872,32 @@ class Window(EvtHandler):
return _core_.Window_PrevControlId(*args, **kwargs)
PrevControlId = staticmethod(PrevControlId)
def GetLayoutDirection(*args, **kwargs):
"""
GetLayoutDirection(self) -> wxLayoutDirection
Get the layout direction (LTR or RTL) for this window. Returns
``wx.Layout_Default`` if layout direction is not supported.
"""
return _core_.Window_GetLayoutDirection(*args, **kwargs)
def SetLayoutDirection(*args, **kwargs):
"""
SetLayoutDirection(self, wxLayoutDirection dir)
Set the layout direction (LTR or RTL) for this window.
"""
return _core_.Window_SetLayoutDirection(*args, **kwargs)
def AdjustForLayoutDirection(*args, **kwargs):
"""
AdjustForLayoutDirection(self, int x, int width, int widthTotal) -> int
Mirror coordinates for RTL layout if this window uses it and if the
mirroring is not done automatically like Win32.
"""
return _core_.Window_AdjustForLayoutDirection(*args, **kwargs)
def SetSize(*args, **kwargs):
"""
SetSize(self, Size size)
@@ -9776,11 +9908,9 @@ class Window(EvtHandler):
ExtraStyle = property(GetExtraStyle,SetExtraStyle,doc="See `GetExtraStyle` and `SetExtraStyle`")
Font = property(GetFont,SetFont,doc="See `GetFont` and `SetFont`")
ForegroundColour = property(GetForegroundColour,SetForegroundColour,doc="See `GetForegroundColour` and `SetForegroundColour`")
FullTextExtent = property(GetFullTextExtent,doc="See `GetFullTextExtent`")
GrandParent = property(GetGrandParent,doc="See `GetGrandParent`")
Handle = property(GetHandle,doc="See `GetHandle`")
HelpText = property(GetHelpText,SetHelpText,doc="See `GetHelpText` and `SetHelpText`")
HelpTextAtPoint = property(GetHelpTextAtPoint,doc="See `GetHelpTextAtPoint`")
Id = property(GetId,SetId,doc="See `GetId` and `SetId`")
Label = property(GetLabel,SetLabel,doc="See `GetLabel` and `SetLabel`")
MaxHeight = property(GetMaxHeight,doc="See `GetMaxHeight`")
@@ -9795,12 +9925,8 @@ class Window(EvtHandler):
Rect = property(GetRect,SetRect,doc="See `GetRect` and `SetRect`")
ScreenPosition = property(GetScreenPosition,doc="See `GetScreenPosition`")
ScreenRect = property(GetScreenRect,doc="See `GetScreenRect`")
ScrollPos = property(GetScrollPos,SetScrollPos,doc="See `GetScrollPos` and `SetScrollPos`")
ScrollRange = property(GetScrollRange,doc="See `GetScrollRange`")
ScrollThumb = property(GetScrollThumb,doc="See `GetScrollThumb`")
Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`")
Sizer = property(GetSizer,SetSizer,doc="See `GetSizer` and `SetSizer`")
TextExtent = property(GetTextExtent,doc="See `GetTextExtent`")
ThemeEnabled = property(GetThemeEnabled,SetThemeEnabled,doc="See `GetThemeEnabled` and `SetThemeEnabled`")
ToolTip = property(GetToolTip,SetToolTip,doc="See `GetToolTip` and `SetToolTip`")
UpdateClientRect = property(GetUpdateClientRect,doc="See `GetUpdateClientRect`")
@@ -9810,6 +9936,9 @@ class Window(EvtHandler):
WindowStyle = property(GetWindowStyle,SetWindowStyle,doc="See `GetWindowStyle` and `SetWindowStyle`")
WindowStyleFlag = property(GetWindowStyleFlag,SetWindowStyleFlag,doc="See `GetWindowStyleFlag` and `SetWindowStyleFlag`")
WindowVariant = property(GetWindowVariant,SetWindowVariant,doc="See `GetWindowVariant` and `SetWindowVariant`")
Shown = property(IsShown,Show,doc="See `IsShown` and `Show`")
Enabled = property(IsEnabled,Enable,doc="See `IsEnabled` and `Enable`")
TopLevel = property(IsTopLevel,doc="See `IsTopLevel`")
_core_.Window_swigregister(Window)
def PreWindow(*args, **kwargs):
@@ -10038,7 +10167,10 @@ class Menu(EvtHandler):
self._setOORInfo(self)
def Append(*args, **kwargs):
"""Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
"""
Append(self, int id, String text=EmptyString, String help=EmptyString,
int kind=ITEM_NORMAL) -> MenuItem
"""
return _core_.Menu_Append(*args, **kwargs)
def AppendSeparator(*args, **kwargs):
@@ -10079,7 +10211,7 @@ class Menu(EvtHandler):
def Insert(*args, **kwargs):
"""
Insert(self, size_t pos, int id, String text, String help=EmptyString,
Insert(self, size_t pos, int id, String text=EmptyString, String help=EmptyString,
int kind=ITEM_NORMAL) -> MenuItem
"""
return _core_.Menu_Insert(*args, **kwargs)
@@ -10101,7 +10233,10 @@ class Menu(EvtHandler):
return _core_.Menu_InsertMenu(*args, **kwargs)
def Prepend(*args, **kwargs):
"""Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
"""
Prepend(self, int id, String text=EmptyString, String help=EmptyString,
int kind=ITEM_NORMAL) -> MenuItem
"""
return _core_.Menu_Prepend(*args, **kwargs)
def PrependSeparator(*args, **kwargs):
@@ -10402,6 +10537,19 @@ class MenuBar(Window):
return _core_.MenuBar_GetAutoWindowMenu(*args, **kwargs)
GetAutoWindowMenu = staticmethod(GetAutoWindowMenu)
def GetMenus(self):
"""Return a list of (menu, label) items for the menus in the MenuBar. """
return [(self.GetMenu(i), self.GetLabelTop(i))
for i in range(self.GetMenuCount())]
def SetMenus(self, items):
"""Clear and add new menus to the MenuBar from a list of (menu, label) items. """
for i in range(self.GetMenuCount()-1, -1, -1):
self.Remove(i)
for m, l in items:
self.Append(m, l)
Menus = property(GetMenus,SetMenus)
_core_.MenuBar_swigregister(MenuBar)
def MenuBar_SetAutoWindowMenu(*args, **kwargs):
@@ -10896,6 +11044,21 @@ class ItemContainer(object):
"""
return _core_.ItemContainer_Select(*args, **kwargs)
def GetItems(self):
"""Return a list of the strings in the control"""
return [self.GetString(i) for i in xrange(self.GetCount())]
def SetItems(self, items):
"""Clear and set the strings in the control from a list"""
self.Clear()
for i in items:
self.Append(i)
Count = property(GetCount,doc="See `GetCount`")
Items = property(GetItems,SetItems,doc="See `GetItems` and `SetItems`")
Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`")
StringSelection = property(GetStringSelection,SetStringSelection,doc="See `GetStringSelection` and `SetStringSelection`")
Strings = property(GetStrings,doc="See `GetStrings`")
_core_.ItemContainer_swigregister(ItemContainer)
#---------------------------------------------------------------------------
@@ -11354,6 +11517,57 @@ class Sizer(Object):
"""_SetItemMinSize(self, PyObject item, Size size)"""
return _core_.Sizer__SetItemMinSize(*args, **kwargs)
def _ReplaceWin(*args, **kwargs):
"""_ReplaceWin(self, Window oldwin, Window newwin, bool recursive=False) -> bool"""
return _core_.Sizer__ReplaceWin(*args, **kwargs)
def _ReplaceSizer(*args, **kwargs):
"""_ReplaceSizer(self, Sizer oldsz, Sizer newsz, bool recursive=False) -> bool"""
return _core_.Sizer__ReplaceSizer(*args, **kwargs)
def _ReplaceItem(*args, **kwargs):
"""_ReplaceItem(self, size_t index, SizerItem newitem) -> bool"""
return _core_.Sizer__ReplaceItem(*args, **kwargs)
def Replace(self, olditem, item, recursive=False):
"""
Detaches the given ``olditem`` from the sizer and replaces it with
``item`` which can be a window, sizer, or `wx.SizerItem`. The
detached child is destroyed only if it is not a window, (because
windows are owned by their parent, not the sizer.) The
``recursive`` parameter can be used to search for the given
element recursivly in subsizers.
This method does not cause any layout or resizing to take place,
call `Layout` to do so.
Returns ``True`` if the child item was found and removed.
"""
if isinstance(olditem, wx.Window):
return self._ReplaceWin(olditem, item, recursive)
elif isinstnace(olditem, wx.Sizer):
return self._ReplaceSizer(olditem, item, recursive)
elif isinstnace(olditem, int):
return self._ReplaceItem(olditem, item)
else:
raise TypeError("Expected Window, Sizer, or integer for first parameter.")
def SetContainingWindow(*args, **kwargs):
"""
SetContainingWindow(self, Window window)
Set (or unset) the window this sizer is used in.
"""
return _core_.Sizer_SetContainingWindow(*args, **kwargs)
def GetContainingWindow(*args, **kwargs):
"""
GetContainingWindow(self) -> Window
Get the window this sizer is used in.
"""
return _core_.Sizer_GetContainingWindow(*args, **kwargs)
def SetItemMinSize(self, item, *args):
"""
SetItemMinSize(self, item, Size size)
@@ -11903,6 +12117,10 @@ class GridSizer(Sizer):
cols = (nitems + rows - 1) / rows
return (rows, cols)
Cols = property(GetCols,SetCols,doc="See `GetCols` and `SetCols`")
HGap = property(GetHGap,SetHGap,doc="See `GetHGap` and `SetHGap`")
Rows = property(GetRows,SetRows,doc="See `GetRows` and `SetRows`")
VGap = property(GetVGap,SetVGap,doc="See `GetVGap` and `SetVGap`")
_core_.GridSizer_swigregister(GridSizer)
#---------------------------------------------------------------------------
@@ -12035,8 +12253,6 @@ class FlexGridSizer(GridSizer):
========================== =================================================
Note that this method does not trigger relayout.
"""
return _core_.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs)
@@ -12069,6 +12285,10 @@ class FlexGridSizer(GridSizer):
"""
return _core_.FlexGridSizer_GetColWidths(*args, **kwargs)
ColWidths = property(GetColWidths,doc="See `GetColWidths`")
FlexibleDirection = property(GetFlexibleDirection,SetFlexibleDirection,doc="See `GetFlexibleDirection` and `SetFlexibleDirection`")
NonFlexibleGrowMode = property(GetNonFlexibleGrowMode,SetNonFlexibleGrowMode,doc="See `GetNonFlexibleGrowMode` and `SetNonFlexibleGrowMode`")
RowHeights = property(GetRowHeights,doc="See `GetRowHeights`")
_core_.FlexGridSizer_swigregister(FlexGridSizer)
class StdDialogButtonSizer(BoxSizer):
@@ -12405,6 +12625,10 @@ class GBSizerItem(SizerItem):
"""
return _core_.GBSizerItem_SetGBSizer(*args, **kwargs)
EndPos = property(GetEndPos,doc="See `GetEndPos`")
GBSizer = property(GetGBSizer,SetGBSizer,doc="See `GetGBSizer` and `SetGBSizer`")
Pos = property(GetPos,SetPos,doc="See `GetPos` and `SetPos`")
Span = property(GetSpan,SetSpan,doc="See `GetSpan` and `SetSpan`")
_core_.GBSizerItem_swigregister(GBSizerItem)
DefaultSpan = cvar.DefaultSpan
@@ -12816,6 +13040,14 @@ class IndividualLayoutConstraint(Object):
"""
return _core_.IndividualLayoutConstraint_GetEdge(*args, **kwargs)
Done = property(GetDone,SetDone,doc="See `GetDone` and `SetDone`")
Margin = property(GetMargin,SetMargin,doc="See `GetMargin` and `SetMargin`")
MyEdge = property(GetMyEdge,doc="See `GetMyEdge`")
OtherEdge = property(GetOtherEdge,doc="See `GetOtherEdge`")
OtherWindow = property(GetOtherWindow,doc="See `GetOtherWindow`")
Percent = property(GetPercent,doc="See `GetPercent`")
Relationship = property(GetRelationship,SetRelationship,doc="See `GetRelationship` and `SetRelationship`")
Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`")
_core_.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraint)
class LayoutConstraints(Object):
@@ -13120,6 +13352,8 @@ class FutureCall:
# if it wasn't restarted, then cleanup
wx.CallAfter(self.Stop)
Interval = property(GetInterval)
Result = property(GetResult)
#----------------------------------------------------------------------------
File diff suppressed because it is too large Load Diff
+38
View File
@@ -1123,6 +1123,9 @@ class Icon(GDIObject):
return _gdi_.Icon_CopyFromBitmap(*args, **kwargs)
def __nonzero__(self): return self.Ok()
Depth = property(GetDepth,SetDepth,doc="See `GetDepth` and `SetDepth`")
Height = property(GetHeight,SetHeight,doc="See `GetHeight` and `SetHeight`")
Width = property(GetWidth,SetWidth,doc="See `GetWidth` and `SetWidth`")
_gdi_.Icon_swigregister(Icon)
def EmptyIcon(*args, **kwargs):
@@ -1175,6 +1178,8 @@ class IconLocation(object):
"""GetIndex(self) -> int"""
return _gdi_.IconLocation_GetIndex(*args, **kwargs)
FileName = property(GetFileName,SetFileName,doc="See `GetFileName` and `SetFileName`")
Index = property(GetIndex,SetIndex,doc="See `GetIndex` and `SetIndex`")
_gdi_.IconLocation_swigregister(IconLocation)
class IconBundle(object):
@@ -1198,6 +1203,7 @@ class IconBundle(object):
"""GetIcon(self, Size size) -> Icon"""
return _gdi_.IconBundle_GetIcon(*args, **kwargs)
Icon = property(GetIcon,doc="See `GetIcon`")
_gdi_.IconBundle_swigregister(IconBundle)
def IconBundleFromFile(*args, **kwargs):
@@ -1767,6 +1773,7 @@ class FontMapper(object):
"""SetDialogTitle(self, String title)"""
return _gdi_.FontMapper_SetDialogTitle(*args, **kwargs)
AltForEncoding = property(GetAltForEncoding,doc="See `GetAltForEncoding`")
_gdi_.FontMapper_swigregister(FontMapper)
def FontMapper_Get(*args):
@@ -2127,6 +2134,21 @@ class Font(GDIObject):
return _gdi_.Font_SetDefaultEncoding(*args, **kwargs)
SetDefaultEncoding = staticmethod(SetDefaultEncoding)
Encoding = property(GetEncoding,SetEncoding,doc="See `GetEncoding` and `SetEncoding`")
FaceName = property(GetFaceName,SetFaceName,doc="See `GetFaceName` and `SetFaceName`")
Family = property(GetFamily,SetFamily,doc="See `GetFamily` and `SetFamily`")
FamilyString = property(GetFamilyString,doc="See `GetFamilyString`")
NativeFontInfo = property(GetNativeFontInfo,SetNativeFontInfo,doc="See `GetNativeFontInfo` and `SetNativeFontInfo`")
NativeFontInfoDesc = property(GetNativeFontInfoDesc,doc="See `GetNativeFontInfoDesc`")
NativeFontInfoUserDesc = property(GetNativeFontInfoUserDesc,SetNativeFontInfoUserDesc,doc="See `GetNativeFontInfoUserDesc` and `SetNativeFontInfoUserDesc`")
NoAntiAliasing = property(GetNoAntiAliasing,SetNoAntiAliasing,doc="See `GetNoAntiAliasing` and `SetNoAntiAliasing`")
PixelSize = property(GetPixelSize,SetPixelSize,doc="See `GetPixelSize` and `SetPixelSize`")
PointSize = property(GetPointSize,SetPointSize,doc="See `GetPointSize` and `SetPointSize`")
Style = property(GetStyle,SetStyle,doc="See `GetStyle` and `SetStyle`")
StyleString = property(GetStyleString,doc="See `GetStyleString`")
Underlined = property(GetUnderlined,SetUnderlined,doc="See `GetUnderlined` and `SetUnderlined`")
Weight = property(GetWeight,SetWeight,doc="See `GetWeight` and `SetWeight`")
WeightString = property(GetWeightString,doc="See `GetWeightString`")
_gdi_.Font_swigregister(Font)
def FontFromNativeInfo(*args, **kwargs):
@@ -2292,6 +2314,9 @@ def FontEnumerator_IsValidFacename(*args, **kwargs):
#---------------------------------------------------------------------------
Layout_Default = _gdi_.Layout_Default
Layout_LeftToRight = _gdi_.Layout_LeftToRight
Layout_RightToLeft = _gdi_.Layout_RightToLeft
LANGUAGE_DEFAULT = _gdi_.LANGUAGE_DEFAULT
LANGUAGE_UNKNOWN = _gdi_.LANGUAGE_UNKNOWN
LANGUAGE_ABKHAZIAN = _gdi_.LANGUAGE_ABKHAZIAN
@@ -2646,6 +2671,12 @@ class Locale(object):
"""GetName(self) -> String"""
return _gdi_.Locale_GetName(*args, **kwargs)
CanonicalName = property(GetCanonicalName,doc="See `GetCanonicalName`")
Language = property(GetLanguage,doc="See `GetLanguage`")
Locale = property(GetLocale,doc="See `GetLocale`")
Name = property(GetName,doc="See `GetName`")
String = property(GetString,doc="See `GetString`")
SysName = property(GetSysName,doc="See `GetSysName`")
_gdi_.Locale_swigregister(Locale)
def Locale_GetSystemLanguage(*args):
@@ -4769,6 +4800,8 @@ class ImageList(_core.Object):
"""GetSize(index) -> (width,height)"""
return _gdi_.ImageList_GetSize(*args, **kwargs)
ImageCount = property(GetImageCount,doc="See `GetImageCount`")
Size = property(GetSize,doc="See `GetSize`")
_gdi_.ImageList_swigregister(ImageList)
#---------------------------------------------------------------------------
@@ -5175,6 +5208,11 @@ class Effects(_core.Object):
"""TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool"""
return _gdi_.Effects_TileBitmap(*args, **kwargs)
DarkShadow = property(GetDarkShadow,SetDarkShadow,doc="See `GetDarkShadow` and `SetDarkShadow`")
FaceColour = property(GetFaceColour,SetFaceColour,doc="See `GetFaceColour` and `SetFaceColour`")
HighlightColour = property(GetHighlightColour,SetHighlightColour,doc="See `GetHighlightColour` and `SetHighlightColour`")
LightShadow = property(GetLightShadow,SetLightShadow,doc="See `GetLightShadow` and `SetLightShadow`")
MediumShadow = property(GetMediumShadow,SetMediumShadow,doc="See `GetMediumShadow` and `SetMediumShadow`")
_gdi_.Effects_swigregister(Effects)
#---------------------------------------------------------------------------
+3
View File
@@ -33123,6 +33123,9 @@ SWIGEXPORT void SWIG_init(void) {
wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default)));
SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight)));
SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft)));
SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
+72 -1
View File
@@ -295,10 +295,18 @@ def IsStockID(*args, **kwargs):
def IsStockLabel(*args, **kwargs):
"""IsStockLabel(int id, String label) -> bool"""
return _misc_.IsStockLabel(*args, **kwargs)
STOCK_NOFLAGS = _misc_.STOCK_NOFLAGS
STOCK_WITH_MNEMONIC = _misc_.STOCK_WITH_MNEMONIC
STOCK_WITH_ACCELERATOR = _misc_.STOCK_WITH_ACCELERATOR
def GetStockLabel(*args, **kwargs):
"""GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String"""
"""GetStockLabel(int id, long flags=STOCK_WITH_MNEMONIC) -> String"""
return _misc_.GetStockLabel(*args, **kwargs)
STOCK_MENU = _misc_.STOCK_MENU
def GetStockHelpString(*args, **kwargs):
"""GetStockHelpString(int id, int client=STOCK_MENU) -> String"""
return _misc_.GetStockHelpString(*args, **kwargs)
def Bell(*args):
"""Bell()"""
@@ -1001,6 +1009,10 @@ class FileHistory(_core.Object):
return _misc_.FileHistory_GetCount(*args, **kwargs)
GetNoHistoryFiles = GetCount
Count = property(GetCount,doc="See `GetCount`")
HistoryFile = property(GetHistoryFile,doc="See `GetHistoryFile`")
MaxFiles = property(GetMaxFiles,doc="See `GetMaxFiles`")
NoHistoryFiles = property(GetNoHistoryFiles,doc="See `GetNoHistoryFiles`")
_misc_.FileHistory_swigregister(FileHistory)
class SingleInstanceChecker(object):
@@ -1656,6 +1668,8 @@ class LogWindow(Log):
"""PassMessages(self, bool bDoPass)"""
return _misc_.LogWindow_PassMessages(*args, **kwargs)
Frame = property(GetFrame,doc="See `GetFrame`")
OldLog = property(GetOldLog,doc="See `GetOldLog`")
_misc_.LogWindow_swigregister(LogWindow)
class LogChain(Log):
@@ -1681,6 +1695,7 @@ class LogChain(Log):
"""GetOldLog(self) -> Log"""
return _misc_.LogChain_GetOldLog(*args, **kwargs)
OldLog = property(GetOldLog,doc="See `GetOldLog`")
_misc_.LogChain_swigregister(LogChain)
class LogBuffer(Log):
@@ -1694,6 +1709,7 @@ class LogBuffer(Log):
"""GetBuffer(self) -> String"""
return _misc_.LogBuffer_GetBuffer(*args, **kwargs)
Buffer = property(GetBuffer,doc="See `GetBuffer`")
_misc_.LogBuffer_swigregister(LogBuffer)
@@ -2126,6 +2142,37 @@ class Joystick(object):
return _misc_.Joystick_ReleaseCapture(*args, **kwargs)
def __nonzero__(self): return self.IsOk()
ButtonState = property(GetButtonState,doc="See `GetButtonState`")
ManufacturerId = property(GetManufacturerId,doc="See `GetManufacturerId`")
MaxAxes = property(GetMaxAxes,doc="See `GetMaxAxes`")
MaxButtons = property(GetMaxButtons,doc="See `GetMaxButtons`")
MovementThreshold = property(GetMovementThreshold,SetMovementThreshold,doc="See `GetMovementThreshold` and `SetMovementThreshold`")
NumberAxes = property(GetNumberAxes,doc="See `GetNumberAxes`")
NumberButtons = property(GetNumberButtons,doc="See `GetNumberButtons`")
NumberJoysticks = property(GetNumberJoysticks,doc="See `GetNumberJoysticks`")
POVCTSPosition = property(GetPOVCTSPosition,doc="See `GetPOVCTSPosition`")
POVPosition = property(GetPOVPosition,doc="See `GetPOVPosition`")
PollingMax = property(GetPollingMax,doc="See `GetPollingMax`")
PollingMin = property(GetPollingMin,doc="See `GetPollingMin`")
Position = property(GetPosition,doc="See `GetPosition`")
ProductId = property(GetProductId,doc="See `GetProductId`")
ProductName = property(GetProductName,doc="See `GetProductName`")
RudderMax = property(GetRudderMax,doc="See `GetRudderMax`")
RudderMin = property(GetRudderMin,doc="See `GetRudderMin`")
RudderPosition = property(GetRudderPosition,doc="See `GetRudderPosition`")
UMax = property(GetUMax,doc="See `GetUMax`")
UMin = property(GetUMin,doc="See `GetUMin`")
UPosition = property(GetUPosition,doc="See `GetUPosition`")
VMax = property(GetVMax,doc="See `GetVMax`")
VMin = property(GetVMin,doc="See `GetVMin`")
VPosition = property(GetVPosition,doc="See `GetVPosition`")
XMax = property(GetXMax,doc="See `GetXMax`")
XMin = property(GetXMin,doc="See `GetXMin`")
YMax = property(GetYMax,doc="See `GetYMax`")
YMin = property(GetYMin,doc="See `GetYMin`")
ZMax = property(GetZMax,doc="See `GetZMax`")
ZMin = property(GetZMin,doc="See `GetZMin`")
ZPosition = property(GetZPosition,doc="See `GetZPosition`")
_misc_.Joystick_swigregister(Joystick)
wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN
@@ -2212,6 +2259,11 @@ class JoystickEvent(_core.Event):
m_buttonState = property(GetButtonState, SetButtonState)
m_joyStick = property(GetJoystick, SetJoystick)
ButtonChange = property(GetButtonChange,SetButtonChange,doc="See `GetButtonChange` and `SetButtonChange`")
ButtonState = property(GetButtonState,SetButtonState,doc="See `GetButtonState` and `SetButtonState`")
Joystick = property(GetJoystick,SetJoystick,doc="See `GetJoystick` and `SetJoystick`")
Position = property(GetPosition,SetPosition,doc="See `GetPosition` and `SetPosition`")
ZPosition = property(GetZPosition,SetZPosition,doc="See `GetZPosition` and `SetZPosition`")
_misc_.JoystickEvent_swigregister(JoystickEvent)
EVT_JOY_BUTTON_DOWN = wx.PyEventBinder( wxEVT_JOY_BUTTON_DOWN )
@@ -2344,6 +2396,15 @@ class FileTypeInfo(object):
"""GetIconIndex(self) -> int"""
return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs)
Description = property(GetDescription,doc="See `GetDescription`")
Extensions = property(GetExtensions,doc="See `GetExtensions`")
ExtensionsCount = property(GetExtensionsCount,doc="See `GetExtensionsCount`")
IconFile = property(GetIconFile,doc="See `GetIconFile`")
IconIndex = property(GetIconIndex,doc="See `GetIconIndex`")
MimeType = property(GetMimeType,doc="See `GetMimeType`")
OpenCommand = property(GetOpenCommand,doc="See `GetOpenCommand`")
PrintCommand = property(GetPrintCommand,doc="See `GetPrintCommand`")
ShortDesc = property(GetShortDesc,SetShortDesc,doc="See `GetShortDesc` and `SetShortDesc`")
_misc_.FileTypeInfo_swigregister(FileTypeInfo)
def FileTypeInfoSequence(*args, **kwargs):
@@ -2418,6 +2479,15 @@ class FileType(object):
return _misc_.FileType_ExpandCommand(*args, **kwargs)
ExpandCommand = staticmethod(ExpandCommand)
AllCommands = property(GetAllCommands,doc="See `GetAllCommands`")
Description = property(GetDescription,doc="See `GetDescription`")
Extensions = property(GetExtensions,doc="See `GetExtensions`")
Icon = property(GetIcon,doc="See `GetIcon`")
IconInfo = property(GetIconInfo,doc="See `GetIconInfo`")
MimeType = property(GetMimeType,doc="See `GetMimeType`")
MimeTypes = property(GetMimeTypes,doc="See `GetMimeTypes`")
OpenCommand = property(GetOpenCommand,doc="See `GetOpenCommand`")
PrintCommand = property(GetPrintCommand,doc="See `GetPrintCommand`")
_misc_.FileType_swigregister(FileType)
def FileType_ExpandCommand(*args, **kwargs):
@@ -5022,6 +5092,7 @@ class FileDataObject(DataObjectSimple):
"""
return _misc_.FileDataObject_AddFile(*args, **kwargs)
Filenames = property(GetFilenames,doc="See `GetFilenames`")
_misc_.FileDataObject_swigregister(FileDataObject)
class CustomDataObject(DataObjectSimple):
+60 -18
View File
@@ -4789,44 +4789,81 @@ fail:
SWIGINTERN PyObject *_wrap_GetStockLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
int arg1 ;
bool arg2 = (bool) true ;
wxString arg3 = (wxString) wxPyEmptyString ;
long arg2 = (long) wxSTOCK_WITH_MNEMONIC ;
wxString result;
int val1 ;
int ecode1 = 0 ;
bool val2 ;
long val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
char * kwnames[] = {
(char *) "id",(char *) "withCodes",(char *) "accelerator", NULL
(char *) "id",(char *) "flags", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GetStockLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockLabel",kwnames,&obj0,&obj1)) SWIG_fail;
ecode1 = SWIG_AsVal_int(obj0, &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockLabel" "', expected argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
if (obj1) {
ecode2 = SWIG_AsVal_bool(obj1, &val2);
ecode2 = SWIG_AsVal_long(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockLabel" "', expected argument " "2"" of type '" "bool""'");
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockLabel" "', expected argument " "2"" of type '" "long""'");
}
arg2 = static_cast< bool >(val2);
}
if (obj2) {
{
wxString* sptr = wxString_in_helper(obj2);
if (sptr == NULL) SWIG_fail;
arg3 = *sptr;
delete sptr;
}
arg2 = static_cast< long >(val2);
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = wxGetStockLabel(arg1,arg2,arg3);
result = wxGetStockLabel(arg1,arg2);
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_GetStockHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
int arg1 ;
wxStockHelpStringClient arg2 = (wxStockHelpStringClient) wxSTOCK_MENU ;
wxString result;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char * kwnames[] = {
(char *) "id",(char *) "client", NULL
};
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GetStockHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
ecode1 = SWIG_AsVal_int(obj0, &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetStockHelpString" "', expected argument " "1"" of type '" "int""'");
}
arg1 = static_cast< int >(val1);
if (obj1) {
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GetStockHelpString" "', expected argument " "2"" of type '" "wxStockHelpStringClient""'");
}
arg2 = static_cast< wxStockHelpStringClient >(val2);
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = wxGetStockHelpString(arg1,arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
@@ -37287,6 +37324,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"GetStockHelpString", (PyCFunction) _wrap_GetStockHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"Bell", (PyCFunction)_wrap_Bell, METH_NOARGS, NULL},
{ (char *)"EndBusyCursor", (PyCFunction)_wrap_EndBusyCursor, METH_NOARGS, NULL},
{ (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL},
@@ -40054,6 +40092,10 @@ SWIGEXPORT void SWIG_init(void) {
SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
SWIG_Python_SetConstant(d, "STOCK_NOFLAGS",SWIG_From_int(static_cast< int >(wxSTOCK_NOFLAGS)));
SWIG_Python_SetConstant(d, "STOCK_WITH_MNEMONIC",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_MNEMONIC)));
SWIG_Python_SetConstant(d, "STOCK_WITH_ACCELERATOR",SWIG_From_int(static_cast< int >(wxSTOCK_WITH_ACCELERATOR)));
SWIG_Python_SetConstant(d, "STOCK_MENU",SWIG_From_int(static_cast< int >(wxSTOCK_MENU)));
SWIG_Python_SetConstant(d, "SHUTDOWN_POWEROFF",SWIG_From_int(static_cast< int >(wxSHUTDOWN_POWEROFF)));
SWIG_Python_SetConstant(d, "SHUTDOWN_REBOOT",SWIG_From_int(static_cast< int >(wxSHUTDOWN_REBOOT)));
SWIG_Python_SetConstant(d, "OS_UNKNOWN",SWIG_From_int(static_cast< int >(wxOS_UNKNOWN)));
+49 -2
View File
@@ -591,6 +591,10 @@ class Frame(TopLevelWindow):
return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
MenuBar = property(GetMenuBar,SetMenuBar,doc="See `GetMenuBar` and `SetMenuBar`")
StatusBar = property(GetStatusBar,SetStatusBar,doc="See `GetStatusBar` and `SetStatusBar`")
StatusBarPane = property(GetStatusBarPane,SetStatusBarPane,doc="See `GetStatusBarPane` and `SetStatusBarPane`")
ToolBar = property(GetToolBar,SetToolBar,doc="See `GetToolBar` and `SetToolBar`")
_windows_.Frame_swigregister(Frame)
def PreFrame(*args, **kwargs):
@@ -905,6 +909,17 @@ class StatusBar(_core.Window):
return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
def GetFields(self):
"""Return a list of field values in the status bar. """
return [self.GetStatusText(i) for i in range(self.GetFieldsCount())]
def SetFields(self, items):
"""Set the values of the statusbar fields from a list of strings. """
self.SetFieldsCount(len(items))
for i in range(len(items)):
self.SetStatusText(items[i], i)
Fields = property(GetFields,SetFields)
_windows_.StatusBar_swigregister(StatusBar)
def PreStatusBar(*args, **kwargs):
@@ -1752,11 +1767,19 @@ class VScrolledWindow(Panel):
return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
def HitTestXY(*args, **kwargs):
"""HitTestXY(self, int x, int y) -> int"""
"""
HitTestXY(self, int x, int y) -> int
Test where the given (in client coords) point lies
"""
return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs)
def HitTest(*args, **kwargs):
"""HitTest(self, Point pt) -> int"""
"""
HitTest(self, Point pt) -> int
Test where the given (in client coords) point lies
"""
return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
def RefreshAll(*args, **kwargs):
@@ -1960,6 +1983,7 @@ class HtmlListBox(VListBox):
"""OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
return _windows_.HtmlListBox_OnLinkClicked(*args, **kwargs)
FileSystem = property(GetFileSystem,doc="See `GetFileSystem`")
_windows_.HtmlListBox_swigregister(HtmlListBox)
def PreHtmlListBox(*args, **kwargs):
@@ -2377,6 +2401,14 @@ class FileDialog(Dialog):
"""
return _windows_.FileDialog_GetPaths(*args, **kwargs)
Directory = property(GetDirectory,SetDirectory,doc="See `GetDirectory` and `SetDirectory`")
Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
Filenames = property(GetFilenames,doc="See `GetFilenames`")
FilterIndex = property(GetFilterIndex,SetFilterIndex,doc="See `GetFilterIndex` and `SetFilterIndex`")
Message = property(GetMessage,SetMessage,doc="See `GetMessage` and `SetMessage`")
Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
Paths = property(GetPaths,doc="See `GetPaths`")
Wildcard = property(GetWildcard,SetWildcard,doc="See `GetWildcard` and `SetWildcard`")
_windows_.FileDialog_swigregister(FileDialog)
CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
@@ -2670,6 +2702,12 @@ class FontData(_core.Object):
"""
return _windows_.FontData_SetShowHelp(*args, **kwargs)
AllowSymbols = property(GetAllowSymbols,SetAllowSymbols,doc="See `GetAllowSymbols` and `SetAllowSymbols`")
ChosenFont = property(GetChosenFont,SetChosenFont,doc="See `GetChosenFont` and `SetChosenFont`")
Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
EnableEffects = property(GetEnableEffects,doc="See `GetEnableEffects`")
InitialFont = property(GetInitialFont,SetInitialFont,doc="See `GetInitialFont` and `SetInitialFont`")
ShowHelp = property(GetShowHelp,SetShowHelp,doc="See `GetShowHelp` and `SetShowHelp`")
_windows_.FontData_swigregister(FontData)
class FontDialog(Dialog):
@@ -2702,6 +2740,7 @@ class FontDialog(Dialog):
"""
return _windows_.FontDialog_GetFontData(*args, **kwargs)
FontData = property(GetFontData,doc="See `GetFontData`")
_windows_.FontDialog_swigregister(FontDialog)
@@ -2859,6 +2898,10 @@ class FindDialogEvent(_core.CommandEvent):
"""SetReplaceString(self, String str)"""
return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
Dialog = property(GetDialog,doc="See `GetDialog`")
FindString = property(GetFindString,SetFindString,doc="See `GetFindString` and `SetFindString`")
Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`")
ReplaceString = property(GetReplaceString,SetReplaceString,doc="See `GetReplaceString` and `SetReplaceString`")
_windows_.FindDialogEvent_swigregister(FindDialogEvent)
class FindReplaceData(_core.Object):
@@ -2931,6 +2974,9 @@ class FindReplaceData(_core.Object):
"""
return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
FindString = property(GetFindString,SetFindString,doc="See `GetFindString` and `SetFindString`")
Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`")
ReplaceString = property(GetReplaceString,SetReplaceString,doc="See `GetReplaceString` and `SetReplaceString`")
_windows_.FindReplaceData_swigregister(FindReplaceData)
class FindReplaceDialog(Dialog):
@@ -2981,6 +3027,7 @@ class FindReplaceDialog(Dialog):
"""
return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
_windows_.FindReplaceDialog_swigregister(FindReplaceDialog)
def PreFindReplaceDialog(*args, **kwargs):
+9 -6
View File
@@ -1346,27 +1346,30 @@ class DockArt(object):
return _aui.DockArt_SetColor(*args, **kwargs)
def DrawSash(*args, **kwargs):
"""DrawSash(self, DC dc, int orientation, Rect rect)"""
"""DrawSash(self, DC dc, Window window, int orientation, Rect rect)"""
return _aui.DockArt_DrawSash(*args, **kwargs)
def DrawBackground(*args, **kwargs):
"""DrawBackground(self, DC dc, int orientation, Rect rect)"""
"""DrawBackground(self, DC dc, Window window, int orientation, Rect rect)"""
return _aui.DockArt_DrawBackground(*args, **kwargs)
def DrawCaption(*args, **kwargs):
"""DrawCaption(self, DC dc, String text, Rect rect, PaneInfo pane)"""
"""DrawCaption(self, DC dc, Window window, String text, Rect rect, PaneInfo pane)"""
return _aui.DockArt_DrawCaption(*args, **kwargs)
def DrawGripper(*args, **kwargs):
"""DrawGripper(self, DC dc, Rect rect, PaneInfo pane)"""
"""DrawGripper(self, DC dc, Window window, Rect rect, PaneInfo pane)"""
return _aui.DockArt_DrawGripper(*args, **kwargs)
def DrawBorder(*args, **kwargs):
"""DrawBorder(self, DC dc, Rect rect, PaneInfo pane)"""
"""DrawBorder(self, DC dc, Window window, Rect rect, PaneInfo pane)"""
return _aui.DockArt_DrawBorder(*args, **kwargs)
def DrawPaneButton(*args, **kwargs):
"""DrawPaneButton(self, DC dc, int button, int button_state, Rect rect, PaneInfo pane)"""
"""
DrawPaneButton(self, DC dc, Window window, int button, int button_state,
Rect rect, PaneInfo pane)
"""
return _aui.DockArt_DrawPaneButton(*args, **kwargs)
_aui.DockArt_swigregister(DockArt)
File diff suppressed because it is too large Load Diff