home *** CD-ROM | disk | FTP | other *** search
Wrap
# Source Generated with Decompyle++ # File: in.pyc (Python 2.4) import sys from qt import * class NoDevicesForm_base(QDialog): def __init__(self, parent = None, name = None, modal = 0, fl = 0): QDialog.__init__(self, parent, name, modal, fl) if not name: self.setName('NoDevicesForm_base') NoDevicesForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'NoDevicesForm_baseLayout') self.Icon = QLabel(self, 'Icon') self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth())) self.Icon.setFrameShape(QLabel.NoFrame) self.Icon.setScaledContents(1) NoDevicesForm_baseLayout.addWidget(self.Icon, 0, 0) self.textLabel7 = QLabel(self, 'textLabel7') self.textLabel7.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter) NoDevicesForm_baseLayout.addMultiCellWidget(self.textLabel7, 0, 0, 1, 3) self.ExitButton = QPushButton(self, 'ExitButton') NoDevicesForm_baseLayout.addWidget(self.ExitButton, 1, 3) self.CUPSButton = QPushButton(self, 'CUPSButton') NoDevicesForm_baseLayout.addWidget(self.CUPSButton, 1, 2) spacer43 = QSpacerItem(520, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) NoDevicesForm_baseLayout.addMultiCell(spacer43, 1, 1, 0, 1) self.languageChange() self.resize(QSize(809, 222).expandedTo(self.minimumSizeHint())) self.clearWState(Qt.WState_Polished) self.connect(self.CUPSButton, SIGNAL('clicked()'), self.CUPSButton_clicked) self.connect(self.ExitButton, SIGNAL('clicked()'), self.ExitButton_clicked) def languageChange(self): self.setCaption(self._NoDevicesForm_base__tr('HP Device Manager - No Installed HP Devices')) self.textLabel7.setText(self._NoDevicesForm_base__tr('<b>No installed HP devices found.</b> To install a device, use the <u>CUPS web interface</u> (http://localhost:631) or the <u>printer installation utility</u> that came with your operating system.\nAfter setting up a printer, you must press <tt>F6</tt> or chose <tt>Device | Refresh All</tt> for the printer to appear in the HP Device Manager.<p>\n<i>Note: Only devices installed with the hp: CUPS backend will appear in the HP Device Manager.</i><p>')) self.ExitButton.setText(self._NoDevicesForm_base__tr('OK')) self.CUPSButton.setText(self._NoDevicesForm_base__tr('CUPS Web Interface')) def CUPSButton_clicked(self): print 'NoDevicesForm_base.CUPSButton_clicked(): Not implemented yet' def ExitButton_clicked(self): print 'NoDevicesForm_base.ExitButton_clicked(): Not implemented yet' def __tr(self, s, c = None): return qApp.translate('NoDevicesForm_base', s, c) if __name__ == '__main__': a = QApplication(sys.argv) QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()')) w = NoDevicesForm_base() a.setMainWidget(w) w.show() a.exec_loop()