home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1267 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  2.6 KB  |  58 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_Dialog(object):
  7.     
  8.     def setupUi(self, Dialog):
  9.         Dialog.setObjectName('Dialog')
  10.         Dialog.resize(350, 209)
  11.         icon = QtGui.QIcon()
  12.         icon.addPixmap(QtGui.QPixmap(I('mimetypes/unknown.svg')), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  13.         Dialog.setWindowIcon(icon)
  14.         self.gridlayout = QtGui.QGridLayout(Dialog)
  15.         self.gridlayout.setObjectName('gridlayout')
  16.         self.msg = QtGui.QLabel(Dialog)
  17.         self.msg.setWordWrap(True)
  18.         self.msg.setOpenExternalLinks(True)
  19.         self.msg.setObjectName('msg')
  20.         self.gridlayout.addWidget(self.msg, 0, 1, 1, 1)
  21.         self.label = QtGui.QLabel(Dialog)
  22.         self.label.setObjectName('label')
  23.         self.gridlayout.addWidget(self.label, 1, 0, 1, 1)
  24.         self.gui_username = QtGui.QLineEdit(Dialog)
  25.         self.gui_username.setObjectName('gui_username')
  26.         self.gridlayout.addWidget(self.gui_username, 1, 1, 1, 1)
  27.         self.label_2 = QtGui.QLabel(Dialog)
  28.         self.label_2.setObjectName('label_2')
  29.         self.gridlayout.addWidget(self.label_2, 2, 0, 1, 1)
  30.         self.gui_password = QtGui.QLineEdit(Dialog)
  31.         self.gui_password.setEchoMode(QtGui.QLineEdit.Password)
  32.         self.gui_password.setObjectName('gui_password')
  33.         self.gridlayout.addWidget(self.gui_password, 2, 1, 1, 1)
  34.         self.buttonBox = QtGui.QDialogButtonBox(Dialog)
  35.         self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
  36.         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok)
  37.         self.buttonBox.setObjectName('buttonBox')
  38.         self.gridlayout.addWidget(self.buttonBox, 4, 1, 1, 1)
  39.         self.show_password = QtGui.QCheckBox(Dialog)
  40.         self.show_password.setObjectName('show_password')
  41.         self.gridlayout.addWidget(self.show_password, 3, 1, 1, 1)
  42.         self.label.setBuddy(self.gui_username)
  43.         self.label_2.setBuddy(self.gui_password)
  44.         self.retranslateUi(Dialog)
  45.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('accepted()'), Dialog.accept)
  46.         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL('rejected()'), Dialog.reject)
  47.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  48.  
  49.     
  50.     def retranslateUi(self, Dialog):
  51.         Dialog.setWindowTitle(_('Password needed'))
  52.         self.msg.setText(_('TextLabel'))
  53.         self.label.setText(_('&Username:'))
  54.         self.label_2.setText(_('&Password:'))
  55.         self.show_password.setText(_('&Show password'))
  56.  
  57.  
  58.