Share and Money Management  0.16
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gui.dialogs.DlgHtml Class Reference

Generic dialog to show HTML and some buttons to print and save. More...

Inheritance diagram for gui.dialogs.DlgHtml:

Public Member Functions

def __init__
 Initialise dialog.
def save2file
 Store page_content in a file.
def setHtml
 Set the html source and display it.
def OnClose
 Close only the modal dialog.
def OnPrintPreview
def OnPrint
def OnSave
 Save the content of the HTML widget.
- Public Member Functions inherited from gui.UIHtml.UIHtml
def __init__

Public Attributes

 page_content
 Store the page source.
 default_filename
 Default name for storing content in a file.
 printing
 Reference to the easy printing instance.
- Public Attributes inherited from gui.UIHtml.UIHtml
 hw_report
 bn_Print
 bn_PrintPreview
 bn_Close
 bn_Save

Static Public Attributes

tuple wildcard = _(u'HTML-Dokument (*.html)|*.html')
 Wildcards for selecting HTML files.

Detailed Description

Generic dialog to show HTML and some buttons to print and save.

Constructor & Destructor Documentation

def gui.dialogs.DlgHtml.__init__ (   self,
  parent 
)

Initialise dialog.

Parameters
selfThe object pointer
parentThe parent object

Member Function Documentation

def gui.dialogs.DlgHtml.OnClose (   self,
  event 
)

Close only the modal dialog.

Reimplemented from gui.UIHtml.UIHtml.

def gui.dialogs.DlgHtml.OnPrint (   self,
  event 
)

Reimplemented from gui.UIHtml.UIHtml.

References gui.dialogs.DlgHtml.page_content.

def gui.dialogs.DlgHtml.OnPrintPreview (   self,
  event 
)

Reimplemented from gui.UIHtml.UIHtml.

References gui.dialogs.DlgHtml.page_content.

def gui.dialogs.DlgHtml.OnSave (   self,
  event 
)

Save the content of the HTML widget.

Reimplemented from gui.UIHtml.UIHtml.

References gui.dialogs.DlgHtml.default_filename, gui.dialogs.DlgHtml.save2file(), and gui.dialogs.DlgHtml.wildcard.

Here is the call graph for this function:

def gui.dialogs.DlgHtml.save2file (   self,
  filename 
)

Store page_content in a file.

References gui.dialogs.DlgHtml.page_content.

Referenced by gui.dialogs.DlgHtml.OnSave().

Here is the caller graph for this function:

def gui.dialogs.DlgHtml.setHtml (   self,
  html 
)

Set the html source and display it.

Use this function to store a copy of the page source for later processing e.g. saving.

References gui.dialogs.DlgHtml.page_content.

Member Data Documentation

gui.dialogs.DlgHtml.default_filename

Default name for storing content in a file.

Referenced by gui.dialogs.DlgHtml.OnSave().

gui.dialogs.DlgHtml.page_content
gui.dialogs.DlgHtml.printing

Reference to the easy printing instance.

tuple gui.dialogs.DlgHtml.wildcard = _(u'HTML-Dokument (*.html)|*.html')
static

The documentation for this class was generated from the following file: