Changeset 1808 for gaphor-plugins

Show
Ignore:
Timestamp:
08/01/07 07:13:37 (1 year ago)
Author:
arj..@yirdis.nl
Message:

updated hello world example.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor-plugins/gaphor.plugins.helloworld/gaphor/plugins/helloworld/__init__.py

    r1807 r1808  
    3636        main_window = self.gui_manager.main_window 
    3737        import gtk 
    38         gtk.MessageDialog( 
     38        dialog = gtk.MessageDialog( 
    3939                parent=main_window.window, 
    4040                type=gtk.MESSAGE_INFO, 
    41                 buttons=gtk.BUTTONS_NONE, 
    42                 message_format='Every application should have a Hello world plugin!').run() 
     41                buttons=gtk.BUTTONS_OK, 
     42                message_format='Every application should have a Hello world plugin!') 
     43        dialog.run() 
     44        dialog.destroy() 
     45 
    4346 
    4447# vim: sw=4:et:ai 
  • gaphor-plugins/gaphor.plugins.helloworld/setup.py

    r1807 r1808  
    33 
    44Every app should have one! 
     5 
     6from the command line run: 'python setup.py develop' and start Gaphor. 
     7 
     8A 'Hello world' button should appear in the Help menu. When pressed, a 
     9dialog will be displayed. 
     10 
     11Very neat, very... Hello world! 
    512""" 
    613 
     
    2835    description = "Example (Hello World) service/plugin for Gaphor", 
    2936    license = "GPL", 
    30     keywords = "hello world example examples", 
     37    keywords = "gaphor hello world example examples", 
    3138 
    3239    entry_points = {