File: testgtkenv.py

package info (click to toggle)
solfege 3.16.4-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 34,472 kB
  • ctags: 5,287
  • sloc: python: 22,642; xml: 14,196; ansic: 4,682; makefile: 621; sh: 287
file content (21 lines) | stat: -rw-r--r-- 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# GNU Solfege - free ear training
# Copyright (C) 2009 Tom Cato Amundsen

import sys
print sys.version

import gtk
print gtk
print gtk.ver

class Win(gtk.Window):
    def __init__(self):
        gtk.Window.__init__(self)
        self.set_default_size(600, 400)
        b = gtk.Button("Click to quit")
        b.connect('clicked', gtk.main_quit)
        self.add(b)

w = Win()
w.show_all()
gtk.main()