update status icon with sketch solve status
This commit is contained in:
parent
f15c2dfd79
commit
7afe81f775
@ -44,7 +44,7 @@ class Window:
|
|||||||
|
|
||||||
self.status_lbl = gtk.Label()
|
self.status_lbl = gtk.Label()
|
||||||
self.status_lbl.set_alignment(0.0, 0.5)
|
self.status_lbl.set_alignment(0.0, 0.5)
|
||||||
self.sketch_status_icon = gtk.Label()
|
self.sketch_status_icon = gtk.Image()
|
||||||
self.sketch_status_text = gtk.Label()
|
self.sketch_status_text = gtk.Label()
|
||||||
self.statusbar = gtk.HBox()
|
self.statusbar = gtk.HBox()
|
||||||
self.statusbar.pack_start(self.status_lbl, expand = True)
|
self.statusbar.pack_start(self.status_lbl, expand = True)
|
||||||
@ -95,4 +95,7 @@ class Window:
|
|||||||
raise ValueError('Unknown mode')
|
raise ValueError('Unknown mode')
|
||||||
|
|
||||||
def update_sketch_status(self, valid, text):
|
def update_sketch_status(self, valid, text):
|
||||||
|
stock_name = gtk.STOCK_YES if valid else gtk.STOCK_NO
|
||||||
|
size = gtk.ICON_SIZE_SMALL_TOOLBAR
|
||||||
|
self.sketch_status_icon.set_from_stock(stock_name, size)
|
||||||
self.sketch_status_text.set_text(text)
|
self.sketch_status_text.set_text(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user