Esempio n. 1
0
def createPage():
    """ Create and return a configuration page object """
    s = ConfigSubsection()
    s.uri = ConfigText(default="http://", fixed_size=False)
    s.title = ConfigText(default="Page #" +
                         str(len(config.plugins.CurlyTx.pages) + 1),
                         fixed_size=False)
    s.fontSize = ConfigInteger(20, (1, 100))
    return s
Esempio n. 2
0
def createPage():
    """ Create and return a configuration page object """
    s = ConfigSubsection()
    s.uri   = ConfigText(default="http://", fixed_size=False)
    s.title = ConfigText(
        default = "Page #" + str(len(config.plugins.CurlyTx.pages) + 1),
        fixed_size = False
        )
    s.fontSize = ConfigInteger(20, (1, 100))
    return s