Table of Contents

Eric3 Source Documentation: VCS.subversionPackage  
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/VCS/subversionPackage/AuthForm.ui'
#
# Created: Mit Mär 19 20:20:36 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class svnAuthForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("svnAuthForm")


        svnAuthFormLayout = QVBoxLayout(self,6,6,"svnAuthFormLayout")

        Layout6 = QGridLayout(None,1,1,0,6,"Layout6")

        self.usernameEdit = QLineEdit(self,"usernameEdit")

        Layout6.addWidget(self.usernameEdit,1,1)

        self.TextLabel1 = QLabel(self,"TextLabel1")

        Layout6.addWidget(self.TextLabel1,1,0)

        self.TextLabel2 = QLabel(self,"TextLabel2")

        Layout6.addWidget(self.TextLabel2,2,0)

        self.passwordEdit = QLineEdit(self,"passwordEdit")
        self.passwordEdit.setEchoMode(QLineEdit.Password)

        Layout6.addWidget(self.passwordEdit,2,1)
        svnAuthFormLayout.addLayout(Layout6)

        Layout3 = QHBoxLayout(None,0,6,"Layout3")
        spacer = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(spacer)

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        Layout3.addWidget(self.okButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout3.addWidget(self.cancelButton)
        spacer_2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(spacer_2)
        svnAuthFormLayout.addLayout(Layout3)

        self.languageChange()

        self.resize(QSize(384,94).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.okButton,SIGNAL("clicked()"),self,SLOT("accept()"))
        self.connect(self.cancelButton,SIGNAL("clicked()"),self,SLOT("reject()"))

        self.setTabOrder(self.usernameEdit,self.passwordEdit)
        self.setTabOrder(self.passwordEdit,self.okButton)
        self.setTabOrder(self.okButton,self.cancelButton)

        self.TextLabel1.setBuddy(self.usernameEdit)
        self.TextLabel2.setBuddy(self.passwordEdit)


    def languageChange(self):
        self.setCaption(self.tr("Subversion Authentication"))
        QToolTip.add(self.usernameEdit,self.tr("Enter your username"))
        QWhatsThis.add(self.usernameEdit,self.tr("<b>Username</b>\n"
"<p>Enter your user name.</p>"))
        self.TextLabel1.setText(self.tr("&Username:"))
        self.TextLabel2.setText(self.tr("&Password:"))
        QToolTip.add(self.passwordEdit,self.tr("Enter the password"))
        QWhatsThis.add(self.passwordEdit,self.tr("<b>Password</b>\n"
"<p>Enter the your password.</p>"))
        self.okButton.setText(self.tr("&OK"))
        self.cancelButton.setText(self.tr("&Cancel"))


if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = svnAuthForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()

Table of Contents

This document was automatically generated by HappyDoc version 2.1