Ignore:
Timestamp:
06/13/13 18:12:28 (10 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Updated Widget development tutorial.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/extend-widgets/rst/OWLearningCurve_plot.py

    r11085 r11593  
    7373        self.commitBtn = OWGUI.button(box, self, "Apply Setting", callback=self.computeCurve, disabled=1) 
    7474 
     75        # ~start main area tabs~ 
    7576        # start of content (right) area 
    7677        tabs = OWGUI.tabWidget(self.mainArea) 
    7778 
    78         # graph widget 
     79        # graph tab 
    7980        tab = OWGUI.createTabPage(tabs, "Graph") 
    8081        self.graph = OWPlot(tab) 
     
    8485        self.setGraphGrid() 
    8586 
    86         # table widget 
     87        # table tab 
    8788        tab = OWGUI.createTabPage(tabs, "Table") 
    8889        self.table = OWGUI.table(tab, selectionMode=QTableWidget.NoSelection) 
     90        # ~end main area tabs~ 
    8991 
    9092        self.resize(550,200) 
     
    256258 
    257259    def drawLearningCurve(self, learner): 
    258         if not self.data: return 
    259         curve = self.graph.add_curve(learner.name, xData=self.curvePoints, yData=learner.score, autoScale=True) 
     260        if not self.data: 
     261            return 
     262        curve = self.graph.add_curve( 
     263            learner.name, 
     264            xData=self.curvePoints, 
     265            yData=learner.score, 
     266            autoScale=True) 
    260267         
    261268        learner.curve = curve 
Note: See TracChangeset for help on using the changeset viewer.