Now want to set the timer automatically refresh interface, but the timer function name has been written is wrong,
Want to call draw_line function, the timer? What place should write, who taught,
The code is as follows:
The class Ui_MainWindow_pro (object) :
Def setupUi (self, the MainWindow) :
Initial setup code # interface
The class mw_pro (QMainWindow Ui_MainWindow_pro) :
Def __init__ (self, parent=None) :
Super (mw_pro, self) __init__ (parent)
Pass
Def fit_curve (self) :
Self. Label_id_V. Text ()
Def draw_line (self) :
Self. Fit_curve ()
The timer=threading. The timer (10?)
CodePudding user response:
Instantiate the class and they belong to. Kind of subordinate function method?CodePudding user response: