Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def customDialogs::AutoTextScrollerDialog::__init__ (   self,
  aBg,
  title,
  prefs,
  text 
)

Initialize the defaults for the input boxes.

Definition at line 109 of file customDialogs.py.

00109                                                 :
        """Initialize the defaults for the input boxes."""

        self.reading = 0
        self.location = 0
        self.text = text

        self.delay = ("textScrollerDelay" in prefs) and prefs["textScrollerDelay"] or 0.3
        self.words = ("textScrollerWords" in prefs) and prefs["textScrollerWords"] or 1

        self.font  = ("textScrollerFont" in prefs) and prefs["textScrollerFont"] or \
                     "{'style': 'bold', 'faceName': 'helvetica', 'family': 'sansSerif', 'size': 24}"
        
        # build the resource which describes this particular preferences window
        aDialogRsrc = self.buildSpeedReaderResource(title, prefs)
        CustomDialog.__init__(self, aBg, aDialogRsrc)
        self.parent = aBg
        
    def on_btnStart_mouseClick(self, event):


Generated by  Doxygen 1.6.0   Back to index