~mistrynitesh/clicompanion/python2.5

« back to all changes in this revision

Viewing changes to menus_buttons.py

  • Committer: duanedesign
  • Date: 2010-09-20 00:49:34 UTC
  • Revision ID: duanedesign@gmail.com-20100920004934-i033zjho5nrbv751
updated copyright info

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        # Set the appearance of the Button Box
88
88
        bbox.set_layout(layout)
89
89
        bbox.set_spacing(spacing)
90
 
        # APPLY button
 
90
        # Run button
91
91
        buttonRun = gtk.Button(_("Run"))
92
92
        bbox.add(buttonRun)
93
93
        buttonRun.connect("clicked", cli.run_command)
 
94
        buttonRun.set_tooltip_text("Click to run a highlighted command")
94
95
        # Add button
95
96
        buttonAdd = gtk.Button(stock=gtk.STOCK_ADD)
96
97
        bbox.add(buttonAdd)
97
98
        buttonAdd.connect("clicked", cli.add_command)
 
99
        buttonAdd.set_tooltip_text("Click to add a command to your command list")
98
100
        # Edit button
99
101
        buttonEdit = gtk.Button("Edit")
100
102
        bbox.add(buttonEdit)
101
103
        buttonEdit.connect("clicked", cli.edit_command)
 
104
        buttonEdit.set_tooltip_text("Click to edit a command in your command list")
102
105
        # Delete button
103
106
        buttonDelete = gtk.Button(stock=gtk.STOCK_DELETE)
104
107
        bbox.add(buttonDelete)
105
108
        buttonDelete.connect("clicked", cli.remove_command)
 
109
        buttonDelete.set_tooltip_text("Click to delete a command in your command list")
106
110
        #Help Button
107
111
        buttonHelp = gtk.Button(stock=gtk.STOCK_HELP)
108
112
        bbox.add(buttonHelp)
109
113
        buttonHelp.connect("clicked", cli.man_page)
 
114
        buttonHelp.set_tooltip_text("Click to get help with a command in your command list")
110
115
        # Cancel button
111
116
        buttonCancel = gtk.Button(stock=gtk.STOCK_QUIT)
112
117
        bbox.add(buttonCancel)
113
118
        buttonCancel.connect("clicked", cli.delete_event)
 
119
        buttonCancel.set_tooltip_text("Click to quit CLI Companion")
114
120
 
115
 
        
116
121
        return frame      
117
122
        
118
123