File: comboentry.py

package info (click to toggle)
kiwi 1.9.9-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,556 kB
  • ctags: 2,284
  • sloc: python: 12,856; xml: 60; makefile: 56; sh: 17
file content (24 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys

import gtk

from kiwi.ui.comboentry import ComboEntry

def main(args):
    w = gtk.Window()
    w.set_position(gtk.WIN_POS_CENTER)
    w.set_size_request(250, -1)
    w.set_title('ComboEntry example')
    w.connect('delete-event', gtk.main_quit)

    e = ComboEntry()
    e.prefill(['foo', 'bar', 'baz', 'biz', 'boz',
               'bsz', 'byz', 'kus', 'kaz', 'kes',
               'buz', 'bwq', 'uys'])
    w.add(e)

    w.show_all()
    gtk.main()

if __name__ == '__main__':
    sys.exit(main(sys.argv))