Logo Search packages:      
Sourcecode: gnome-mousetrap version File versions  Download package

def mouseTrap::mainGui::MainGui::_newStockImageButton (   self,
  label,
  stock 
) [private]

Creates an image button from gtk's stock.

Arguments:
- self: The main object pointer
- label: The buttons label
- stock: The Stock image the button will use. E.g: gtk.STOCK_GO-FORWARD

Returns buttonLabelBox A gtk.HBox that contains the new image stock button.

Definition at line 191 of file mainGui.py.

00191                                                   :
        """
        Creates an image button from gtk's stock.
        
        Arguments:
        - self: The main object pointer
        - label: The buttons label
        - stock: The Stock image the button will use. E.g: gtk.STOCK_GO-FORWARD
        
        Returns buttonLabelBox A gtk.HBox that contains the new image stock button.
        """
        
        buttonLabelBox = gtk.HBox()
        
        im = gtk.image_new_from_stock( stock, gtk.ICON_SIZE_BUTTON )
        
        label = gtk.Label( label )
        label.set_alignment( 0.0, 0.5 )
        label.set_use_underline( True )
        
        buttonLabelBox.pack_start( im )
        buttonLabelBox.pack_start( label )
        buttonLabelBox.show_all()
        
        return buttonLabelBox
    
    def _loadPreferences( self, *args ):


Generated by  Doxygen 1.6.0   Back to index