Example #1
0
# -*- coding: utf-8 -*-
import os, sys

from gettext import gettext as _
import gtk
import gobject
import pygame
import sugar.activity.activity
import libraries
libraries.setup_path()
import sugargame2
import sugargame2.canvas
import spyral

import logging
import traceback
import helpbutton

from sugar.graphics import style
from sugar.graphics.toolbarbox import ToolbarBox
from sugar.activity.widgets import ActivityToolbarButton
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.radiotoolbutton import RadioToolButton
from sugar.activity.widgets import StopButton
from sugar.graphics.alert import NotifyAlert

from libraries.console.interactiveconsole import GTKInterpreterConsole
#from libraries.pyvimwrapper.vimWrapper import VimWrapper
try:
    import gtksourceview2
except ImportError:
Example #2
0
# -*- coding: utf-8 -*-
import os, sys

from gettext import gettext as _
import gtk
import gobject
import pygame
import sugar.activity.activity
import libraries
libraries.setup_path()
import sugargame2
import sugargame2.canvas
import spyral

import logging
import traceback
import helpbutton

from sugar.graphics import style
from sugar.graphics.toolbarbox import ToolbarBox
from sugar.activity.widgets import ActivityToolbarButton
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.radiotoolbutton import RadioToolButton
from sugar.activity.widgets import StopButton
from sugar.graphics.alert import NotifyAlert

from libraries.console.interactiveconsole import GTKInterpreterConsole
from libraries.pyvimwrapper.vimWrapper import VimWrapper
try:
    import gtksourceview2
except ImportError: