Changeset 11821:557d9564418b in orange


Ignore:
Timestamp:
12/23/13 09:48:34 (4 months ago)
Author:
astaric <anze.staric@…>
Branch:
default
committer:
astaric <anze.staric@gmail.com> 1388665309 -3600
Message:

Normalize imports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Visualize/OWParallelCoordinates.py

    r11096 r11821  
    1010# Show data using parallel coordinates visualization method 
    1111# 
    12 from OWVisWidget import * 
    13 from OWParallelGraph import * 
    14 import OWToolbars, OWGUI, OWColorPalette, orngVisFuncts 
     12import os 
     13from Orange.orange import ExampleTable 
     14from PyQt4.QtCore import SIGNAL, Qt, QSize 
     15from PyQt4.QtGui import QColor, QRadioButton, QFileDialog, QMessageBox, qApp 
     16from PyQt4.Qwt5.Qwt import QwtPlot 
     17from Orange.OrangeCanvas.registry.description import Default 
     18from Orange.OrangeWidgets import OWToolbars, OWGUI, OWColorPalette 
     19from Orange.OrangeWidgets.OWBaseWidget import AttributeList 
     20from Orange.OrangeWidgets.OWContexts import DomainContextHandler, ContextField 
     21from Orange.OrangeWidgets.OWVisWidget import OWVisWidget 
     22from Orange.OrangeWidgets.OWWidget import OWWidget 
     23from Orange.OrangeWidgets.Visualize.OWParallelGraph import OWParallelGraph 
     24from Orange.orng import orngVisFuncts 
    1525from sys import getrecursionlimit, setrecursionlimit 
    1626 
     
    2737 
    2838    def __init__(self,parent=None, signalManager = None): 
    29         OWWidget.__init__(self, parent, signalManager, "Parallel Coordinates", TRUE) 
     39        OWWidget.__init__(self, parent, signalManager, "Parallel Coordinates", True) 
    3040 
    3141        #add a graph widget 
     
    293303 
    294304    def __init__(self, parallelWidget, parent=None, signalManager = None): 
    295         OWWidget.__init__(self, parent, signalManager, "Parallel Optimization Dialog", FALSE) 
     305        OWWidget.__init__(self, parent, signalManager, "Parallel Optimization Dialog", False) 
    296306        self.setCaption("Parallel Optimization Dialog") 
    297307        self.parallelWidget = parallelWidget 
     
    648658#test widget appearance 
    649659if __name__=="__main__": 
     660    import sys 
     661    from PyQt4.QtGui import QApplication 
     662    from Orange.OrangeWidgets.OWColorPalette import ColorPaletteGenerator 
     663 
    650664    a=QApplication(sys.argv) 
    651665    ow=OWParallelCoordinates() 
    652666    ow.show() 
    653667    ow.graph.discPalette = ColorPaletteGenerator(rgbColors = [(127, 201, 127), (190, 174, 212), (253, 192, 134)]) 
    654     data = orange.ExampleTable("../../doc/datasets/iris.tab") 
    655 #    data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\wine.tab") 
    656     #data = orange.ExampleTable(r"e:\Development\Orange Datasets\UCI\zoo.tab") 
     668    data = ExampleTable("iris.tab") 
    657669    ow.setData(data) 
    658670    ow.handleNewSignals() 
    659671     
    660672    a.exec_() 
     673 
     674    ow.saveSettings() 
Note: See TracChangeset for help on using the changeset viewer.