Package Subtitles :: Module Sub :: Class Sub
[hide private]
[frames] | no frames]

Class Sub

source code

The Sub class, is the class that handles each subtitle individually

Instance Methods [hide private]
 
__init__(self, text)
Init all the variables
source code
 
isInTime(self, time)
Is it time to display a subtitle?
source code
 
_processText(self, text)
We should parse the full text of a subtitle and divide it line by line.
source code
 
getSubText(self)
Retrieve the full subtitle text.
source code
 
setSubText(self, text)
Set the subtitle text and this method will rearrange the structure of lines as well as all other attributes.
source code
Method Details [hide private]

_processText(self, text)

source code 

We should parse the full text of a subtitle and divide it line by line. Another getSub method exists to retrieve the full text

getSubText(self)

source code 

Retrieve the full subtitle text. The data model is yet to be defined.