extra Window elements: monday and shown_projects

This commit is contained in:
Josh Holtrop committed 2011-02-22 10:45:40 -05:00
1 parent 48a377ec6a
commit b24dcf4bad
1 file changed
+4
+4
View File
@@ -1,10 +1,14 @@
import gtk import gtk
import gobject import gobject
from datetime import *
class Window: class Window:
def __init__(self, ds): def __init__(self, ds):
self.ds = ds self.ds = ds
self.shown_projects = []
now = datetime.now()
self.monday = now.date() - timedelta(now.weekday())
# Top-level Window creation # Top-level Window creation
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)