1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'gui/d_add_cat.ui'
5 # Created: Fri Dec 14 14:06:11 2007
6 # by: PyQt4 UI code generator 4.3.1
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4
import QtCore
, QtGui
12 class Ui_D_Add(object):
13 def setupUi(self
, D_Add
):
14 D_Add
.setObjectName("D_Add")
15 D_Add
.resize(QtCore
.QSize(QtCore
.QRect(0,0,329,103).size()).expandedTo(D_Add
.minimumSizeHint()))
17 self
.vboxlayout
= QtGui
.QVBoxLayout(D_Add
)
18 self
.vboxlayout
.setObjectName("vboxlayout")
20 self
.gridlayout
= QtGui
.QGridLayout()
21 self
.gridlayout
.setObjectName("gridlayout")
23 self
.label
= QtGui
.QLabel(D_Add
)
24 self
.label
.setObjectName("label")
25 self
.gridlayout
.addWidget(self
.label
,0,0,1,1)
27 self
.LE_cat_name
= QtGui
.QLineEdit(D_Add
)
28 self
.LE_cat_name
.setObjectName("LE_cat_name")
29 self
.gridlayout
.addWidget(self
.LE_cat_name
,0,1,1,1)
31 self
.label_2
= QtGui
.QLabel(D_Add
)
32 self
.label_2
.setObjectName("label_2")
33 self
.gridlayout
.addWidget(self
.label_2
,1,0,1,1)
35 self
.LE_cat_desc
= QtGui
.QLineEdit(D_Add
)
36 self
.LE_cat_desc
.setObjectName("LE_cat_desc")
37 self
.gridlayout
.addWidget(self
.LE_cat_desc
,1,1,1,1)
38 self
.vboxlayout
.addLayout(self
.gridlayout
)
40 self
.buttonBox
= QtGui
.QDialogButtonBox(D_Add
)
41 self
.buttonBox
.setOrientation(QtCore
.Qt
.Horizontal
)
42 self
.buttonBox
.setStandardButtons(QtGui
.QDialogButtonBox
.Cancel|QtGui
.QDialogButtonBox
.NoButton|QtGui
.QDialogButtonBox
.Ok
)
43 self
.buttonBox
.setObjectName("buttonBox")
44 self
.vboxlayout
.addWidget(self
.buttonBox
)
46 spacerItem
= QtGui
.QSpacerItem(20,40,QtGui
.QSizePolicy
.Minimum
,QtGui
.QSizePolicy
.Expanding
)
47 self
.vboxlayout
.addItem(spacerItem
)
49 self
.retranslateUi(D_Add
)
50 QtCore
.QObject
.connect(self
.buttonBox
,QtCore
.SIGNAL("accepted()"),D_Add
.accept
)
51 QtCore
.QObject
.connect(self
.buttonBox
,QtCore
.SIGNAL("rejected()"),D_Add
.reject
)
52 QtCore
.QMetaObject
.connectSlotsByName(D_Add
)
54 def retranslateUi(self
, D_Add
):
55 D_Add
.setWindowTitle(QtGui
.QApplication
.translate("D_Add", "Add Category", None, QtGui
.QApplication
.UnicodeUTF8
))
56 self
.label
.setText(QtGui
.QApplication
.translate("D_Add", "Category Name", None, QtGui
.QApplication
.UnicodeUTF8
))
57 self
.label_2
.setText(QtGui
.QApplication
.translate("D_Add", "Description", None, QtGui
.QApplication
.UnicodeUTF8
))