fitspy.app.toplevels module

Module dedicated to external widgets (Tkinter.Toplevel) creation

class fitspy.app.toplevels.TabView(root)

Bases: object

Class for spectra models fit results and 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

update_stats()

Update the statistics

delete()

Delete all the values contained in frames

show_hide()

Show/Hide the TopLevel frame

class fitspy.app.toplevels.ProgressBar(root, width=300, height=50)

Bases: object

Class to create a progress bar

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’

class fitspy.app.toplevels.AttractorsSettings(root)

Bases: Settings

Class for attractors parameters setting

class fitspy.app.toplevels.FitSettings(root)

Bases: Settings

Class for fitting parameters setting

frame_creation(bind_fun, excluded_keys=None)

Create frame with ‘params’ linked to ‘bind_fun’

class fitspy.app.toplevels.FigureSettings(root)

Bases: Settings

Class for figure parameters setting

frame_creation(bind_fun, excluded_keys=None)

Create frame with ‘params’ linked to ‘bind_fun’