fitspy.app.toplevels module
Module dedicated to external widgets (Tkinter.Toplevel) creation
- class fitspy.app.toplevels.ResultView(root)
Bases:
object
Master class used by ParamsView and StatsView
- show_hide()
Show/Hide the TopLevel frame
- class fitspy.app.toplevels.ParamsView(root)
Bases:
ResultView
Class for models parameters displaying
- add_entry(arg, row, col, i, key, param)
Add Tk.Entry at (row, col) linked to params[i][key][arg]
- add_check_button(arg, row, col, i, key, param)
Add Tk.Checkbutton at (row, col) linked to params[i][key][arg]
- add_entry_peak_labels(row, col, i)
Add Tk.Entry at (row, col) linked to models_labels[i]
- add_combobox_peak_model(row, col, i, model)
Add Tk.Combobox at (row, col) linked to peak_models[i]
- add_combobox_bkg_model(row, col)
Add Tk.Combobox at (row, col) linked to the bkg_model
- label_has_changed(i)
Update the label related to the ith-model
- param_has_changed(i, key, arg)
Update the ‘key’-param ‘arg’-value related to the ith-model
- model_has_changed(i)
Update the model function related to the ith-model
- bkg_model_has_changed(_)
Update the ‘bkg_model’
- set_header()
Set the TabView header
- delete_models()
Delete selected (peak) models
- update()
Update the Tabview
- add_model(model, i, row, keys)
Add model in the Tabview
- delete()
Delete all the values contained in frames
- class fitspy.app.toplevels.StatsView(root)
Bases:
ResultView
Class for fit statistics displaying
- update()
Update the statistics
- delete()
Delete all the values contained in frames
- class fitspy.app.toplevels.Settings(root)
Bases:
object
Master class for parameters setting
- frame_creation(bind_fun, excluded_keys=None)
Create frame with ‘params’ linked to ‘bind_fun’
- update(x, y, bind_fun=None)
Display the Toplevel ‘frame’ on (x, y) position with interactive ‘params’ settings
- on_press(_)
Hide the Toplevel ‘frame’ if the mouse click is outside
- show_hide()
Show/Hide the TopLevel ‘frame’