Fun with PWM  0.32
TkHtml.TkHtml Class Reference

UI generator for help files. More...

Inheritance diagram for TkHtml.TkHtml:

Public Member Functions

def __init__ (self, gui, base='help')
 
def buildIndex (self)
 
def getHtml (self, parent, name)
 
def viewWrapper (self, parent)
 
def headingView (self, parent, text, type=1)
 
def paragraphView (self, parent, text)
 
def imageView (self, parent, filepath)
 
def view404 (self, parent)
 

Public Attributes

 colours
 
 fonts
 
 images
 
 base
 
 index
 

Detailed Description

UI generator for help files.

Constructor & Destructor Documentation

§ __init__()

def TkHtml.TkHtml.__init__ (   self,
  gui,
  base = 'help' 
)
for parsing html

@param gui
@param base

Member Function Documentation

§ buildIndex()

def TkHtml.TkHtml.buildIndex (   self)
gets a list of available HTML files

§ getHtml()

def TkHtml.TkHtml.getHtml (   self,
  parent,
  name 
)
returns a Tkinter frame containing the parsed HTML

@param parent
@param name

§ headingView()

def TkHtml.TkHtml.headingView (   self,
  parent,
  text,
  type = 1 
)
partial view - heading label

@param parent
@param text
@param type

§ imageView()

def TkHtml.TkHtml.imageView (   self,
  parent,
  filepath 
)
partial view - image label

@param parent
@param filepath

§ paragraphView()

def TkHtml.TkHtml.paragraphView (   self,
  parent,
  text 
)
partial view - paragraph label

@param parent
@param text

§ view404()

def TkHtml.TkHtml.view404 (   self,
  parent 
)
view - default for missing html

@param parent

§ viewWrapper()

def TkHtml.TkHtml.viewWrapper (   self,
  parent 
)
partial view - just a frame

@param parent

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