--- /dev/null
+# -*- coding: utf-8 -*-
+
+###########################################################################
+# Maevies
+# Copyright (C) 2010 Simón Pena <spenap@gmail.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+###########################################################################
+
+import pygtk
+pygtk.require("2.0")
+import gtk
+
+class Maevies(gtk.Window):
+
+
+ def __init__(self):
+ gtk.Window.__init__(self)
+ self.set_title("Maevies - 0.1")
+ self.connect('delete-event',
+ lambda widget, event: gtk.main_quit())
+
+ self._contents = gtk.HBox()
+ self._contents.set_border_width(20)
+ self._contents.set_homogeneous(True)
+ self._contents.pack_start(self._get_content_box("On Theaters"),
+ expand=True, fill=True)
+ self._contents.pack_start(self._get_content_box("Favorites"),
+ expand=True, fill=True)
+ self._contents.pack_start(self._get_content_box("Search"),
+ expand=True, fill=True)
+
+ self.add(self._contents)
+
+ self.show_all()
+
+ def _get_content_box(self, text):
+ favorites = gtk.VBox()
+ favorites.set_border_width(20)
+
+ button = gtk.Button()
+ foot_label = gtk.Label()
+ foot_label.set_text(text)
+
+ favorites.pack_start(button,
+ expand=True, fill=True)
+ favorites.pack_start(foot_label,
+ expand=False, fill=False)
+
+ return favorites
+
+ def run(self):
+ gtk.main()
+
+
+if __name__ == "__main__":
+ maevies = Maevies()
+ maevies.run()