X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06810ecffba950f5bea4782e6d189c8eb50bdc8e..72ef6efb1f1819e0b1187cedfd8989d4a37bf457:/wxPython/src/mac/_windows.py diff --git a/wxPython/src/mac/_windows.py b/wxPython/src/mac/_windows.py index 29689ec46d..82e6f18799 100644 --- a/wxPython/src/mac/_windows.py +++ b/wxPython/src/mac/_windows.py @@ -278,6 +278,10 @@ class ScrolledWindow(Panel): return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + ScaleX = property(GetScaleX,doc="See `GetScaleX`") + ScaleY = property(GetScaleY,doc="See `GetScaleY`") + TargetWindow = property(GetTargetWindow,SetTargetWindow,doc="See `GetTargetWindow` and `SetTargetWindow`") + ViewStart = property(GetViewStart,doc="See `GetViewStart`") _windows_.ScrolledWindow_swigregister(ScrolledWindow) def PreScrolledWindow(*args, **kwargs): @@ -328,10 +332,13 @@ FRAME_SHAPED = _windows_.FRAME_SHAPED FRAME_DRAWER = _windows_.FRAME_DRAWER FRAME_EX_METAL = _windows_.FRAME_EX_METAL DIALOG_EX_METAL = _windows_.DIALOG_EX_METAL +WS_EX_CONTEXTHELP = _windows_.WS_EX_CONTEXTHELP DIALOG_MODAL = _windows_.DIALOG_MODAL DIALOG_MODELESS = _windows_.DIALOG_MODELESS USER_COLOURS = _windows_.USER_COLOURS NO_3D = _windows_.NO_3D +FRAME_EX_CONTEXTHELP = _windows_.FRAME_EX_CONTEXTHELP +DIALOG_EX_CONTEXTHELP = _windows_.DIALOG_EX_CONTEXTHELP FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR @@ -427,6 +434,47 @@ class TopLevelWindow(_core.Window): return _windows_.TopLevelWindow_CenterOnScreen(*args, **kwargs) CentreOnScreen = CenterOnScreen + def EnableCloseButton(*args, **kwargs): + """EnableCloseButton(self, bool enable=True) -> bool""" + return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs) + + def GetDefaultItem(*args, **kwargs): + """ + GetDefaultItem(self) -> Window + + Get the default child of this parent, i.e. the one which is activated + by pressing such as the OK button on a wx.Dialog. + """ + return _windows_.TopLevelWindow_GetDefaultItem(*args, **kwargs) + + def SetDefaultItem(*args, **kwargs): + """ + SetDefaultItem(self, Window child) -> Window + + Set this child as default, return the old default. + """ + return _windows_.TopLevelWindow_SetDefaultItem(*args, **kwargs) + + def SetTmpDefaultItem(*args, **kwargs): + """ + SetTmpDefaultItem(self, Window win) + + Set this child as temporary default + """ + return _windows_.TopLevelWindow_SetTmpDefaultItem(*args, **kwargs) + + def GetTmpDefaultItem(*args, **kwargs): + """ + GetTmpDefaultItem(self) -> Window + + Return the temporary default item, which can be None. + """ + return _windows_.TopLevelWindow_GetTmpDefaultItem(*args, **kwargs) + + DefaultItem = property(GetDefaultItem,SetDefaultItem,doc="See `GetDefaultItem` and `SetDefaultItem`") + Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`") + Title = property(GetTitle,SetTitle,doc="See `GetTitle` and `SetTitle`") + TmpDefaultItem = property(GetTmpDefaultItem,SetTmpDefaultItem,doc="See `GetTmpDefaultItem` and `SetTmpDefaultItem`") _windows_.TopLevelWindow_swigregister(TopLevelWindow) cvar = _windows_.cvar FrameNameStr = cvar.FrameNameStr @@ -551,6 +599,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): @@ -665,6 +717,9 @@ class Dialog(TopLevelWindow): return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + AffirmativeId = property(GetAffirmativeId,SetAffirmativeId,doc="See `GetAffirmativeId` and `SetAffirmativeId`") + EscapeId = property(GetEscapeId,SetEscapeId,doc="See `GetEscapeId` and `SetEscapeId`") + ReturnCode = property(GetReturnCode,SetReturnCode,doc="See `GetReturnCode` and `SetReturnCode`") _windows_.Dialog_swigregister(Dialog) def PreDialog(*args, **kwargs): @@ -746,6 +801,7 @@ class SplashScreenWindow(_core.Window): """GetBitmap(self) -> Bitmap""" return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) + Bitmap = property(GetBitmap,SetBitmap,doc="See `GetBitmap` and `SetBitmap`") _windows_.SplashScreenWindow_swigregister(SplashScreenWindow) class SplashScreen(Frame): @@ -773,6 +829,9 @@ class SplashScreen(Frame): """GetTimeout(self) -> int""" return _windows_.SplashScreen_GetTimeout(*args, **kwargs) + SplashStyle = property(GetSplashStyle,doc="See `GetSplashStyle`") + SplashWindow = property(GetSplashWindow,doc="See `GetSplashWindow`") + Timeout = property(GetTimeout,doc="See `GetTimeout`") _windows_.SplashScreen_swigregister(SplashScreen) #--------------------------------------------------------------------------- @@ -862,6 +921,22 @@ 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) + + BorderX = property(GetBorderX,doc="See `GetBorderX`") + BorderY = property(GetBorderY,doc="See `GetBorderY`") + FieldRect = property(GetFieldRect,doc="See `GetFieldRect`") + Fields = property(GetFields,SetFields,doc="See `GetFields` and `SetFields`") + FieldsCount = property(GetFieldsCount,SetFieldsCount,doc="See `GetFieldsCount` and `SetFieldsCount`") + StatusText = property(GetStatusText,SetStatusText,doc="See `GetStatusText` and `SetStatusText`") _windows_.StatusBar_swigregister(StatusBar) def PreStatusBar(*args, **kwargs): @@ -1185,6 +1260,15 @@ class SplitterWindow(_core.Window): return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + BorderSize = property(GetBorderSize,SetBorderSize,doc="See `GetBorderSize` and `SetBorderSize`") + MinimumPaneSize = property(GetMinimumPaneSize,SetMinimumPaneSize,doc="See `GetMinimumPaneSize` and `SetMinimumPaneSize`") + NeedUpdating = property(GetNeedUpdating,SetNeedUpdating,doc="See `GetNeedUpdating` and `SetNeedUpdating`") + SashGravity = property(GetSashGravity,SetSashGravity,doc="See `GetSashGravity` and `SetSashGravity`") + SashPosition = property(GetSashPosition,SetSashPosition,doc="See `GetSashPosition` and `SetSashPosition`") + SashSize = property(GetSashSize,SetSashSize,doc="See `GetSashSize` and `SetSashSize`") + SplitMode = property(GetSplitMode,SetSplitMode,doc="See `GetSplitMode` and `SetSplitMode`") + Window1 = property(GetWindow1,doc="See `GetWindow1`") + Window2 = property(GetWindow2,doc="See `GetWindow2`") _windows_.SplitterWindow_swigregister(SplitterWindow) SplitterNameStr = cvar.SplitterNameStr @@ -1274,6 +1358,10 @@ class SplitterEvent(_core.NotifyEvent): """ return _windows_.SplitterEvent_GetY(*args, **kwargs) + SashPosition = property(GetSashPosition,SetSashPosition,doc="See `GetSashPosition` and `SetSashPosition`") + WindowBeingRemoved = property(GetWindowBeingRemoved,doc="See `GetWindowBeingRemoved`") + X = property(GetX,doc="See `GetX`") + Y = property(GetY,doc="See `GetY`") _windows_.SplitterEvent_swigregister(SplitterEvent) wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED @@ -1398,6 +1486,12 @@ class SashWindow(_core.Window): """SizeWindows(self)""" return _windows_.SashWindow_SizeWindows(*args, **kwargs) + DefaultBorderSize = property(GetDefaultBorderSize,SetDefaultBorderSize,doc="See `GetDefaultBorderSize` and `SetDefaultBorderSize`") + ExtraBorderSize = property(GetExtraBorderSize,SetExtraBorderSize,doc="See `GetExtraBorderSize` and `SetExtraBorderSize`") + MaximumSizeX = property(GetMaximumSizeX,SetMaximumSizeX,doc="See `GetMaximumSizeX` and `SetMaximumSizeX`") + MaximumSizeY = property(GetMaximumSizeY,SetMaximumSizeY,doc="See `GetMaximumSizeY` and `SetMaximumSizeY`") + MinimumSizeX = property(GetMinimumSizeX,SetMinimumSizeX,doc="See `GetMinimumSizeX` and `SetMinimumSizeX`") + MinimumSizeY = property(GetMinimumSizeY,SetMinimumSizeY,doc="See `GetMinimumSizeY` and `SetMinimumSizeY`") _windows_.SashWindow_swigregister(SashWindow) SashNameStr = cvar.SashNameStr SashLayoutNameStr = cvar.SashLayoutNameStr @@ -1440,6 +1534,9 @@ class SashEvent(_core.CommandEvent): """GetDragStatus(self) -> int""" return _windows_.SashEvent_GetDragStatus(*args, **kwargs) + DragRect = property(GetDragRect,SetDragRect,doc="See `GetDragRect` and `SetDragRect`") + DragStatus = property(GetDragStatus,SetDragStatus,doc="See `GetDragStatus` and `SetDragStatus`") + Edge = property(GetEdge,SetEdge,doc="See `GetEdge` and `SetEdge`") _windows_.SashEvent_swigregister(SashEvent) wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED @@ -1508,6 +1605,11 @@ class QueryLayoutInfoEvent(_core.Event): """GetAlignment(self) -> int""" return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) + Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") + RequestedLength = property(GetRequestedLength,SetRequestedLength,doc="See `GetRequestedLength` and `SetRequestedLength`") + Size = property(GetSize,SetSize,doc="See `GetSize` and `SetSize`") _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent) class CalculateLayoutEvent(_core.Event): @@ -1533,6 +1635,8 @@ class CalculateLayoutEvent(_core.Event): """GetRect(self) -> Rect""" return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs) + Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") + Rect = property(GetRect,SetRect,doc="See `GetRect` and `SetRect`") _windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEvent) EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) @@ -1579,6 +1683,8 @@ class SashLayoutWindow(SashWindow): """SetOrientation(self, int orientation)""" return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) + Alignment = property(GetAlignment,SetAlignment,doc="See `GetAlignment` and `SetAlignment`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") _windows_.SashLayoutWindow_swigregister(SashLayoutWindow) def PreSashLayoutWindow(*args, **kwargs): @@ -1758,6 +1864,11 @@ class VScrolledWindow(Panel): """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int""" return _windows_.VScrolledWindow_GetLinesHeight(*args, **kwargs) + FirstVisibleLine = property(GetFirstVisibleLine,doc="See `GetFirstVisibleLine`") + LastVisibleLine = property(GetLastVisibleLine,doc="See `GetLastVisibleLine`") + LineCount = property(GetLineCount,SetLineCount,doc="See `GetLineCount` and `SetLineCount`") + VisibleBegin = property(GetVisibleBegin,doc="See `GetVisibleBegin`") + VisibleEnd = property(GetVisibleEnd,doc="See `GetVisibleEnd`") _windows_.VScrolledWindow_swigregister(VScrolledWindow) def PreVScrolledWindow(*args, **kwargs): @@ -1880,6 +1991,12 @@ class VListBox(VScrolledWindow): """OnDrawBackground(self, DC dc, Rect rect, size_t n)""" return _windows_.VListBox_OnDrawBackground(*args, **kwargs) + FirstSelected = property(GetFirstSelected,doc="See `GetFirstSelected`") + ItemCount = property(GetItemCount,SetItemCount,doc="See `GetItemCount` and `SetItemCount`") + Margins = property(GetMargins,SetMargins,doc="See `GetMargins` and `SetMargins`") + SelectedCount = property(GetSelectedCount,doc="See `GetSelectedCount`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + SelectionBackground = property(GetSelectionBackground,SetSelectionBackground,doc="See `GetSelectionBackground` and `SetSelectionBackground`") _windows_.VListBox_swigregister(VListBox) VListBoxNameStr = cvar.VListBoxNameStr @@ -1923,6 +2040,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): @@ -2079,6 +2197,9 @@ class ColourData(_core.Object): """ return _windows_.ColourData_SetCustomColour(*args, **kwargs) + ChooseFull = property(GetChooseFull,SetChooseFull,doc="See `GetChooseFull` and `SetChooseFull`") + Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") + CustomColour = property(GetCustomColour,SetCustomColour,doc="See `GetCustomColour` and `SetCustomColour`") _windows_.ColourData_swigregister(ColourData) FileSelectorPromptStr = cvar.FileSelectorPromptStr DirSelectorPromptStr = cvar.DirSelectorPromptStr @@ -2110,6 +2231,7 @@ class ColourDialog(Dialog): """ return _windows_.ColourDialog_GetColourData(*args, **kwargs) + ColourData = property(GetColourData,doc="See `GetColourData`") _windows_.ColourDialog_swigregister(ColourDialog) @@ -2119,6 +2241,9 @@ def GetColourFromUser(*args, **kwargs): String caption=EmptyString) -> Colour """ return _windows_.GetColourFromUser(*args, **kwargs) +DD_NEW_DIR_BUTTON = _windows_.DD_NEW_DIR_BUTTON +DD_DEFAULT_STYLE = _windows_.DD_DEFAULT_STYLE +DD_CHANGE_DIR = _windows_.DD_CHANGE_DIR class DirDialog(Dialog): """ wx.DirDialog allows the user to select a directory by browising the @@ -2129,7 +2254,7 @@ class DirDialog(Dialog): def __init__(self, *args, **kwargs): """ __init__(self, Window parent, String message=DirSelectorPromptStr, - String defaultPath=EmptyString, long style=0, + String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE, Point pos=DefaultPosition, Size size=DefaultSize, String name=DirDialogNameStr) -> DirDialog @@ -2170,8 +2295,25 @@ class DirDialog(Dialog): """ return _windows_.DirDialog_SetPath(*args, **kwargs) + Message = property(GetMessage,SetMessage,doc="See `GetMessage` and `SetMessage`") + Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") _windows_.DirDialog_swigregister(DirDialog) +OPEN = _windows_.OPEN +SAVE = _windows_.SAVE +OVERWRITE_PROMPT = _windows_.OVERWRITE_PROMPT +FILE_MUST_EXIST = _windows_.FILE_MUST_EXIST +MULTIPLE = _windows_.MULTIPLE +CHANGE_DIR = _windows_.CHANGE_DIR +HIDE_READONLY = _windows_.HIDE_READONLY +FD_OPEN = _windows_.FD_OPEN +FD_SAVE = _windows_.FD_SAVE +FD_OVERWRITE_PROMPT = _windows_.FD_OVERWRITE_PROMPT +FD_FILE_MUST_EXIST = _windows_.FD_FILE_MUST_EXIST +FD_MULTIPLE = _windows_.FD_MULTIPLE +FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR +FD_PREVIEW = _windows_.FD_PREVIEW +FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE class FileDialog(Dialog): """ wx.FileDialog allows the user to select one or more files from the @@ -2184,7 +2326,8 @@ class FileDialog(Dialog): __init__(self, Window parent, String message=FileSelectorPromptStr, String defaultDir=EmptyString, String defaultFile=EmptyString, String wildcard=FileSelectorDefaultWildcardStr, - long style=0, Point pos=DefaultPosition) -> FileDialog + long style=FD_DEFAULT_STYLE, + Point pos=DefaultPosition) -> FileDialog Constructor. Use ShowModal method to show the dialog. """ @@ -2236,14 +2379,6 @@ class FileDialog(Dialog): """ return _windows_.FileDialog_SetWildcard(*args, **kwargs) - def SetStyle(*args, **kwargs): - """ - SetStyle(self, long style) - - Sets the dialog style. - """ - return _windows_.FileDialog_SetStyle(*args, **kwargs) - def SetFilterIndex(*args, **kwargs): """ SetFilterIndex(self, int filterIndex) @@ -2292,14 +2427,6 @@ class FileDialog(Dialog): """ return _windows_.FileDialog_GetWildcard(*args, **kwargs) - def GetStyle(*args, **kwargs): - """ - GetStyle(self) -> long - - Returns the dialog style. - """ - return _windows_.FileDialog_GetStyle(*args, **kwargs) - def GetFilterIndex(*args, **kwargs): """ GetFilterIndex(self) -> int @@ -2331,6 +2458,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 @@ -2379,6 +2514,7 @@ class MultiChoiceDialog(Dialog): """ return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) + Selections = property(GetSelections,SetSelections,doc="See `GetSelections` and `SetSelections`") _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialog) class SingleChoiceDialog(Dialog): @@ -2400,7 +2536,7 @@ class SingleChoiceDialog(Dialog): """ GetSelection(self) -> int - Get the index of teh currently selected item. + Get the index of the currently selected item. """ return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) @@ -2420,6 +2556,8 @@ class SingleChoiceDialog(Dialog): """ return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + StringSelection = property(GetStringSelection,doc="See `GetStringSelection`") _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialog) TextEntryDialogStyle = _windows_.TextEntryDialogStyle @@ -2455,6 +2593,7 @@ class TextEntryDialog(Dialog): """ return _windows_.TextEntryDialog_SetValue(*args, **kwargs) + Value = property(GetValue,SetValue,doc="See `GetValue` and `SetValue`") _windows_.TextEntryDialog_swigregister(TextEntryDialog) class PasswordEntryDialog(TextEntryDialog): @@ -2471,6 +2610,27 @@ class PasswordEntryDialog(TextEntryDialog): _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialog) GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr +class NumberEntryDialog(Dialog): + """A dialog with spin control, ok and cancel buttons.""" + 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, String message, String prompt, String caption, + long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog + + Constructor. Use ShowModal method to show the dialog. + """ + _windows_.NumberEntryDialog_swiginit(self,_windows_.new_NumberEntryDialog(*args, **kwargs)) + self._setOORInfo(self) + + def GetValue(*args, **kwargs): + """GetValue(self) -> long""" + return _windows_.NumberEntryDialog_GetValue(*args, **kwargs) + + Value = property(GetValue,doc="See `GetValue`") +_windows_.NumberEntryDialog_swigregister(NumberEntryDialog) + class FontData(_core.Object): """ This class holds a variety of information related to font dialogs and @@ -2604,6 +2764,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): @@ -2636,6 +2802,7 @@ class FontDialog(Dialog): """ return _windows_.FontDialog_GetFontData(*args, **kwargs) + FontData = property(GetFontData,doc="See `GetFontData`") _windows_.FontDialog_swigregister(FontDialog) @@ -2662,6 +2829,14 @@ class MessageDialog(Dialog): _windows_.MessageDialog_swigregister(MessageDialog) +PD_AUTO_HIDE = _windows_.PD_AUTO_HIDE +PD_APP_MODAL = _windows_.PD_APP_MODAL +PD_CAN_ABORT = _windows_.PD_CAN_ABORT +PD_ELAPSED_TIME = _windows_.PD_ELAPSED_TIME +PD_ESTIMATED_TIME = _windows_.PD_ESTIMATED_TIME +PD_REMAINING_TIME = _windows_.PD_REMAINING_TIME +PD_SMOOTH = _windows_.PD_SMOOTH +PD_CAN_SKIP = _windows_.PD_CAN_SKIP class ProgressDialog(Frame): """ A dialog that shows a short message and a progress bar. Optionally, it @@ -2693,13 +2868,23 @@ class ProgressDialog(Frame): unless the Cancel button has been pressed, and ``skip`` is ``False`` unless the Skip button (if any) has been pressed. - If the ``continue`` return value is ``false``, the application can either + If the ``continue`` return value is ``False``, the application can either immediately destroy the dialog or ask the user for confirmation, and if the abort is not confirmed the dialog may be resumed with `Resume` function. """ return _windows_.ProgressDialog_Update(*args, **kwargs) + def UpdatePulse(*args, **kwargs): + """ + UpdatePulse(self, String newmsg) --> (continue, skip) + + Just like `Update` but switches the dialog to use a gauge in + interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of + progress. + """ + return _windows_.ProgressDialog_UpdatePulse(*args, **kwargs) + def Resume(*args, **kwargs): """ Resume(self) @@ -2730,11 +2915,11 @@ EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) # For backwards compatibility. Should they be removed? -EVT_COMMAND_FIND = EVT_FIND +EVT_COMMAND_FIND = EVT_FIND EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL -EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE +EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE class FindDialogEvent(_core.CommandEvent): """Events for the FindReplaceDialog""" @@ -2793,6 +2978,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): @@ -2865,6 +3054,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): @@ -2915,6 +3107,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): @@ -2984,14 +3177,12 @@ class MDIParentFrame(Frame): """GetClientWindow(self) -> MDIClientWindow""" return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) - def GetToolBar(*args, **kwargs): - """GetToolBar(self) -> Window""" - return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) - def Tile(*args, **kwargs): """Tile(self, int orient=HORIZONTAL)""" return _windows_.MDIParentFrame_Tile(*args, **kwargs) + ActiveChild = property(GetActiveChild,doc="See `GetActiveChild`") + ClientWindow = property(GetClientWindow,doc="See `GetClientWindow`") _windows_.MDIParentFrame_swigregister(MDIParentFrame) def PreMDIParentFrame(*args, **kwargs): @@ -3738,6 +3929,19 @@ class PrintData(_core.Object): """SetPrivData(self, PyObject data)""" return _windows_.PrintData_SetPrivData(*args, **kwargs) + Bin = property(GetBin,SetBin,doc="See `GetBin` and `SetBin`") + Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`") + Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") + Duplex = property(GetDuplex,SetDuplex,doc="See `GetDuplex` and `SetDuplex`") + Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`") + NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`") + Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`") + PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`") + PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`") + PrintMode = property(GetPrintMode,SetPrintMode,doc="See `GetPrintMode` and `SetPrintMode`") + PrinterName = property(GetPrinterName,SetPrinterName,doc="See `GetPrinterName` and `SetPrinterName`") + PrivData = property(GetPrivData,SetPrivData,doc="See `GetPrivData` and `SetPrivData`") + Quality = property(GetQuality,SetQuality,doc="See `GetQuality` and `SetQuality`") _windows_.PrintData_swigregister(PrintData) PrintoutTitleStr = cvar.PrintoutTitleStr PreviewCanvasNameStr = cvar.PreviewCanvasNameStr @@ -3880,6 +4084,15 @@ class PageSetupDialogData(_core.Object): return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs) def __nonzero__(self): return self.Ok() + DefaultInfo = property(GetDefaultInfo,SetDefaultInfo,doc="See `GetDefaultInfo` and `SetDefaultInfo`") + DefaultMinMargins = property(GetDefaultMinMargins,SetDefaultMinMargins,doc="See `GetDefaultMinMargins` and `SetDefaultMinMargins`") + MarginBottomRight = property(GetMarginBottomRight,SetMarginBottomRight,doc="See `GetMarginBottomRight` and `SetMarginBottomRight`") + MarginTopLeft = property(GetMarginTopLeft,SetMarginTopLeft,doc="See `GetMarginTopLeft` and `SetMarginTopLeft`") + MinMarginBottomRight = property(GetMinMarginBottomRight,SetMinMarginBottomRight,doc="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`") + MinMarginTopLeft = property(GetMinMarginTopLeft,SetMinMarginTopLeft,doc="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`") + PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`") + PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`") + PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`") _windows_.PageSetupDialogData_swigregister(PageSetupDialogData) class PageSetupDialog(_core.Object): @@ -3904,6 +4117,8 @@ class PageSetupDialog(_core.Object): return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) def Destroy(self): pass + PageSetupData = property(GetPageSetupData,doc="See `GetPageSetupData`") + PageSetupDialogData = property(GetPageSetupDialogData,doc="See `GetPageSetupDialogData`") _windows_.PageSetupDialog_swigregister(PageSetupDialog) class PrintDialogData(_core.Object): @@ -4036,6 +4251,16 @@ class PrintDialogData(_core.Object): return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) def __nonzero__(self): return self.Ok() + AllPages = property(GetAllPages,SetAllPages,doc="See `GetAllPages` and `SetAllPages`") + Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`") + FromPage = property(GetFromPage,SetFromPage,doc="See `GetFromPage` and `SetFromPage`") + MaxPage = property(GetMaxPage,SetMaxPage,doc="See `GetMaxPage` and `SetMaxPage`") + MinPage = property(GetMinPage,SetMinPage,doc="See `GetMinPage` and `SetMinPage`") + NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`") + PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`") + PrintToFile = property(GetPrintToFile,SetPrintToFile,doc="See `GetPrintToFile` and `SetPrintToFile`") + Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`") + ToPage = property(GetToPage,SetToPage,doc="See `GetToPage` and `SetToPage`") _windows_.PrintDialogData_swigregister(PrintDialogData) class PrintDialog(_core.Object): @@ -4064,6 +4289,9 @@ class PrintDialog(_core.Object): return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) def Destroy(self): pass + PrintDC = property(GetPrintDC,doc="See `GetPrintDC`") + PrintData = property(GetPrintData,doc="See `GetPrintData`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") _windows_.PrintDialog_swigregister(PrintDialog) PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR @@ -4111,6 +4339,8 @@ class Printer(_core.Object): return _windows_.Printer_GetLastError(*args, **kwargs) GetLastError = staticmethod(GetLastError) + Abort = property(GetAbort,doc="See `GetAbort`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") _windows_.Printer_swigregister(Printer) def Printer_GetLastError(*args): @@ -4242,6 +4472,12 @@ class Printout(_core.Object): base_GetPageInfo = wx._deprecated(base_GetPageInfo, "Please use Printout.GetPageInfo instead.") + DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`") + PPIPrinter = property(GetPPIPrinter,SetPPIPrinter,doc="See `GetPPIPrinter` and `SetPPIPrinter`") + PPIScreen = property(GetPPIScreen,SetPPIScreen,doc="See `GetPPIScreen` and `SetPPIScreen`") + PageSizeMM = property(GetPageSizeMM,SetPageSizeMM,doc="See `GetPageSizeMM` and `SetPageSizeMM`") + PageSizePixels = property(GetPageSizePixels,SetPageSizePixels,doc="See `GetPageSizePixels` and `SetPageSizePixels`") + Title = property(GetTitle,doc="See `GetTitle`") _windows_.Printout_swigregister(Printout) class PreviewCanvas(ScrolledWindow): @@ -4288,6 +4524,7 @@ class PreviewFrame(Frame): """GetControlBar(self) -> PreviewControlBar""" return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) + ControlBar = property(GetControlBar,doc="See `GetControlBar`") _windows_.PreviewFrame_swigregister(PreviewFrame) PREVIEW_PRINT = _windows_.PREVIEW_PRINT @@ -4351,6 +4588,8 @@ class PreviewControlBar(Panel): """OnGoto(self)""" return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) + PrintPreview = property(GetPrintPreview,doc="See `GetPrintPreview`") + ZoomControl = property(GetZoomControl,SetZoomControl,doc="See `GetZoomControl` and `SetZoomControl`") _windows_.PreviewControlBar_swigregister(PreviewControlBar) class PrintPreview(_core.Object): @@ -4454,6 +4693,15 @@ class PrintPreview(_core.Object): return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) def __nonzero__(self): return self.Ok() + Canvas = property(GetCanvas,SetCanvas,doc="See `GetCanvas` and `SetCanvas`") + CurrentPage = property(GetCurrentPage,SetCurrentPage,doc="See `GetCurrentPage` and `SetCurrentPage`") + Frame = property(GetFrame,SetFrame,doc="See `GetFrame` and `SetFrame`") + MaxPage = property(GetMaxPage,doc="See `GetMaxPage`") + MinPage = property(GetMinPage,doc="See `GetMinPage`") + PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`") + Printout = property(GetPrintout,SetPrintout,doc="See `GetPrintout` and `SetPrintout`") + PrintoutForPrinting = property(GetPrintoutForPrinting,doc="See `GetPrintoutForPrinting`") + Zoom = property(GetZoom,SetZoom,doc="See `GetZoom` and `SetZoom`") _windows_.PrintPreview_swigregister(PrintPreview) class PyPrintPreview(PrintPreview):