From 14f8b923e8dec97bcf29cf9a695684cce0b2ada0 Mon Sep 17 00:00:00 2001 From: Agustin Zubiaga Date: Tue, 24 Jul 2012 00:49:52 +0000 Subject: Frames Tray file created --- diff --git a/frames_tray.py b/frames_tray.py new file mode 100644 index 0000000..ef0b2bb --- /dev/null +++ b/frames_tray.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# frames_tray.py +# +# Copyright 2012 S. Daniel Francis , +# Agustin Zubiaga +# +# 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, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. + +import gtk +from sugar.grapihcs.tray import HTray + + +class FramesTray(HTray): + + def __init__(self): + HTray.__init__(self) + + self.show() + + def add_frame(self): + item = FrameWidget() + self.add_item(item) + + def remove_frame(self): + return + + +class FrameWidget(gtk.ToolItem): + + def __init__(self): + gtk.ToolItem.__init__(self) + + self.show() -- cgit v0.9.1