forked from xrg/SpiffGtkWidgets
A collection of GTK widgets, including a calendar and a text editor
License
Ezhil-Language-Foundation/SpiffGtkWidgets
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= Spiff GtkWidgets = This library is part of the Spiff platform. Spiff Gtk Widgets contains a number of Gtk widgets by other Spiff components: * A calendar similar to Google's online calendar. * A text view that supports advanced features like undo/redo, annotations, auto-indenting bullet point lists, etc. = Dependencies = * pygtk 2.4 or greater * python-hippocanvas = Usage = Examples can be found in the tests/SpiffGtkWidgets/ directory of this project. = Calendar Usage = #Text import datetime from SpiffGtkWidgets.Calendar import Calendar, Model, Event model = Model() calendar = Calendar(model) def on_event_clicked(calendar, event): print "Event %s was clicked" % event.caption def on_day_selected(calendar, day, event): print "Day %s was clicked" % day event = Event('Event number 1', datetime.datetime(2007, 10, 8, 02), datetime.datetime(2007, 10, 8, 17), bg_color = 'lightgreen') model.add_event(event) calendar.connect('event-clicked', on_event_clicked) calendar.connect('day-selected', on_day_selected) #End
About
A collection of GTK widgets, including a calendar and a text editor
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 99.4%
- Makefile 0.6%