Debian Codegraph @

fltk/test/listSelect.py

raw symbols SCIP
1 # ListSelect test program for the Python port of
2 # the Fast Light Tool Kit (pyFLTK).
3 #
4 # Demonstrates the use of the contributed ListSelect widget.
5 #
6 # FLTk is Copyright 1998-2003 by Bill Spitzak and others.
7 # pyFLTK is Copyright 2003 by Andreas Held
8 #
9 # This library is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Library General Public
11 # License, version 2.0 as published by the Free Software Foundation.
12 #
13 # This library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Library General Public License for more details.
17 #
18 # You should have received a copy of the GNU Library General Public
19 # License along with this library; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 # USA.
22 #
23 # Please report all bugs and problems to "[email protected]".
24 #
25 # "$Id: listSelect.py 536 2020-10-30 15:20:32Z andreasheld $"
26 #
27 # ListSelect test program for pyFLTK the Python bindings
28 # for the Fast Light Tool Kit (FLTK).
29 #
30 # FLTK copyright 1998-1999 by Bill Spitzak and others.
31 # pyFLTK copyright 2003 by Andreas Held and others.
32 #
33 # This library is free software you can redistribute it and/or
34 # modify it under the terms of the GNU Library General Public
35 # License, version 2.0 as published by the Free Software Foundation.
36 #
37 # This library is distributed in the hope that it will be useful,
38 # but WITHOUT ANY WARRANTY without even the implied warranty of
39 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 # Library General Public License for more details.
41 #
42 # You should have received a copy of the GNU Library General Public
43 # License along with this library if not, write to the Free Software
44 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
45 # USA.
46 #
47 # Please report all bugs and problems to "[email protected]".
48 #
49
50
51
52 from fltk import *
53 import sys
54
55
56
57 window = Fl_Window(100, 100, 420, 300)
58
59 ls = ListSelect( 0, 0, 420, 300, " From:", " To:");
60
61 for t in range(0, 30, 1):
62 ls.getTopBrowser().add(f"Item #{t}")
63
64 window.resizable(window.this)
65 window.end()
66 window.show(len(sys.argv), sys.argv)
67
68 Fl.run()