Hmm, I just tried it and the buttons were the same size for me. Maybe something like this will work better?
button = dialog.add_button(_("Remove Packages"), self.gtk.RESPONSE_YES) image = self.gtk.image_new_from_stock(self.gtk.STOCK_OK, self.gtk.ICON_SIZE_BUTTON) button.set_image(image)
I have no idea why the size would be different; I'd never heard of either method changing the button size.
Hmm, I just tried it and the buttons were the same size for me. Maybe something like this will work better?
button = dialog. add_button( _("Remove Packages"), self.gtk. RESPONSE_ YES) image_new_ from_stock( self.gtk. STOCK_OK, self.gtk. ICON_SIZE_ BUTTON) set_image( image)
image = self.gtk.
button.
I have no idea why the size would be different; I'd never heard of either method changing the button size.