Пример #1
0
    def __init__(self, parent, parenttab, section):
        if(section.upper() == lng.txtBlog.upper()):
            desc = lang[lng.txtBlog]
        elif(section.upper() == lng.txtNew.upper()):
            desc = lang[lng.txtNew]
        else:
            desc = section
        
        ei.EditInput.__init__(self, parent, parenttab, desc)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtHistorySize], section, 'historylength')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 0, column = 0, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtInterval], section, 'interval')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 0, column = 1, padx = _padx, pady = _pady, sticky = tki.NSEW)

        textinput = ei.EditInputText(self, parenttab, lang[lng.txtHarvUrl], section, 'url')
        self._subinputs.append(textinput)
        textinput.grid(row = 1, column = 0, columnspan = 2, padx = 5, pady = 5, sticky = tki.W)

        textinput = ei.EditInputText(self, parenttab, lang[lng.txtCacheFolder], section, 'cachedir')
        self._subinputs.append(textinput)
        textinput.grid(row = 2, column = 0, columnspan = 2, padx = 5, pady = 5, sticky = tki.W)
Пример #2
0
    def __init__(self, parent, parenttab):
        ei.EditInput.__init__(self, parent, parenttab, lang[lng.txtBottomArea])
        self.columnconfigure(0, weight = 1)
        
        colorinput =  ei.EditInputColor(self, parenttab, lang[lng.txtBgColor], 'BottomArea', 'bottomareabgcolor')
        self._subinputs.append(colorinput)
        colorinput.grid(row = 0, column = 0, rowspan = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtWidthMargin], 'BottomArea', 'bottomareamarginx')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 0, column = 1, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtBottomAreaSpace], 'BottomArea', 'yspace')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 1, column = 1, padx = _padx, pady = _pady, sticky = tki.NSEW)
Пример #3
0
    def __init__(self, parent, parenttab):
        ei.EditInput.__init__(self, parent, parenttab, lang[lng.txtHorizPanel])

        fontinput =  ei.EditInputFont(self, parenttab, lang[lng.txtFont], 'HorizontalPanel', 'font')
        self._subinputs.append(fontinput)
        fontinput.grid(row = 0, column = 0, rowspan = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)
        
        vectorinput =  ei.EditInputVector(self, parenttab, lang[lng.txtMargin], 'HorizontalPanel', 'margin')
        self._subinputs.append(vectorinput)
        vectorinput.grid(row = 0, column = 1, rowspan = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtPanelSpace], 'HorizontalPanel', 'panelspace')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 0, column = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtPanelHeight], 'HorizontalPanel', 'panelheight')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 1, column = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)
Пример #4
0
    def __init__(self, parent, parenttab):
        ei.EditInput.__init__(self, parent, parenttab, lang[lng.txtDimensions])

        vectorinput =  ei.EditInputVector(self, parenttab, lang[lng.txtMainAreaMargin], 'Dimensions', 'mainareamargin')
        self._subinputs.append(vectorinput)
        vectorinput.grid(row = 0, column = 0, padx = _padx, pady = _pady, sticky = tki.NSEW)

        vectorinput =  ei.EditInputVector(self, parenttab, lang[lng.txtImageSize], 'Dimensions', 'preview')
        self._subinputs.append(vectorinput)
        vectorinput.grid(row = 1, column = 0, padx = _padx, pady = _pady, sticky = tki.NSEW)

        vectorinput =  ei.EditInputVector(self, parenttab, lang[lng.txtThumbnailSize], 'Dimensions', 'smallpreview')
        self._subinputs.append(vectorinput)
        vectorinput.grid(row = 0, column = 1, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtCornerRadius], 'Dimensions', 'mainareacornerradius')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 1, column = 1, padx = _padx, pady = _pady, sticky = tki.NSEW)
Пример #5
0
    def __init__(self, parent, parenttab):
        ei.EditInput.__init__(self, parent, parenttab, lang[lng.txtTopLeftText])
        self.columnconfigure(2, weight = 1)

        fontinput =  ei.EditInputFont(self, parenttab, lang[lng.txtFont], 'TopLeftText', 'font')
        self._subinputs.append(fontinput)
        fontinput.grid(row = 0, column = 0, rowspan = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)
        
        vectorinput =  ei.EditInputVector(self, parenttab, lang[lng.txtInsPoint], 'TopLeftText', '', 'Left', 'Top')
        self._subinputs.append(vectorinput)
        vectorinput.grid(row = 0, column = 1, rowspan = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        scalarinput =  ei.EditInputScalar(self, parenttab, lang[lng.txtLineLength], 'TopLeftText', 'linewidth')
        self._subinputs.append(scalarinput)
        scalarinput.grid(row = 0, column = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        colorinput =  ei.EditInputColor(self, parenttab, lang[lng.txtTextColor], 'TopLeftText', 'textcolor')
        self._subinputs.append(colorinput)
        colorinput.grid(row = 1, column = 2, padx = _padx, pady = _pady, sticky = tki.NSEW)

        textinput = ei.EditInputText(self, parenttab, lang[lng.txtText], 'TopLeftText', 'text')
        self._subinputs.append(textinput)
        textinput.grid(row = 2, column = 0, columnspan = 3, padx = 5, pady = 5, sticky = tki.W)