(self, master)
Add the spin box for maximal number of attributes
Add the spin box for maximal number of attributes
Add the spin box for maximal number of attributes
def __init__(self, master):
        """Add the spin box for maximal number of attributes"""
        VizRankDialog.__init__(self, master)
        OWComponent.__init__(self, master)

        self.master = master
        self.n_neighbors = 10

        box = gui.hBox(self)
        max_n_attrs = min(MAX_DISPLAYED_VARS, len(master.model_selected))
        self.n_attrs_spin = gui.spin(
            box, self, "n_attrs", 3, max_n_attrs, label="Maximum number of variables: ",
            controlWidth=50, alignment=Qt.AlignRight, callback=self._n_attrs_changed)
        gui.rubber(box)
        self.last_run_n_attrs = None
        self.attr_color = master.attr_color
        self.attr_ordering = None
        self.data = None
        self.valid_data = None

        self.rank_table.clicked.connect(self.on_row_clicked)
        self.rank_table.verticalHeader().sectionClicked.connect(
            self.on_header_clicked)
def __init__ ( self , master ) : VizRankDialog . __init__ ( self , master ) OWComponent . __init__ ( self , master ) self . master = master self . n_neighbors = 10 box = gui . hBox ( self ) max_n_attrs = min ( MAX_DISPLAYED_VARS , len ( master . model_selected ) ) self . n_attrs_spin = gui . spin ( box , self , "n_attrs" , 3 , max_n_attrs , label = "Maximum number of variables: " , controlWidth = 50 , alignment = Qt . AlignRight , callback = self . _n_attrs_changed ) gui . rubber ( box ) self . last_run_n_attrs = None self . attr_color = master . attr_color self . attr_ordering = None self . data = None self . valid_data = None self . rank_table . clicked . connect ( self . on_row_clicked ) self . rank_table . verticalHeader ( ) . sectionClicked . connect ( self . on_header_clicked )