X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..3de0866e8ce40962137723caaf9206269534b9a7:/wxPython/src/msw/htmlhelp.py?ds=inline diff --git a/wxPython/src/msw/htmlhelp.py b/wxPython/src/msw/htmlhelp.py index b7c5e95d9c..fd3a642bac 100644 --- a/wxPython/src/msw/htmlhelp.py +++ b/wxPython/src/msw/htmlhelp.py @@ -9,12 +9,16 @@ from windows import * from gdi import * +from fonts import * + from clip_dnd import * from events import * from streams import * +from utils import * + from mdi import * from frames import * @@ -38,12 +42,13 @@ from printfw import * from sizers import * from filesys import * - -from utils import * class wxHtmlBookRecordPtr : def __init__(self,this): self.this = this self.thisown = 0 + def GetBookFile(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlBookRecord_GetBookFile,(self,) + _args, _kwargs) + return val def GetTitle(self, *_args, **_kwargs): val = apply(htmlhelpc.wxHtmlBookRecord_GetTitle,(self,) + _args, _kwargs) return val @@ -62,6 +67,18 @@ class wxHtmlBookRecordPtr : def GetContentsEnd(self, *_args, **_kwargs): val = apply(htmlhelpc.wxHtmlBookRecord_GetContentsEnd,(self,) + _args, _kwargs) return val + def SetTitle(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlBookRecord_SetTitle,(self,) + _args, _kwargs) + return val + def SetBasePath(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlBookRecord_SetBasePath,(self,) + _args, _kwargs) + return val + def SetStart(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlBookRecord_SetStart,(self,) + _args, _kwargs) + return val + def GetFullPath(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlBookRecord_GetFullPath,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxHtmlBookRecord(wxHtmlBookRecordPtr): @@ -76,35 +93,22 @@ class wxHtmlContentsItemPtr : def __init__(self,this): self.this = this self.thisown = 0 - def __setattr__(self,name,value): - if name == "m_Level" : - htmlhelpc.wxHtmlContentsItem_m_Level_set(self,value) - return - if name == "m_ID" : - htmlhelpc.wxHtmlContentsItem_m_ID_set(self,value) - return - if name == "m_Name" : - htmlhelpc.wxHtmlContentsItem_m_Name_set(self,value) - return - if name == "m_Page" : - htmlhelpc.wxHtmlContentsItem_m_Page_set(self,value) - return - if name == "m_Book" : - htmlhelpc.wxHtmlContentsItem_m_Book_set(self,value.this) - return - self.__dict__[name] = value - def __getattr__(self,name): - if name == "m_Level" : - return htmlhelpc.wxHtmlContentsItem_m_Level_get(self) - if name == "m_ID" : - return htmlhelpc.wxHtmlContentsItem_m_ID_get(self) - if name == "m_Name" : - return htmlhelpc.wxHtmlContentsItem_m_Name_get(self) - if name == "m_Page" : - return htmlhelpc.wxHtmlContentsItem_m_Page_get(self) - if name == "m_Book" : - return wxHtmlBookRecordPtr(htmlhelpc.wxHtmlContentsItem_m_Book_get(self)) - raise AttributeError,name + def GetLevel(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlContentsItem_GetLevel,(self,) + _args, _kwargs) + return val + def GetID(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlContentsItem_GetID,(self,) + _args, _kwargs) + return val + def GetName(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlContentsItem_GetName,(self,) + _args, _kwargs) + return val + def GetPage(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlContentsItem_GetPage,(self,) + _args, _kwargs) + return val + def GetBook(self, *_args, **_kwargs): + val = apply(htmlhelpc.wxHtmlContentsItem_GetBook,(self,) + _args, _kwargs) + if val: val = wxHtmlBookRecordPtr(val) + return val def __repr__(self): return "" % (self.this,) class wxHtmlContentsItem(wxHtmlContentsItemPtr):