def on_prop_button_clicked(self, button):
if self.m_t.q_status != self.QSTATUS_NEW:
return
g = self.m_t.guess_property(button.m_property_name,
button.m_property_value)
if g:
self.g_flashbar.flash(_("Correct"))
for btn in self.g_atable.get_children():
if not isinstance(btn, Gtk.Button):
continue
if btn.m_property_name == button.m_property_name \
and btn.m_property_value == button.m_property_value:
btn.get_children()[0].set_name("BoldText")
break
if g == self.m_t.ALL_CORRECT:
self.all_guessed_correct()
else:
self.g_flashbar.flash(_("Wrong"))
评论列表
文章目录