def show_messages_from_shell(self): ''' @summary: Funcion que muestra los mensajes en el ambiente de Sugar. ''' from jarabe.frame import get_view frame = get_view() for message in self._get_messages(): frame.add_message(body=message['texto']+"\n"+"LINK:"+"\n"+message['accion'], summary=message['titulo'])
def setup_gesturehandler_cb(): logging.debug('STARTUP: setup_gesturehandler_cb') gesturehandler.setup(frame.get_view())
def setup_keyhandler_cb(): logging.debug('STARTUP: setup_keyhandler_cb') keyhandler.setup(frame.get_view())
def setup_frame_cb(): logging.debug('STARTUP: setup_frame_cb') frame.get_view()
def __screenshot_cb(self, palette): frame_ = frame.get_view() frame_.hide() GObject.idle_add(self.__take_screenshot_cb, frame_)
# 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 # from jarabe.frame import get_view frame = get_view() def get_corner_delay(): corner_delay = frame.settings.get_int('corner-delay') return corner_delay def print_corner_delay(): print get_corner_delay() def set_corner_delay(delay): """Set a delay for the activation of the frame using hot corners. instantaneous: 0 (0 milliseconds) delay: 100 (100 milliseconds)