1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file 'firmwaredialog_base.ui' 4# 5# Created: Tue Feb 1 21:48:57 2011 6# by: The PyQt User Interface Compiler (pyuic) 3.17.4 7# 8# WARNING! All changes made in this file will be lost! 9# 10# Author: Sarbeswar Meher 11# 12 13from qt import * 14 15from .deviceuricombobox import DeviceUriComboBox 16 17 18class FirmwareDialog_Base(object): 19 def setupUi(self,Dialog): 20 Dialog.setModal(True) 21 Dialog.setName("FirmwareDialog_Base") 22 23 self.Download_Firmwar = QLabel(Dialog,"Download_Firmware") 24 self.Download_Firmwar.setGeometry(QRect(9,9,454,25)) 25 Download_Firmwar_font = QFont(self.Download_Firmwar.font()) 26 Download_Firmwar_font.setPointSize(16) 27 self.Download_Firmwar.setFont(Download_Firmwar_font) 28 29 self.line = QFrame(Dialog,"line") 30 self.line.setGeometry(QRect(9,40,682,3)) 31 self.line.setFrameShape(QFrame.HLine) 32 self.line.setFrameShadow(QFrame.Sunken) 33 self.line.setFrameShape(QFrame.HLine) 34 35 self.DownloadFirmwareButton = QPushButton(Dialog,"DownloadFirmwareButton") 36 self.DownloadFirmwareButton.setGeometry(QRect(460,320,131,27)) 37 38 self.CancelButton = QPushButton(Dialog,"CancelButton") 39 self.CancelButton.setGeometry(QRect(600,320,85,27)) 40 41 self.frame4 = QFrame(Dialog,"frame4") 42 self.frame4.setGeometry(QRect(9,86,682,37)) 43 self.frame4.setFrameShape(QFrame.StyledPanel) 44 self.frame4.setFrameShadow(QFrame.Raised) 45 46 self.textLabel2 = QLabel(self.frame4,"textLabel2") 47 self.textLabel2.setGeometry(QRect(10,8,662,17)) 48 49 50 self.DeviceComboBox = DeviceUriComboBox(Dialog) 51 self.DeviceComboBox.setGeometry(QRect(9,49,682,26)) 52 53 self.languageChange(Dialog) 54 55 self.resize(QSize(709,361).expandedTo(self.minimumSizeHint())) 56 57 def languageChange(self, Dialog): 58 self.setCaption(self.__tr("HP Device Manager - Download Firmware ")) 59 self.Download_Firmwar.setText(self.__tr("Download Firmware")) 60 self.DownloadFirmwareButton.setText(self.__tr("Download Firmware")) 61 self.CancelButton.setText(self.__tr("Cancel")) 62 self.textLabel2.setText(self.__tr("Click <i>Download Firmware</i> to begin download process.")) 63 64 65 def __tr(self,s,c = None): 66 return qApp.translate("FirmwareDialog_Base",s,c) 67