source: orange/orange/doc/extend-widgets/gui_radiobuttons.py @ 9398:a6b3d9c13ee0

Revision 9398:a6b3d9c13ee0, 817 bytes checked in by mitar, 2 years ago (diff)

Renaming documentation for widgets developers.

Line 
1from OWWidget import *
2import OWGUI
3
4class Test(OWWidget):
5    def __init__(self, parent=None):
6        OWWidget.__init__(self, parent, title='Listbox')
7
8        self.method = 0
9
10        OWGUI.radioButtonsInBox(self.controlArea, self, "method",
11                      box = "Probability estimation",
12                      btnLabels = ["Relative", "Laplace", "m-estimate"],
13                      tooltips = ["Relative frequency of the event",
14                                  "Laplace-corrected estimate",
15                                  "M-estimate of probability"])
16        self.adjustSize()
17
18##############################################################################
19# Test the widget, run from prompt
20
21if __name__=="__main__":
22    appl = QApplication(sys.argv)
23    ow = Test()
24    ow.show()
25    appl.exec_()
Note: See TracBrowser for help on using the repository browser.