示例#1
0
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()
示例#2
0
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()
示例#3
0
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()
示例#4
0
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()
示例#5
0
    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()
示例#6
0
    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()