📄 html.py
字号:
"""LoadFile(self, String filename) -> bool"""
return _html.HtmlWindow_LoadFile(*args, **kwargs)
def AppendToPage(*args, **kwargs):
"""AppendToPage(self, String source) -> bool"""
return _html.HtmlWindow_AppendToPage(*args, **kwargs)
def GetOpenedPage(*args, **kwargs):
"""GetOpenedPage(self) -> String"""
return _html.HtmlWindow_GetOpenedPage(*args, **kwargs)
def GetOpenedAnchor(*args, **kwargs):
"""GetOpenedAnchor(self) -> String"""
return _html.HtmlWindow_GetOpenedAnchor(*args, **kwargs)
def GetOpenedPageTitle(*args, **kwargs):
"""GetOpenedPageTitle(self) -> String"""
return _html.HtmlWindow_GetOpenedPageTitle(*args, **kwargs)
def SetRelatedFrame(*args, **kwargs):
"""SetRelatedFrame(self, Frame frame, String format)"""
return _html.HtmlWindow_SetRelatedFrame(*args, **kwargs)
def GetRelatedFrame(*args, **kwargs):
"""GetRelatedFrame(self) -> Frame"""
return _html.HtmlWindow_GetRelatedFrame(*args, **kwargs)
def SetRelatedStatusBar(*args, **kwargs):
"""SetRelatedStatusBar(self, int bar)"""
return _html.HtmlWindow_SetRelatedStatusBar(*args, **kwargs)
def SetFonts(*args, **kwargs):
"""SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
return _html.HtmlWindow_SetFonts(*args, **kwargs)
def SetStandardFonts(*args, **kwargs):
"""SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
return _html.HtmlWindow_SetStandardFonts(*args, **kwargs)
def SetBorders(*args, **kwargs):
"""SetBorders(self, int b)"""
return _html.HtmlWindow_SetBorders(*args, **kwargs)
def SetBackgroundImage(*args, **kwargs):
"""SetBackgroundImage(self, Bitmap bmpBg)"""
return _html.HtmlWindow_SetBackgroundImage(*args, **kwargs)
def ReadCustomization(*args, **kwargs):
"""ReadCustomization(self, ConfigBase cfg, String path=EmptyString)"""
return _html.HtmlWindow_ReadCustomization(*args, **kwargs)
def WriteCustomization(*args, **kwargs):
"""WriteCustomization(self, ConfigBase cfg, String path=EmptyString)"""
return _html.HtmlWindow_WriteCustomization(*args, **kwargs)
def HistoryBack(*args, **kwargs):
"""HistoryBack(self) -> bool"""
return _html.HtmlWindow_HistoryBack(*args, **kwargs)
def HistoryForward(*args, **kwargs):
"""HistoryForward(self) -> bool"""
return _html.HtmlWindow_HistoryForward(*args, **kwargs)
def HistoryCanBack(*args, **kwargs):
"""HistoryCanBack(self) -> bool"""
return _html.HtmlWindow_HistoryCanBack(*args, **kwargs)
def HistoryCanForward(*args, **kwargs):
"""HistoryCanForward(self) -> bool"""
return _html.HtmlWindow_HistoryCanForward(*args, **kwargs)
def HistoryClear(*args, **kwargs):
"""HistoryClear(self)"""
return _html.HtmlWindow_HistoryClear(*args, **kwargs)
def GetInternalRepresentation(*args, **kwargs):
"""GetInternalRepresentation(self) -> HtmlContainerCell"""
return _html.HtmlWindow_GetInternalRepresentation(*args, **kwargs)
def GetParser(*args, **kwargs):
"""GetParser(self) -> HtmlWinParser"""
return _html.HtmlWindow_GetParser(*args, **kwargs)
def ScrollToAnchor(*args, **kwargs):
"""ScrollToAnchor(self, String anchor) -> bool"""
return _html.HtmlWindow_ScrollToAnchor(*args, **kwargs)
def HasAnchor(*args, **kwargs):
"""HasAnchor(self, String anchor) -> bool"""
return _html.HtmlWindow_HasAnchor(*args, **kwargs)
def AddFilter(*args, **kwargs):
"""AddFilter(HtmlFilter filter)"""
return _html.HtmlWindow_AddFilter(*args, **kwargs)
AddFilter = staticmethod(AddFilter)
def SelectWord(*args, **kwargs):
"""SelectWord(self, Point pos)"""
return _html.HtmlWindow_SelectWord(*args, **kwargs)
def SelectLine(*args, **kwargs):
"""SelectLine(self, Point pos)"""
return _html.HtmlWindow_SelectLine(*args, **kwargs)
def SelectAll(*args, **kwargs):
"""SelectAll(self)"""
return _html.HtmlWindow_SelectAll(*args, **kwargs)
def SelectionToText(*args, **kwargs):
"""SelectionToText(self) -> String"""
return _html.HtmlWindow_SelectionToText(*args, **kwargs)
def ToText(*args, **kwargs):
"""ToText(self) -> String"""
return _html.HtmlWindow_ToText(*args, **kwargs)
def OnLinkClicked(*args, **kwargs):
"""OnLinkClicked(self, HtmlLinkInfo link)"""
return _html.HtmlWindow_OnLinkClicked(*args, **kwargs)
def OnSetTitle(*args, **kwargs):
"""OnSetTitle(self, String title)"""
return _html.HtmlWindow_OnSetTitle(*args, **kwargs)
def OnCellMouseHover(*args, **kwargs):
"""OnCellMouseHover(self, HtmlCell cell, int x, int y)"""
return _html.HtmlWindow_OnCellMouseHover(*args, **kwargs)
def OnCellClicked(*args, **kwargs):
"""OnCellClicked(self, HtmlCell cell, int x, int y, MouseEvent event) -> bool"""
return _html.HtmlWindow_OnCellClicked(*args, **kwargs)
def OnOpeningURL(*args, **kwargs):
"""OnOpeningURL(self, int type, String url, String redirect) -> int"""
return _html.HtmlWindow_OnOpeningURL(*args, **kwargs)
def base_OnLinkClicked(*args, **kw):
return HtmlWindow.OnLinkClicked(*args, **kw)
base_OnLinkClicked = wx._deprecated(base_OnLinkClicked,
"Please use HtmlWindow.OnLinkClicked instead.")
def base_OnSetTitle(*args, **kw):
return HtmlWindow.OnSetTitle(*args, **kw)
base_OnSetTitle = wx._deprecated(base_OnSetTitle,
"Please use HtmlWindow.OnSetTitle instead.")
def base_OnCellMouseHover(*args, **kw):
return HtmlWindow.OnCellMouseHover(*args, **kw)
base_OnCellMouseHover = wx._deprecated(base_OnCellMouseHover,
"Please use HtmlWindow.OnCellMouseHover instead.")
def base_OnCellClicked(*args, **kw):
return HtmlWindow.OnCellClicked(*args, **kw)
base_OnCellClicked = wx._deprecated(base_OnCellClicked,
"Please use HtmlWindow.OnCellClicked instead.")
def GetClassDefaultAttributes(*args, **kwargs):
"""
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
control -- which is a much better idea than hard coding specific
colours or fonts which might look completely out of place on the
user's system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
HTMLCursor_Default = _html.HtmlWindow_HTMLCursor_Default
HTMLCursor_Link = _html.HtmlWindow_HTMLCursor_Link
HTMLCursor_Text = _html.HtmlWindow_HTMLCursor_Text
def GetDefaultHTMLCursor(*args, **kwargs):
"""GetDefaultHTMLCursor(int type) -> Cursor"""
return _html.HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs)
GetDefaultHTMLCursor = staticmethod(GetDefaultHTMLCursor)
_html.HtmlWindow_swigregister(HtmlWindow)
def PreHtmlWindow(*args, **kwargs):
"""PreHtmlWindow() -> HtmlWindow"""
val = _html.new_PreHtmlWindow(*args, **kwargs)
return val
def HtmlWindow_AddFilter(*args, **kwargs):
"""HtmlWindow_AddFilter(HtmlFilter filter)"""
return _html.HtmlWindow_AddFilter(*args, **kwargs)
def HtmlWindow_GetClassDefaultAttributes(*args, **kwargs):
"""
HtmlWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
Get the default attributes for this class. This is useful if you want
to use the same font or colour in your own control as in a standard
control -- which is a much better idea than hard coding specific
colours or fonts which might look completely out of place on the
user's system, especially if it uses themes.
The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of
the returned font. See `wx.Window.SetWindowVariant` for more about
this.
"""
return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs)
def HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs):
"""HtmlWindow_GetDefaultHTMLCursor(int type) -> Cursor"""
return _html.HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs)
#---------------------------------------------------------------------------
class HtmlDCRenderer(_core.Object):
"""Proxy of C++ HtmlDCRenderer class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self) -> HtmlDCRenderer"""
_html.HtmlDCRenderer_swiginit(self,_html.new_HtmlDCRenderer(*args, **kwargs))
__swig_destroy__ = _html.delete_HtmlDCRenderer
__del__ = lambda self : None;
def SetDC(*args, **kwargs):
"""SetDC(self, DC dc, int maxwidth)"""
return _html.HtmlDCRenderer_SetDC(*args, **kwargs)
def SetSize(*args, **kwargs):
"""SetSize(self, int width, int height)"""
return _html.HtmlDCRenderer_SetSize(*args, **kwargs)
def SetHtmlText(*args, **kwargs):
"""SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)"""
return _html.HtmlDCRenderer_SetHtmlText(*args, **kwargs)
def SetFonts(*args, **kwargs):
"""SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
return _html.HtmlDCRenderer_SetFonts(*args, **kwargs)
def SetStandardFonts(*args, **kwargs):
"""SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
return _html.HtmlDCRenderer_SetStandardFonts(*args, **kwargs)
def Render(*args, **kwargs):
"""
Render(self, int x, int y, wxArrayInt known_pagebreaks, int from=0,
int dont_render=False, int to=INT_MAX) -> int
"""
return _html.HtmlDCRenderer_Render(*args, **kwargs)
def GetTotalHeight(*args, **kwargs):
"""GetTotalHeight(self) -> int"""
return _html.HtmlDCRenderer_GetTotalHeight(*args, **kwargs)
_html.HtmlDCRenderer_swigregister(HtmlDCRenderer)
PAGE_ODD = _html.PAGE_ODD
PAGE_EVEN = _html.PAGE_EVEN
PAGE_ALL = _html.PAGE_ALL
class HtmlPrintout(_windows.Printout):
"""Proxy of C++ HtmlPrintout class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""__init__(self, String title=HtmlPrintoutTitleStr) -> HtmlPrintout"""
_html.HtmlPrintout_swiginit(self,_html.new_HtmlPrintout(*args, **kwargs))
def SetHtmlText(*args, **kwargs):
"""SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)"""
return _html.HtmlPrintout_SetHtmlText(*args, **kwargs)
def SetHtmlFile(*args, **kwargs):
"""SetHtmlFile(self, String htmlfile)"""
return _html.HtmlPrintout_SetHtmlFile(*args, **kwargs)
def SetHeader(*args, **kwargs):
"""SetHeader(self, String header, int pg=PAGE_ALL)"""
return _html.HtmlPrintout_SetHeader(*args, **kwargs)
def SetFooter(*args, **kwargs):
"""SetFooter(self, String footer, int pg=PAGE_ALL)"""
return _html.HtmlPrintout_SetFooter(*args, **kwargs)
def SetFonts(*args, **kwargs):
"""SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
return _html.HtmlPrintout_SetFonts(*args, **kwargs)
def SetStandardFonts(*args, **kwargs):
"""SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
return _html.HtmlPrintout_SetStandardFonts(*args, **kwargs)
def SetMargins(*args, **kwargs):
"""
SetMargins(self, float top=25.2, float bottom=25.2, float left=25.2,
float right=25.2, float spaces=5)
"""
return _html.HtmlPrintout_SetMargins(*args, **kwargs)
def AddFilter(*args, **kwargs):
"""AddFilter(wxHtmlFilter filter)"""
return _html.HtmlPrintout_AddFilter(*args, **kwargs)
AddFilter = staticmethod(AddFilter)
def CleanUpStatics(*args, **kwargs):
"""CleanUpStatics()"""
return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs)
CleanUpStatics = staticmethod(CleanUpStatics)
_html.HtmlPrintout_swigregister(HtmlPrintout)
def HtmlPrintout_AddFilter(*args, **kwargs):
"""HtmlPrintout_AddFilter(wxHtmlFilter filter)"""
return _html.HtmlPrintout_AddFilter(*args, **kwargs)
def HtmlPrintout_CleanUpStatics(*args):
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -