?? mathflash-create-short-lines.py
字號(hào):
#!/usr/bin/env python #--------------------------------------------# MathFlash.py# Dave Reed# 02/28/2004#--------------------------------------------import sysfrom GladeWindow import *#--------------------------------------------class MathFlash(GladeWindow): #---------------------------------------- def __init__(self): ''' ''' self.init() #---------------------------------------- def init(self): filename = 'mathflash.glade' widget_list = [ 'window1', 'plus_check', 'minus_check', 'multiply_check', 'divide_check', 'digits_spin', 'operators_spin', 'correct_entry', 'wrong_entry', 'pct_entry', 'problem_entry', 'answer_entry', 'submit_button', 'reset_button', 'exit_button', 'new_button', 'result_entry', ] handlers = [ 'on_operator_check_toggled', 'on_submit_button_clicked', 'on_reset_button_clicked', 'on_exit_button_clicked', 'on_new_button_clicked', ] top_window = 'window1' GladeWindow.__init__(self, filename, top_window, widget_list, handlers) #---------------------------------------- def on_operator_check_toggled(self, *args): pass #---------------------------------------- def on_submit_button_clicked(self, *args): pass #---------------------------------------- def on_reset_button_clicked(self, *args): pass #---------------------------------------- def on_exit_button_clicked(self, *args): pass #---------------------------------------- def on_new_button_clicked(self, *args): pass#----------------------------------------def main(argv): w = MathFlash() w.show() gtk.main()#----------------------------------------if __name__ == '__main__': main(sys.argv)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -