(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)

        box = gui.hBox(self)
        self.max_attr_combo = gui.comboBox(
            box, self, "max_attrs",
            label="Number of variables:", orientation=Qt.Horizontal,
            items=["one", "two", "three", "four",
                   "at most two", "at most three", "at most four"],
            callback=self.max_attr_changed)
        gui.rubber(box)
        self.layout().addWidget(self.button)
        self.attr_ordering = None
        self.marginal = {}
        self.last_run_max_attr = None

        self.master.attrs_changed_manually.connect(self.on_manual_change)
def __init__ ( self , master ) : VizRankDialog . __init__ ( self , master ) OWComponent . __init__ ( self , master ) box = gui . hBox ( self ) self . max_attr_combo = gui . comboBox ( box , self , "max_attrs" , label = "Number of variables:" , orientation = Qt . Horizontal , items = [ "one" , "two" , "three" , "four" , "at most two" , "at most three" , "at most four" ] , callback = self . max_attr_changed ) gui . rubber ( box ) self . layout ( ) . addWidget ( self . button ) self . attr_ordering = None self . marginal = { } self . last_run_max_attr = None self . master . attrs_changed_manually . connect ( self . on_manual_change )