home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1285 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  2.9 KB  |  65 lines

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