Beispiel #1
0
    def _loadHelp(self, *args):
        '''
        Shows the user manual.

        Arguments:
        - self: The main object pointer.
        - *args: The widget callback arguments.
        '''

        uri = "ghelp:%s/docs/mousetrap.xml" % env.mTDataDir
        try:
            Gtk.show_uri(Gdk.Screen.get_default(), uri, Gtk.get_current_event_time())
        except:
            debug.exception( "mainGui", "The help load failed" )
Beispiel #2
0
def start():
    """
    Start's the dbus server and store it in the global variable
    dbusserver, so it won't be started twice.
    """
    global dbusserver

    if dbusserver:
        return

    try:
        dbusserver = DbusServer()
        return True
    except:
        debug.exception("mouseTrap.mTDbus", "The dbus server load failed")
Beispiel #3
0
def start():
    """
    Start's the dbus server and store it in the global variable
    dbusserver, so it won't be started twice.
    """
    global dbusserver

    if dbusserver:
        return

    try:
        dbusserver = DbusServer()
        return True
    except:
        debug.exception( "mouseTrap.mTDbus", "The dbus server load failed" )
Beispiel #4
0
    def _loadHelp( self, *args ):
        """
        Shows the user manual.

        Arguments:
        - self: The main object pointer.
        - *args: The widget callback arguments.
        """

        try:
            import gnome
            gnome.help_display_uri("ghelp:%s/docs/mousetrap.xml" % env.mTDataDir)
        except ImportError:
            dialogs.errorDialog(
            "mouseTrap needs <b>gnome</b> module to show the help. Please install gnome-python and try again.", None )
            debug.exception( "mainGui", "The help load failed" )
Beispiel #5
0
    def _loadHelp(self, *args):
        """
        Shows the user manual.

        Arguments:
        - self: The main object pointer.
        - *args: The widget callback arguments.
        """

        try:
            import gnome
            gnome.help_display_uri("ghelp:%s/docs/mousetrap.xml" %
                                   env.mTDataDir)
        except ImportError:
            dialogs.errorDialog(
                "mouseTrap needs <b>gnome</b> module to show the help. Please install gnome-python and try again.",
                None)
            debug.exception("mainGui", "The help load failed")