diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-07-24 00:49:52 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-07-24 00:49:52 (GMT) |
commit | 14f8b923e8dec97bcf29cf9a695684cce0b2ada0 (patch) | |
tree | ab1575ac4346b4707244e5a7a46de67d79285f8e | |
parent | d3a010ea0f4b0ff12f4e176f5be229e6579b62ee (diff) |
Frames Tray file created
-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() |