def mcq(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) if l <4: show_sorry_dialog() else: g.show_question_num_dialog() #g.set_up_mcq() #g.builder.get_object('window3').show() g.builder.get_object('window3').set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") gtk.main()
def flash(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) print l if l ==0: show_sorry_dialog() else: g.builder.get_object('window2').show() g.builder.get_object('window2').set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") #wordgroupz.win.window.hide() gtk.main()
def mcq(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) if l < 4: show_sorry_dialog() else: g.show_question_num_dialog() #g.set_up_mcq() #g.builder.get_object('window3').show() g.builder.get_object('window3').set_icon_from_file( "/usr/share/pixmaps/wordgroupz.png") gtk.main()
def flash(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) print l if l == 0: show_sorry_dialog() else: g.builder.get_object('window2').show() g.builder.get_object('window2').set_icon_from_file( "/usr/share/pixmaps/wordgroupz.png") #wordgroupz.win.window.hide() gtk.main()
window.add(vbox) event = gtk.EventBox() vbox.pack_start(event) event.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#444444")) label = gtk.Label('Not enough data!') event.add(label) label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white')) window.show_all() window.connect('destroy', gtk.main_quit) def mcq(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) if l <4: show_sorry_dialog() else: g.show_question_num_dialog() #g.set_up_mcq() #g.builder.get_object('window3').show() g.builder.get_object('window3').set_icon_from_file("/usr/share/pixmaps/wordgroupz.png") gtk.main() if __name__ == '__main__': db = wordgroupz.wordGroupzSql() g = games_GUI() #g.window.show() g.builder.get_object('window3').show() gtk.main()
event.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#444444")) label = gtk.Label('Not enough data!') event.add(label) label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('white')) window.show_all() window.connect('destroy', gtk.main_quit) def mcq(): global db db = wordgroupz.wordGroupzSql() g = games_GUI() l = len(g.get_accuracy_table()) if l < 4: show_sorry_dialog() else: g.show_question_num_dialog() #g.set_up_mcq() #g.builder.get_object('window3').show() g.builder.get_object('window3').set_icon_from_file( "/usr/share/pixmaps/wordgroupz.png") gtk.main() if __name__ == '__main__': db = wordgroupz.wordGroupzSql() g = games_GUI() #g.window.show() g.builder.get_object('window3').show() gtk.main()