diff options
author | Martin Dengler <martin@martindengler.com> | 1999-11-30 06:06:29 (GMT) |
---|---|---|
committer | Martin Dengler <martin@martindengler.com> | 1999-11-30 06:06:29 (GMT) |
commit | cf8cda51328c130fed261634b55dd91a00c5319b (patch) | |
tree | a71738224d5da94bf717a8d9bfd032ab6239bec2 /wirelessgraphactivity.py | |
parent | ef3a0a14a40ad26725a74f59d1c7509edce87047 (diff) |
rename network --> wireless
Diffstat (limited to 'wirelessgraphactivity.py')
-rw-r--r-- | wirelessgraphactivity.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/wirelessgraphactivity.py b/wirelessgraphactivity.py new file mode 100644 index 0000000..4246dc6 --- /dev/null +++ b/wirelessgraphactivity.py @@ -0,0 +1,45 @@ +# Copyright (C) 2009, Martin Dengler <martin@martindengler.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 2 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 St, Fifth Floor, Boston, MA 02110-1301 USA + +import logging + +import gtk + +from gettext import gettext as _ +from sugar.activity import activity + +from wirelessgraph import WirelessGraph + +class WirelessGraphActivity(activity.Activity): + def __init__(self, handle): + activity.Activity.__init__(self, handle) + + self._logger = logging.getLogger("WirelessGraph") + self._logger.info("WirelessGraphActivity self.show()") + + self.set_title(_('WirelessGraph')) + self._build_toolbox() + + vbox = gtk.VBox() + self.graph = WirelessGraph() + vbox.pack_start(self.graph) + self.set_canvas(vbox) + vbox.show_all() + + def _build_toolbox(self): + toolbox = activity.ActivityToolbox(self) + toolbox.show() + self.set_toolbox(toolbox) |