Ficou legal!
=== modified file 'stoq/gui/stock/stock.py' --- stoq/gui/stock/stock.py 2009-07-27 18:19:18 +0000 +++ stoq/gui/stock/stock.py 2009-09-10 17:00:40 +0000
@@ -131,6 +126,30 @@ items.insert(0, [_('All branches'), None]) return items
+ def _setup_widgets(self): + space = gtk.EventBox() + space.show() + self.hbox7.pack_start(space) + + self.image = gtk.Image() + + button = gtk.Button() + button.set_size_request(74, 64) + button.set_image(self.image) + button.set_relief(gtk.RELIEF_NONE) + button.show() + button.connect('clicked', self._on_image_button__clicked) + self.hbox7.pack_start(button, False, False) + self.image_button = button + +
uma linha sobrando acima. Atualiza o nome hbox7 para algo melhor, tipo button_box.
« Back to merge proposal
Ficou legal!
=== modified file 'stoq/gui/ stock/stock. py' stock/stock. py 2009-07-27 18:19:18 +0000 stock/stock. py 2009-09-10 17:00:40 +0000
--- stoq/gui/
+++ stoq/gui/
@@ -131,6 +126,30 @@
items. insert( 0, [_('All branches'), None])
return items
+ def _setup_ widgets( self): pack_start( space) set_size_ request( 74, 64) set_image( self.image) set_relief( gtk.RELIEF_ NONE) connect( 'clicked' , self._on_ image_button_ _clicked) pack_start( button, False, False)
+ space = gtk.EventBox()
+ space.show()
+ self.hbox7.
+
+ self.image = gtk.Image()
+
+ button = gtk.Button()
+ button.
+ button.
+ button.
+ button.show()
+ button.
+ self.hbox7.
+ self.image_button = button
+
+
uma linha sobrando acima.
Atualiza o nome hbox7 para algo melhor, tipo button_box.