~mimose/+junk/hplip-3.16.11

« back to all changes in this revision

Viewing changes to ui/waitform_base.py

  • Committer: guoyalong
  • Date: 2017-09-20 10:13:05 UTC
  • Revision ID: guoyalong@kylinos.cn-20170920101305-82zaolzpv1qghz29
Modified debian/control & debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Form implementation generated from reading ui file 'waitform_base.ui'
 
4
#
 
5
# Created: Wed Oct 26 13:21:40 2005
 
6
#      by: The PyQt User Interface Compiler (pyuic) 3.14.1
 
7
#
 
8
# WARNING! All changes made in this file will be lost!
 
9
 
 
10
 
 
11
from qt import *
 
12
 
 
13
 
 
14
class WaitForm_base(QDialog):
 
15
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
 
16
        QDialog.__init__(self,parent,name,modal,fl)
 
17
 
 
18
        if not name:
 
19
            self.setName("WaitForm_base")
 
20
 
 
21
 
 
22
        WaitForm_baseLayout = QGridLayout(self,1,1,11,6,"WaitForm_baseLayout")
 
23
 
 
24
        layout2 = QVBoxLayout(None,0,6,"layout2")
 
25
 
 
26
        self.textLabel3 = QLabel(self,"textLabel3")
 
27
        layout2.addWidget(self.textLabel3)
 
28
 
 
29
        self.ProgressBar = QProgressBar(self,"ProgressBar")
 
30
        layout2.addWidget(self.ProgressBar)
 
31
 
 
32
        WaitForm_baseLayout.addMultiCellLayout(layout2,0,0,0,2)
 
33
        spacer10 = QSpacerItem(20,30,QSizePolicy.Minimum,QSizePolicy.Expanding)
 
34
        WaitForm_baseLayout.addItem(spacer10,1,1)
 
35
 
 
36
        self.cancelPushButton = QPushButton(self,"cancelPushButton")
 
37
        self.cancelPushButton.setEnabled(0)
 
38
 
 
39
        WaitForm_baseLayout.addWidget(self.cancelPushButton,2,1)
 
40
        spacer2 = QSpacerItem(121,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
 
41
        WaitForm_baseLayout.addItem(spacer2,2,2)
 
42
        spacer3 = QSpacerItem(131,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
 
43
        WaitForm_baseLayout.addItem(spacer3,2,0)
 
44
 
 
45
        self.languageChange()
 
46
 
 
47
        self.resize(QSize(424,115).expandedTo(self.minimumSizeHint()))
 
48
        self.clearWState(Qt.WState_Polished)
 
49
 
 
50
        self.connect(self.cancelPushButton,SIGNAL("clicked()"),self.cancelPushButton_clicked)
 
51
 
 
52
 
 
53
    def languageChange(self):
 
54
        self.setCaption(self.__tr("HP Device Manager - Waiting"))
 
55
        self.textLabel3.setText(self.__tr("<b>Waiting for procedure to finish...</b>"))
 
56
        self.cancelPushButton.setText(self.__tr("Cancel"))
 
57
 
 
58
 
 
59
    def cancelPushButton_clicked(self):
 
60
        print("WaitForm_base.cancelPushButton_clicked(): Not implemented yet")
 
61
 
 
62
    def __tr(self,s,c = None):
 
63
        return qApp.translate("WaitForm_base",s,c)