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

Revision 9398:a6b3d9c13ee0, 968 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 = ["val1", "val2", "valF"]
7    def __init__(self, parent=None):
8        OWWidget.__init__(self, parent, 'Check')
9
10        self.val1 = "Enter text ..."
11        self.val2 = "Some more text ..."
12        self.valF = 10.2
13       
14        OWGUI.lineEdit(self.controlArea, self, "val1", box="Text Entry")
15        box = OWGUI.widgetBox(self.controlArea, "Options (with lineEdit)")
16        OWGUI.lineEdit(box, self, "val2", 
17                       label="Name:", orientation="horizontal", labelWidth=40)
18        OWGUI.lineEdit(box, self, "valF", label="Float:",
19                       orientation="horizontal", labelWidth=40, valueType=float)
20
21        self.resize(100,100)
22
23##############################################################################
24# Test the widget, run from prompt
25
26if __name__=="__main__":
27    appl = QApplication(sys.argv)
28    ow = Test()
29    ow.show()
30    appl.exec_()
Note: See TracBrowser for help on using the repository browser.