Debian Codegraph @

fltk/test/radio.py

raw symbols SCIP
1 #
2 # "$Id: radio.py 531 2019-12-27 12:15:45Z andreasheld $"
3 #
4 # Radio buttons test program for pyFLTK the Python bindings
5 # for the Fast Light Tool Kit (FLTK).
6 #
7 # FLTK copyright 1998-1999 by Bill Spitzak and others.
8 # pyFLTK copyright 2003 by Andreas Held and others.
9 #
10 # This library is free software you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License, version 2.0 as published by the Free Software Foundation.
13 #
14 # This library is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # Library General Public License for more details.
18 #
19 # You should have received a copy of the GNU Library General Public
20 # License along with this library if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 # USA.
23 #
24 # Please report all bugs and problems to "[email protected]".
25 #
26
27
28 from fltk import *
29
30 # global object names
31
32
33 def main():
34
35 win = Fl_Window(447, 255, 369, 214)
36
37 o_2_0 = Fl_Button(20, 10, 160, 30, "Fl_Button")
38 o_2_0.label('Fl_Button')
39
40 o_2_1 = Fl_Return_Button(20, 50, 160, 30, "Fl_Return_Button")
41 o_2_1.label('Fl_Return_Button')
42
43 o_2_2 = Fl_Light_Button(20, 90, 160, 30, "Fl_Light_Button")
44 o_2_2.label('Fl_Light_Button')
45
46 o_2_3 = Fl_Check_Button(20, 130, 160, 30, "Fl_Check_Button")
47 o_2_3.down_box(FL_DOWN_BOX)
48 o_2_3.label('Fl_Check_Button')
49
50 o_2_4 = Fl_Round_Button(20, 170, 160, 30, "Fl_Round_Button")
51 o_2_4.down_box(fl_define_FL_ROUND_UP_BOX()+1)
52 o_2_4.label('Fl_Round_Button')
53
54 o_2_5 = Fl_Group(190, 10, 70, 120)
55
56 o_3_0 = Fl_Round_Button(190, 10, 70, 30, "radio")
57 # XXX unknown typedef Fl_Round_Button Radio
58 o_3_0.down_box(fl_define_FL_ROUND_UP_BOX()+1)
59 o_3_0.label('radio')
60
61 # warning: following obj has type class
62 # option not handled by code generator:
63 # Radio
64 # Please email this comment and the following
65 # 2 lines to [email protected]
66 o_3_1 = Fl_Round_Button(190, 40, 70, 30, "radio")
67 # XXX unknown typedef Fl_Round_Button Radio
68 o_3_1.down_box(fl_define_FL_ROUND_UP_BOX()+1)
69 o_3_1.label('radio')
70
71 # warning: following obj has type class
72 # option not handled by code generator:
73 # Radio
74 # Please email this comment and the following
75 # 2 lines to [email protected]
76 o_3_2 = Fl_Round_Button(190, 70, 70, 30, "radio")
77 # XXX unknown typedef Fl_Round_Button Radio
78 o_3_2.down_box(fl_define_FL_ROUND_UP_BOX()+1)
79 o_3_2.label('radio')
80
81 # warning: following obj has type class
82 # option not handled by code generator:
83 # Radio
84 # Please email this comment and the following
85 # 2 lines to [email protected]
86 o_3_3 = Fl_Round_Button(190, 100, 70, 30, "radio")
87 # XXX unknown typedef Fl_Round_Button Radio
88 o_3_3.down_box(fl_define_FL_ROUND_UP_BOX()+1)
89 o_3_3.label('radio')
90 o_2_5.box(FL_THIN_UP_FRAME)
91 o_2_5.end()
92
93 o_2_6 = Fl_Group(270, 10, 90, 115)
94
95 o_3_0 = Fl_Button(280, 20, 20, 20, "radio")
96 o_3_0.type(102)
97 o_3_0.selection_color(1)
98 o_3_0.align(8)
99 o_3_0.label('radio')
100
101 o_3_1 = Fl_Button(280, 45, 20, 20, "radio")
102 o_3_1.type(102)
103 o_3_1.selection_color(1)
104 o_3_1.align(8)
105 o_3_1.label('radio')
106
107 o_3_2 = Fl_Button(280, 70, 20, 20, "radio")
108 o_3_2.type(102)
109 o_3_2.selection_color(1)
110 o_3_2.align(8)
111 o_3_2.label('radio')
112
113 o_3_3 = Fl_Button(280, 95, 20, 20, "radio")
114 o_3_3.type(102)
115 o_3_3.selection_color(1)
116 o_3_3.align(8)
117 o_3_3.label('radio')
118 o_2_6.box(FL_THIN_UP_BOX)
119 o_2_6.end()
120 win.end()
121
122 return win
123
124
125
126 if __name__=='__main__':
127 import sys
128 window = main()
129 window.show(len(sys.argv), sys.argv)
130 Fl.run()