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

Revision 9398:a6b3d9c13ee0, 590 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   
6    settingsList = ["val", "chk"]
7    def __init__(self, parent=None):
8        OWWidget.__init__(self, parent, 'CheckSpin')
9
10        self.val = 20
11        self.chk = 1
12        OWGUI.checkWithSpin(self.controlArea, self, "Prunning, m=", 0, 100, "chk", "val", posttext = "%")
13
14        self.resize(100,100)
15
16##############################################################################
17# Test the widget, run from prompt
18
19if __name__=="__main__":
20    appl = QApplication(sys.argv)
21    ow = Test()
22    ow.show()
23    appl.exec_()
Note: See TracBrowser for help on using the repository browser.