// void SetMenuItem(wxMenuItem *item);
// wxMenuItem *GetMenuItem() const;
+ %newobject Create;
+ DocDeclStr(
+ static wxAcceleratorEntry *, Create(const wxString& str),
+ "Create accelerator corresponding to the specified string, or None if
+it coulnd't be parsed.", "");
+
DocDeclStr(
int , GetFlags(),
"Get the AcceleratorEntry's flags.", "");
// const wxString &extensionList);
+ %property(Directory, GetDirectory, SetDirectory, doc="See `GetDirectory` and `SetDirectory`");
+ %property(Filename, GetFilename, SetFilename, doc="See `GetFilename` and `SetFilename`");
+ %property(Filenames, GetFilenames, doc="See `GetFilenames`");
+ %property(FilterIndex, GetFilterIndex, SetFilterIndex, doc="See `GetFilterIndex` and `SetFilterIndex`");
+ %property(Message, GetMessage, SetMessage, doc="See `GetMessage` and `SetMessage`");
+ %property(Path, GetPath, SetPath, doc="See `GetPath` and `SetPath`");
+ %property(Paths, GetPaths, doc="See `GetPaths`");
+ %property(Wildcard, GetWildcard, SetWildcard, doc="See `GetWildcard` and `SetWildcard`");
+
};
void , SetShowHelp(bool showHelp),
"Determines whether the Help button will be displayed in the font
dialog (Windows only). The default value is false.", "");
+
+ %property(AllowSymbols, GetAllowSymbols, SetAllowSymbols, doc="See `GetAllowSymbols` and `SetAllowSymbols`");
+ %property(ChosenFont, GetChosenFont, SetChosenFont, doc="See `GetChosenFont` and `SetChosenFont`");
+ %property(Colour, GetColour, SetColour, doc="See `GetColour` and `SetColour`");
+ %property(EnableEffects, GetEnableEffects, doc="See `GetEnableEffects`");
+ %property(InitialFont, GetInitialFont, SetInitialFont, doc="See `GetInitialFont` and `SetInitialFont`");
+ %property(ShowHelp, GetShowHelp, SetShowHelp, doc="See `GetShowHelp` and `SetShowHelp`");
+
};
wxFontData& , GetFontData(),
"Returns a reference to the internal `wx.FontData` used by the
wx.FontDialog.", "");
+
+ %property(FontData, GetFontData, doc="See `GetFontData`");
};
DocDeclStr(
void , SetReplaceString(const wxString& str),
"", "");
+
+ %property(Dialog, GetDialog, doc="See `GetDialog`");
+ %property(FindString, GetFindString, SetFindString, doc="See `GetFindString` and `SetFindString`");
+ %property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`");
+ %property(ReplaceString, GetReplaceString, SetReplaceString, doc="See `GetReplaceString` and `SetReplaceString`");
};
void , SetReplaceString(const wxString& str),
"Set the replacement string (used as initial value by the dialog).", "");
+ %property(FindString, GetFindString, SetFindString, doc="See `GetFindString` and `SetFindString`");
+ %property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`");
+ %property(ReplaceString, GetReplaceString, SetReplaceString, doc="See `GetReplaceString` and `SetReplaceString`");
};
void , SetData(wxFindReplaceData *data),
"Set the FindReplaceData object used by this dialog.", "");
+ %property(Data, GetData, SetData, doc="See `GetData` and `SetData`");
};
//---------------------------------------------------------------------------
# if it wasn't restarted, then cleanup
wx.CallAfter(self.Stop)
+ Interval = property(GetInterval)
+ Result = property(GetResult)
#----------------------------------------------------------------------------
void , AddFile(const wxString &filename),
"Adds a file to the list of files represented by this data object.", "");
+ %property(Filenames, GetFilenames, doc="See `GetFilenames`");
};
//---------------------------------------------------------------------------
// Tile a bitmap
bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap);
+ %property(DarkShadow, GetDarkShadow, SetDarkShadow, doc="See `GetDarkShadow` and `SetDarkShadow`");
+ %property(FaceColour, GetFaceColour, SetFaceColour, doc="See `GetFaceColour` and `SetFaceColour`");
+ %property(HighlightColour, GetHighlightColour, SetHighlightColour, doc="See `GetHighlightColour` and `SetHighlightColour`");
+ %property(LightShadow, GetLightShadow, SetLightShadow, doc="See `GetLightShadow` and `SetLightShadow`");
+ %property(MediumShadow, GetMediumShadow, SetMediumShadow, doc="See `GetMediumShadow` and `SetMediumShadow`");
+
};
// all derived classes must implement it because otherwise wxPostEvent()
// for them wouldn't work (it needs to do a copy of the event)
virtual wxEvent *Clone() /* =0*/;
+
+ %property(EventObject, GetEventObject, SetEventObject, doc="See `GetEventObject` and `SetEventObject`");
+ %property(EventType, GetEventType, SetEventType, doc="See `GetEventType` and `SetEventType`");
+ %property(Id, GetId, SetId, doc="See `GetId` and `SetId`");
+ %property(Skipped, GetSkipped, doc="See `GetSkipped`");
+ %property(Timestamp, GetTimestamp, SetTimestamp, doc="See `GetTimestamp` and `SetTimestamp`");
+
};
"Returns the device context the event handler should draw upon. If
``None`` is returned then create a temporary `wx.ClientDC` and use
that instead.", "");
+
+ %property(DC, GetDC, doc="See `GetDC`");
};
Warning: the window returned may be None!", "");
void SetWindow(wxWindow *win);
+
+ %property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`");
};
//---------------------------------------------------------------------------
return event.Unbind(self, id, id2)
}
+ %property(EvtHandlerEnabled, GetEvtHandlerEnabled, SetEvtHandlerEnabled, doc="See `GetEvtHandlerEnabled` and `SetEvtHandlerEnabled`");
+ %property(NextHandler, GetNextHandler, SetNextHandler, doc="See `GetNextHandler` and `SetNextHandler`");
+ %property(PreviousHandler, GetPreviousHandler, SetPreviousHandler, doc="See `GetPreviousHandler` and `SetPreviousHandler`");
};
const wxString& GetLocation();
const wxString& GetAnchor();
wxDateTime GetModificationTime();
+
+ %property(Anchor, GetAnchor, doc="See `GetAnchor`");
+ %property(Location, GetLocation, doc="See `GetLocation`");
+ %property(MimeType, GetMimeType, doc="See `GetMimeType`");
+ %property(ModificationTime, GetModificationTime, doc="See `GetModificationTime`");
+ %property(Stream, GetStream, doc="See `GetStream`");
+
};
wxString GetAnchor(const wxString& location);
wxString GetRightLocation(const wxString& location);
wxString GetMimeTypeFromExt(const wxString& location);
+
+ %property(Anchor, GetAnchor, doc="See `GetAnchor`");
+ %property(LeftLocation, GetLeftLocation, doc="See `GetLeftLocation`");
+ %property(MimeTypeFromExt, GetMimeTypeFromExt, doc="See `GetMimeTypeFromExt`");
+ %property(Protocol, GetProtocol, doc="See `GetProtocol`");
+ %property(RightLocation, GetRightLocation, doc="See `GetRightLocation`");
};
return fname.GetFullPath();
}
}
+
+ %property(Path, GetPath, doc="See `GetPath`");
};
// the title for the dialogs (note that default is quite reasonable)
void SetDialogTitle(const wxString& title);
+
+ %property(AltForEncoding, GetAltForEncoding, doc="See `GetAltForEncoding`");
};
DocDeclStr(
static void , SetDefaultEncoding(wxFontEncoding encoding),
"Sets the default font encoding.", "");
+
+ %property(Encoding, GetEncoding, SetEncoding, doc="See `GetEncoding` and `SetEncoding`");
+ %property(FaceName, GetFaceName, SetFaceName, doc="See `GetFaceName` and `SetFaceName`");
+ %property(Family, GetFamily, SetFamily, doc="See `GetFamily` and `SetFamily`");
+ %property(FamilyString, GetFamilyString, doc="See `GetFamilyString`");
+ %property(NativeFontInfo, GetNativeFontInfo, SetNativeFontInfo, doc="See `GetNativeFontInfo` and `SetNativeFontInfo`");
+ %property(NativeFontInfoDesc, GetNativeFontInfoDesc, doc="See `GetNativeFontInfoDesc`");
+ %property(NativeFontInfoUserDesc, GetNativeFontInfoUserDesc, SetNativeFontInfoUserDesc, doc="See `GetNativeFontInfoUserDesc` and `SetNativeFontInfoUserDesc`");
+ %property(NoAntiAliasing, GetNoAntiAliasing, SetNoAntiAliasing, doc="See `GetNoAntiAliasing` and `SetNoAntiAliasing`");
+ %property(PixelSize, GetPixelSize, SetPixelSize, doc="See `GetPixelSize` and `SetPixelSize`");
+ %property(PointSize, GetPointSize, SetPointSize, doc="See `GetPointSize` and `SetPointSize`");
+ %property(Style, GetStyle, SetStyle, doc="See `GetStyle` and `SetStyle`");
+ %property(StyleString, GetStyleString, doc="See `GetStyleString`");
+ %property(Underlined, GetUnderlined, SetUnderlined, doc="See `GetUnderlined` and `SetUnderlined`");
+ %property(Weight, GetWeight, SetWeight, doc="See `GetWeight` and `SetWeight`");
+ %property(WeightString, GetWeightString, doc="See `GetWeightString`");
};
// for wxID_OK):
wxString wxGetStockLabel(wxWindowID id,
long flags = wxSTOCK_WITH_MNEMONIC);
-
+
+
+enum wxStockHelpStringClient
+{
+ wxSTOCK_MENU // help string to use for menu items
+};
+
+// Returns an help string for the given stock UI element and for the given "context".
+wxString wxGetStockHelpString(wxWindowID id,
+ wxStockHelpStringClient client = wxSTOCK_MENU);
+
+
+
MustHaveApp(wxBell);
void wxBell();
// get the icon info
const wxString& GetIconFile() const;
int GetIconIndex() const;
+
+ %property(Description, GetDescription, doc="See `GetDescription`");
+ %property(Extensions, GetExtensions, doc="See `GetExtensions`");
+ %property(ExtensionsCount, GetExtensionsCount, doc="See `GetExtensionsCount`");
+ %property(IconFile, GetIconFile, doc="See `GetIconFile`");
+ %property(IconIndex, GetIconIndex, doc="See `GetIconIndex`");
+ %property(MimeType, GetMimeType, doc="See `GetMimeType`");
+ %property(OpenCommand, GetOpenCommand, doc="See `GetOpenCommand`");
+ %property(PrintCommand, GetPrintCommand, doc="See `GetPrintCommand`");
+ %property(ShortDesc, GetShortDesc, SetShortDesc, doc="See `GetShortDesc` and `SetShortDesc`");
};
}
}
+ %property(AllCommands, GetAllCommands, doc="See `GetAllCommands`");
+ %property(Description, GetDescription, doc="See `GetDescription`");
+ %property(Extensions, GetExtensions, doc="See `GetExtensions`");
+ %property(Icon, GetIcon, doc="See `GetIcon`");
+ %property(IconInfo, GetIconInfo, doc="See `GetIconInfo`");
+ %property(MimeType, GetMimeType, doc="See `GetMimeType`");
+ %property(MimeTypes, GetMimeTypes, doc="See `GetMimeTypes`");
+ %property(OpenCommand, GetOpenCommand, doc="See `GetOpenCommand`");
+ %property(PrintCommand, GetPrintCommand, doc="See `GetPrintCommand`");
};
int GetCount() const;
%pythoncode { GetNoHistoryFiles = GetCount }
+ %property(Count, GetCount, doc="See `GetCount`");
+ %property(HistoryFile, GetHistoryFile, doc="See `GetHistoryFile`");
+ %property(MaxFiles, GetMaxFiles, doc="See `GetMaxFiles`");
+ %property(NoHistoryFiles, GetNoHistoryFiles, doc="See `GetNoHistoryFiles`");
};
// Returns the filtered value currently placed in the text control (if present).
wxString GetTextCtrlValue() const;
+ %property(Path, GetPath, SetPath, doc="See `GetPath` and `SetPath`");
+ %property(TextCtrlValue, GetTextCtrlValue, doc="See `GetTextCtrlValue`");
};
wxString GetPath() const { return m_path; }
void SetPath(const wxString &p) { m_path = p; }
+
+ %property(Path, GetPath, SetPath, doc="See `GetPath` and `SetPath`");
};
// set/get the max pointsize
void SetMaxPointSize(unsigned int max);
unsigned int GetMaxPointSize() const;
+
+ %property(MaxPointSize, GetMaxPointSize, SetMaxPointSize, doc="See `GetMaxPointSize` and `SetMaxPointSize`");
+ %property(SelectedFont, GetSelectedFont, SetSelectedFont, doc="See `GetSelectedFont` and `SetSelectedFont`");
};
wxFont GetFont() const;
void SetFont(const wxFont &c);
+
+ %property(Font, GetFont, SetFont, doc="See `GetFont` and `SetFont`");
};
//---------------------------------------------------------------------------
growable or not in the flexbile direction.
========================== =================================================
-Note that this method does not trigger relayout.
-
-", "");
+Note that this method does not trigger relayout.", "");
DocDeclStr(
wxFlexSizerGrowMode , GetNonFlexibleGrowMode(),
"Returns a list of integers representing the widths of each of the
columns in the sizer.", "");
+
+ %property(ColWidths, GetColWidths, doc="See `GetColWidths`");
+ %property(FlexibleDirection, GetFlexibleDirection, SetFlexibleDirection, doc="See `GetFlexibleDirection` and `SetFlexibleDirection`");
+ %property(NonFlexibleGrowMode, GetNonFlexibleGrowMode, SetNonFlexibleGrowMode, doc="See `GetNonFlexibleGrowMode` and `SetNonFlexibleGrowMode`");
+ %property(RowHeights, GetRowHeights, doc="See `GetRowHeights`");
+
};
//---------------------------------------------------------------------------
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %property(MenuBar, GetMenuBar, SetMenuBar, doc="See `GetMenuBar` and `SetMenuBar`");
+ %property(StatusBar, GetStatusBar, SetStatusBar, doc="See `GetStatusBar` and `SetStatusBar`");
+ %property(StatusBarPane, GetStatusBarPane, SetStatusBarPane, doc="See `GetStatusBarPane` and `SetStatusBarPane`");
+ %property(ToolBar, GetToolBar, SetToolBar, doc="See `GetToolBar` and `SetToolBar`");
};
//---------------------------------------------------------------------------