X-Git-Url: https://code.agnibho.com/repo?p=ddstorm.git;a=blobdiff_plain;f=_differentials.py;fp=_differentials.py;h=0000000000000000000000000000000000000000;hp=16f86d3d5309ad99b9b3bafa5d2693aeb27575e8;hb=717bb15e56a14b4d814054c5bd5d15a9b4c9e20f;hpb=ad3c926d180f5d843b77db44c2b2449cdffeec34 diff --git a/_differentials.py b/_differentials.py deleted file mode 100644 index 16f86d3..0000000 --- a/_differentials.py +++ /dev/null @@ -1,47 +0,0 @@ -# DDStorm -# ------- -# Copyright (c) 2015 Agnibho Mondal -# All rights reserved - -# This file is part of DDStorm. - -# DDStorm is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# DDStorm is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with DDStorm. If not, see . - -from PyQt4 import QtGui - -class Differentials(QtGui.QFrame): - data=[] - def __init__(self): - super(Differentials, self).__init__() - self.initUI() - def initUI(self): - self.label=QtGui.QLabel("Differential Diagnosis") - self.label.setStyleSheet("font-size:18px") - self.listWidget=QtGui.QListWidget(self) - self.listWidget.setStyleSheet("font-size:14px") - self.listWidget.setSelectionMode(0) - box=QtGui.QVBoxLayout() - box.addWidget(self.label) - box.addWidget(self.listWidget) - self.setLayout(box) - - def update(self, data): - self.data=data - self.listWidget.clear() - if(self.data): - for d in self.data: - QtGui.QListWidgetItem(d, self.listWidget) - - def getList(self): - return self.data