home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / nodevicesform_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  3.4 KB  |  63 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class NoDevicesForm_base(QDialog):
  8.     
  9.     def __init__(self, parent = None, name = None, modal = 0, fl = 0):
  10.         QDialog.__init__(self, parent, name, modal, fl)
  11.         if not name:
  12.             self.setName('NoDevicesForm_base')
  13.         
  14.         NoDevicesForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'NoDevicesForm_baseLayout')
  15.         self.Icon = QLabel(self, 'Icon')
  16.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed, 0, 0, self.Icon.sizePolicy().hasHeightForWidth()))
  17.         self.Icon.setFrameShape(QLabel.NoFrame)
  18.         self.Icon.setScaledContents(1)
  19.         NoDevicesForm_baseLayout.addWidget(self.Icon, 0, 0)
  20.         self.textLabel7 = QLabel(self, 'textLabel7')
  21.         self.textLabel7.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  22.         NoDevicesForm_baseLayout.addMultiCellWidget(self.textLabel7, 0, 0, 1, 3)
  23.         self.ExitButton = QPushButton(self, 'ExitButton')
  24.         NoDevicesForm_baseLayout.addWidget(self.ExitButton, 1, 3)
  25.         self.CUPSButton = QPushButton(self, 'CUPSButton')
  26.         NoDevicesForm_baseLayout.addWidget(self.CUPSButton, 1, 2)
  27.         spacer43 = QSpacerItem(520, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  28.         NoDevicesForm_baseLayout.addMultiCell(spacer43, 1, 1, 0, 1)
  29.         self.languageChange()
  30.         self.resize(QSize(809, 222).expandedTo(self.minimumSizeHint()))
  31.         self.clearWState(Qt.WState_Polished)
  32.         self.connect(self.CUPSButton, SIGNAL('clicked()'), self.CUPSButton_clicked)
  33.         self.connect(self.ExitButton, SIGNAL('clicked()'), self.ExitButton_clicked)
  34.  
  35.     
  36.     def languageChange(self):
  37.         self.setCaption(self._NoDevicesForm_base__tr('HP Device Manager - No Installed HP Devices'))
  38.         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>'))
  39.         self.ExitButton.setText(self._NoDevicesForm_base__tr('OK'))
  40.         self.CUPSButton.setText(self._NoDevicesForm_base__tr('CUPS Web Interface'))
  41.  
  42.     
  43.     def CUPSButton_clicked(self):
  44.         print 'NoDevicesForm_base.CUPSButton_clicked(): Not implemented yet'
  45.  
  46.     
  47.     def ExitButton_clicked(self):
  48.         print 'NoDevicesForm_base.ExitButton_clicked(): Not implemented yet'
  49.  
  50.     
  51.     def __tr(self, s, c = None):
  52.         return qApp.translate('NoDevicesForm_base', s, c)
  53.  
  54.  
  55. if __name__ == '__main__':
  56.     a = QApplication(sys.argv)
  57.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  58.     w = NoDevicesForm_base()
  59.     a.setMainWidget(w)
  60.     w.show()
  61.     a.exec_loop()
  62.  
  63.