Ignore:
Timestamp:
11/01/13 02:09:11 (6 months ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Message:

Changes in headers, widget descriptions text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Data/OWDataInfo.py

    r11720 r11748  
    1 """<name>Info</name> 
    2 <description>Displays basic information about data set on the input. Shows 
    3 sample size, and number and type of features.</description> 
    4 <icon>icons/DataInfo.svg</icon> 
    5 <priority>80</priority> 
    6 <contact>Ales Erjavec (ales.erjavec@fri.uni-lj.si)</contact>""" 
     1import Orange 
     2import OWGUI 
     3from OWWidget import * 
     4import sys 
    75 
    8 from OWWidget import * 
    9 import OWGUI 
     6NAME = "Info" 
     7DESCRIPTION = """Displays basic information about data set on the input. Shows 
     8sample size, and number and type of features.""" 
     9ICON = "icons/DataInfo.svg" 
     10PRIORITY = 80 
     11CATEGORY = "Data" 
     12MAINTAINER = "Ales Erjavec" 
     13MAINTAINER_EMAIL = "ales.erjavec < at > fri.uni-lj.si" 
     14INPUTS = [("Data", Orange.data.Table, "data")] 
     15OUTPUTS = [] 
    1016 
    11 import orange 
    12 import sys, os 
    1317 
    1418class OWDataInfo(OWWidget): 
     
    2731        box = OWGUI.widgetBox(self.controlArea, "Data Set Size", addSpace=True) 
    2832        OWGUI.label(box, self, '<table><tr><td width="150">Samples (rows):</td><td align="right" width="60">%(rowcount)7i</td></tr>\ 
    29                                 <tr><td>Attributes (columns):</td><td align="right">%(columncount)7i</td></tr></table>') 
     33                                <tr><td>Features (columns):</td><td align="right">%(columncount)7i</td></tr></table>') 
    3034         
    31         box = OWGUI.widgetBox(self.controlArea, "Attributes") 
    32         OWGUI.label(box, self, '<table><tr><td width="150">Discrete attributes:</td><td align="right" width="60">%(discattrcount)7i</td></tr>\ 
    33                                 <tr><td>Continuous attributes:</td><td align="right">%(contattrcount)7i</td></tr>\ 
    34                                 <tr><td>String attributes:</td><td align="right">%(stringattrcount)7i</td></tr>\ 
     35        box = OWGUI.widgetBox(self.controlArea, "Features") 
     36        OWGUI.label(box, self, '<table><tr><td width="150">Discrete:</td><td align="right" width="60">%(discattrcount)7i</td></tr>\ 
     37                                <tr><td>Continuous:</td><td align="right">%(contattrcount)7i</td></tr>\ 
     38                                <tr><td>String:</td><td align="right">%(stringattrcount)7i</td></tr>\ 
    3539                                <tr><td> </td></tr>\ 
    36                                 <tr><td>Meta attributes:</td><td align="right">%(metaattrcount)7i</td></tr>\ 
    37                                 <tr><td>Class attribute:</td><td align="right">%(classattr)7s</td></tr></table>') 
     40                                <tr><td>Meta features:</td><td align="right">%(metaattrcount)7i</td></tr>\ 
     41                                <tr><td>Class variable present:</td><td align="right">%(classattr)7s</td></tr></table>') 
    3842#        OWGUI.separator(box) 
    3943#        OWGUI.label(box, self, '<table><tr><td width="100">Meta attributes:</td><td align="right" width="50">%(metaattrcount)7i</td></tr>\ 
     
    4448         
    4549        self.loadSettings() 
    46          
    47          
     50 
    4851    def data(self, data): 
    4952        if data: 
     
    6770    app = QApplication(sys.argv) 
    6871    w = OWDataInfo() 
    69     data = orange.ExampleTable("../../doc/datasets/iris.tab") 
     72    data = Orange.data.Table("iris.tab") 
    7073    w.data(data) 
    7174    w.show() 
Note: See TracChangeset for help on using the changeset viewer.