diff options
Diffstat (limited to 'frames_tray.py')
-rw-r--r-- | frames_tray.py | 48 |
1 files changed, 48 insertions, 0 deletions
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 <francis@sugarlabs.org>, +# Agustin Zubiaga <aguz@sugarlabs.org> +# +# 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() |