File: lunar-demo.py

package info (click to toggle)
liblunar 2.0.1-2.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,076 kB
  • ctags: 480
  • sloc: sh: 10,194; ansic: 4,603; xml: 584; makefile: 173; python: 16
file content (20 lines) | stat: -rwxr-xr-x 489 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
#!/usr/bin/python
import gtk
import lunar

def main_quit(object, *args):
	gtk.main_quit()

if __name__ == '__main__':
	window = gtk.Window()
	window.connect("delete-event", main_quit)

        cal = lunar.Calendar()
        cal.set_display_options(lunar.CALENDAR_SHOW_LUNAR
                |lunar.CALENDAR_SHOW_HEADING
                |lunar.CALENDAR_SHOW_DAY_NAMES
                |lunar.CALENDAR_SHOW_WEEK_NUMBERS
                )
        window.add(cal)
	window.show_all()
	gtk.main()