Hi James I'm trying to get my help to run but I can' t.
You gave mea VERY GOOD explenation of how It worked but It seems I just
can't get the hang of it.

Below is an example of what should display gnumeric help on my computer
but it gives a WARNIG before starting:

GnomeUI-WARNING **: Could not open help topics file NULL

Could you signal what I'm doing wrong ?

Thanks

#--------------------Begin Help_me-----------------------------------

#!/usr/bin/env python
from gtk import *
from gnome.ui import *

class Help_me(GnomeApp):

    def __init__(self):
        GnomeApp.__init__(self,'help_me', 'help_me')
        self.connect('destroy', mainquit)
        self.help_menu = [
            UIINFO_ITEM_STOCK( 'About', None, self.about,  STOCK_MENU_ABOUT),
            UIINFO_SEPARATOR,
            UIINFO_HELP('/usr/share/gnome/help/gnumeric'),
            UIINFO_END]
        self.menu = [UIINFO_SUBTREE('Help', self.help_menu)]
        self.create_menus(self.menu)

    def about(self,*args):
        win = GnomeAbout('help_me', 
                         '2001', 'GPL', ['A lost pygtk programmer'],
                         """
                         An example for getting help 
                         (there is two semantic meanings in this phrase :-)"""
                         )
        win.show()
        
if __name__ == '__main__':
    help_me = Help_me()
    help_me.show()
    mainloop()

#-------------------End Help_me-----------------------------------------

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to