Changeset 4979:f9974d67bcbe in orange


Ignore:
Timestamp:
07/16/08 11:53:23 (6 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
7cc550063f0fe9bb4406ee61bdbe5b0c0854c3db
Message:

-prints continuous values in proper format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Data/OWDataTable.py

    r4813 r4979  
    213213 
    214214            for i in range(numEx): 
    215                 OWGUI.tableItem(table, i,j, data[i][key].native(), backColor = bgColor) 
     215                OWGUI.tableItem(table, i,j, str(data[i][key]), backColor = bgColor) 
     216##                OWGUI.tableItem(table, i,j, data[i][key].native(), backColor = bgColor) 
    216217 
    217218        table.resizeRowsToContents() 
     
    332333                    smallerWidth = option.rect.width() * (dist.max - value) / (dist.max-dist.min or 1) 
    333334                    painter.fillRect(option.rect.adjusted(0,0,-smallerWidth,0), self.widget.distColor) 
    334             text = self.widget.locale.toString(value)    # we need this to convert doubles like 1.39999999909909 into 1.4 
    335         else: 
    336             text = index.data(Qt.DisplayRole).toString() 
     335##            text = self.widget.locale.toString(value)    # we need this to convert doubles like 1.39999999909909 into 1.4 
     336##        else: 
     337        text = index.data(Qt.DisplayRole).toString() 
    337338 
    338339        self.drawDisplay(painter, option, option.rect, text) 
Note: See TracChangeset for help on using the changeset viewer.