]>
Softwares of Agnibho - ddstorm.git/blob - _differentials.py
3 # Copyright (c) 2015 Agnibho Mondal
6 # This file is part of DDStorm.
8 # DDStorm is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # DDStorm is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with DDStorm. If not, see <http://www.gnu.org/licenses/>.
21 from PyQt4
import QtGui
23 class Differentials(QtGui
.QFrame
):
26 super(Differentials
, self
).__init
__()
29 self
.label
=QtGui
.QLabel("Differential Diagnosis")
30 self
.label
.setStyleSheet("font-size:18px")
31 self
.listWidget
=QtGui
.QListWidget(self
)
32 self
.listWidget
.setStyleSheet("font-size:14px")
33 self
.listWidget
.setSelectionMode(0)
34 box
=QtGui
.QVBoxLayout()
35 box
.addWidget(self
.label
)
36 box
.addWidget(self
.listWidget
)
39 def update(self
, data
):
41 self
.listWidget
.clear()
44 QtGui
.QListWidgetItem(d
, self
.listWidget
)