【发布时间】:2021-05-10 13:15:57
【问题描述】:
我想在按下Fl_Button 时调用一个函数。怎么样?
这是示例代码:
from fltk import *
win = Fl_Window(150, 200, 'Test')
def test():
print("Function Called") # I want this function to be called when press the btn
btn = Fl_Button(40, 120, 60, 30, 'Resault'); res_btn.box(FL_PLASTIC_UP_BOX)
win.show(sys.argv); Fl_run()
谢谢!
【问题讨论】:
-
如果你知道请帮忙。
标签: python user-interface fltk