/usr/lib/python3/dist-packages/ginga/gtkw/tests/cbar.py is in python3-ginga 2.6.1-2.
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 | import sys
import gtk
from ginga.gtkw import ColorBar
from ginga import cmap, imap
import logging
if __name__ == "__main__":
logger = logging.getLogger('cbar')
root = gtk.Window(gtk.WINDOW_TOPLEVEL)
root.set_size_request(400, 150)
w = ColorBar.ColorBar(logger)
w.set_cmap(cmap.get_cmap('rainbow'))
w.set_imap(imap.get_imap('ramp'))
root.add(w)
root.show_all()
gtk.main()
|