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