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

def mouseTrap::dialogs::ClicksDialog::_newImageButton (   self,
  label,
  image 
) [private]

Creates an image button from an image file

Arguments:
- self: The main object pointer
- label: The buttons label
- image: The image path

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

Definition at line 376 of file dialogs.py.

00376                                              :
        """
        Creates an image button from an image file
        
        Arguments:
        - self: The main object pointer
        - label: The buttons label
        - image: The image path
        
        Returns ButtonLabelBox A gtk.HBox that contains the new image stock button.
        """
        evt = gtk.EventBox()

        buttonLabelBox = gtk.VBox()
        
        im = gtk.Image()
        im.set_from_file( image )
        im.show
        
        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()
        
        evt.add(buttonLabelBox)
        evt.modify_bg( gtk.STATE_NORMAL, gtk.gdk.color_parse(self.blue))
        evt.modify_bg( gtk.STATE_PRELIGHT, gtk.gdk.color_parse(self.green))
        return evt

        
class cairoTransGui( gtk.Window ):


Generated by  Doxygen 1.6.0   Back to index