ServerPortfolio
2.0
Python parsers and server
|
GUI interface to validate the update and saving of data. More...
Public Member Functions | |
def | __init__ |
Constructor. More... | |
def | create_widgets |
Create the main window with the data from dict_input. More... | |
def | valid |
Check all radio buttons have been selected and update repl_add entry with _var_radiob. More... | |
def | create_one_input_xml |
Fill the frame specific to xml data: Info / Fundamental. More... | |
def | create_one_input_csv |
Fill the frame for list_csv : HistPrice Last version, group similar entries. More... | |
def | create_title |
Label with stock symbol. More... | |
def | create_button_valid |
Create Valid and Quit buttons at the bottom of the main window. More... | |
def | popupmsg |
Message indicating that some entries have not been validated. More... | |
def | quit_app |
def | __init__ |
def | createWidgets |
def | valid |
Check Validation is valid (all radiobuttons selected) More... | |
def | create_one_input_xml |
def | popupmsg |
def | __init__ |
def | createWidgets |
def | valid |
Check Validation is valid (all radiobuttons selected) More... | |
def | create_one_input_xml |
def | popupmsg |
Public Attributes | |
action_frame | |
dict_input | |
dict_choice | |
validButton | |
quitButton | |
Private Attributes | |
_logger_ | |
_dict_input | |
_var_radiob | |
store in dictionary all IntVar associated to radio buttons. More... | |
GUI interface to validate the update and saving of data.
Small GUI to validate the update of data.
It is used during the post-processing of the update of stock (see Stocks, ValidStockUpdate).
The user accepts or rejects the values of the last retrieved data by the parsers.
Definition at line 82 of file Validation.py.
def serverportfolio.Validation.ValidationTkinter.__init__ | ( | self, | |
symbol, | |||
dict_input, | |||
master = None |
|||
) |
Constructor.
symbol | of the stock |
dict_input | dict_interactive, used as input and output |
master | instance of tk.Tk(), created by default |
Definition at line 88 of file Validation.py.
Referenced by serverportfolio.Validation.ValidationTkinter.__init__().
def serverportfolio.Validation.ValidationTkinter.__init__ | ( | self, | |
dict_input, | |||
master = None |
|||
) |
Definition at line 22 of file Validation.v1.py.
References serverportfolio.Validation.ValidationTkinter.__init__().
def serverportfolio.Validation.ValidationTkinter.__init__ | ( | self, | |
dict_input, | |||
master = None |
|||
) |
Definition at line 22 of file Validation.v2.py.
References serverportfolio.Validation.ValidationTkinter.__init__(), serverportfolio.Validation.ValidationTkinter.createWidgets(), and serverportfolio.Validation.ValidationTkinter.dict_input.
def serverportfolio.Validation.ValidationTkinter.create_button_valid | ( | self | ) |
Create Valid and Quit buttons at the bottom of the main window.
Common to all actions
Definition at line 303 of file Validation.py.
References serverportfolio.Validation.ValidationTkinter.quit_app(), and serverportfolio.Validation.ValidationTkinter.valid().
def serverportfolio.Validation.ValidationTkinter.create_one_input_csv | ( | self, | |
i, | |||
action_frame, | |||
action, | |||
values, | |||
state | |||
) |
Fill the frame for list_csv : HistPrice Last version, group similar entries.
i | row_number |
action_frame | tk.Frame |
action | EAction.name |
values | value of labframe |
state | initial value of repl_add |
Definition at line 257 of file Validation.py.
References serverportfolio.Validation.ValidationTkinter._var_radiob.
Referenced by serverportfolio.Validation.ValidationTkHP.createWidgets().
def serverportfolio.Validation.ValidationTkinter.create_one_input_xml | ( | self, | |
i, | |||
labframe, | |||
action, | |||
name, | |||
old_value, | |||
new_value, | |||
state | |||
) |
Definition at line 117 of file Validation.v1.py.
References serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), and serverportfolio.Validation.ValidationTkinter.dict_choice.
def serverportfolio.Validation.ValidationTkinter.create_one_input_xml | ( | self, | |
i, | |||
labframe, | |||
action, | |||
name, | |||
old_value, | |||
new_value, | |||
state | |||
) |
Definition at line 117 of file Validation.v2.py.
References serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), and serverportfolio.Validation.ValidationTkinter.dict_choice.
def serverportfolio.Validation.ValidationTkinter.create_one_input_xml | ( | self, | |
i, | |||
action_frame, | |||
action, | |||
key_value, | |||
values, | |||
state | |||
) |
Fill the frame specific to xml data: Info / Fundamental.
i | row_number |
action_frame | container Frame |
action | EAction.name |
key_value | string key of the data |
values | associated |
state | initial value of repl_add |
Definition at line 234 of file Validation.py.
References serverportfolio.Validation.ValidationTkinter._var_radiob.
Referenced by serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), and serverportfolio.Validation.ValidationTkinter.createWidgets().
def serverportfolio.Validation.ValidationTkinter.create_title | ( | self, | |
title | |||
) |
def serverportfolio.Validation.ValidationTkinter.create_widgets | ( | self | ) |
Create the main window with the data from dict_input.
Definition at line 139 of file Validation.py.
References serverportfolio.Validation.ValidationTkinter._var_radiob.
def serverportfolio.Validation.ValidationTkinter.createWidgets | ( | self | ) |
Definition at line 33 of file Validation.v1.py.
Referenced by serverportfolio.Validation.ValidationTkinter.__init__(), serverportfolio.Validation.ValidationTkHP.__init__(), and serverportfolio.Validation.ValidationTkinter.createWidgets().
def serverportfolio.Validation.ValidationTkinter.createWidgets | ( | self | ) |
Definition at line 33 of file Validation.v2.py.
References serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), serverportfolio.Validation.ValidationTkinter.createWidgets(), serverportfolio.Validation.ValidationTkinter.dict_choice, serverportfolio.Validation.ValidationTkinter.quitButton, serverportfolio.Validation.ValidationTkinter.valid(), and serverportfolio.Validation.ValidationTkinter.validButton.
def serverportfolio.Validation.ValidationTkinter.popupmsg | ( | self, | |
msg | |||
) |
Definition at line 137 of file Validation.v1.py.
References serverportfolio.Validation.ValidationTkinter.popupmsg().
def serverportfolio.Validation.ValidationTkinter.popupmsg | ( | self, | |
msg | |||
) |
Definition at line 137 of file Validation.v2.py.
References serverportfolio.Validation.ValidationTkinter.popupmsg().
def serverportfolio.Validation.ValidationTkinter.popupmsg | ( | self, | |
msg | |||
) |
Message indicating that some entries have not been validated.
msg string to print
Definition at line 312 of file Validation.py.
Referenced by serverportfolio.Validation.ValidationTkinter.popupmsg(), and serverportfolio.Validation.ValidationTkinter.valid().
def serverportfolio.Validation.ValidationTkinter.quit_app | ( | self | ) |
Definition at line 315 of file Validation.py.
Referenced by serverportfolio.Validation.ValidationTkinter.create_button_valid(), and serverportfolio.Validation.ValidationTkinter.valid().
def serverportfolio.Validation.ValidationTkinter.valid | ( | self | ) |
Check Validation is valid (all radiobuttons selected)
Definition at line 90 of file Validation.v1.py.
References serverportfolio.Validation.ValidationTkinter.dict_choice, serverportfolio.Validation.ValidationTkinter.dict_input, serverportfolio.Validation.ValidationTkinter.popupmsg(), and serverportfolio.Validation.ValidationTkinter.valid().
Referenced by serverportfolio.Validation.ValidationTkHP.createWidgets().
def serverportfolio.Validation.ValidationTkinter.valid | ( | self | ) |
Check Validation is valid (all radiobuttons selected)
Definition at line 90 of file Validation.v2.py.
References serverportfolio.Validation.ValidationTkinter.dict_choice, serverportfolio.Validation.ValidationTkinter.dict_input, serverportfolio.Validation.ValidationTkinter.popupmsg(), and serverportfolio.Validation.ValidationTkinter.valid().
def serverportfolio.Validation.ValidationTkinter.valid | ( | self | ) |
Check all radio buttons have been selected and update repl_add entry with _var_radiob.
Method working for xml and csv data
Definition at line 206 of file Validation.py.
References serverportfolio.Validation.ValidationTkinter._dict_input, serverportfolio.Validation.ValidationTkinter._var_radiob, serverportfolio.Validation.ValidationTkinter.popupmsg(), and serverportfolio.Validation.ValidationTkinter.quit_app().
Referenced by serverportfolio.Validation.ValidationTkinter.create_button_valid(), serverportfolio.Validation.ValidationTkinter.createWidgets(), serverportfolio.Validation.ValidationTkHP.createWidgets(), and serverportfolio.Validation.ValidationTkinter.valid().
|
private |
Definition at line 94 of file Validation.py.
Referenced by serverportfolio.Validation.ValidationTkinter.valid().
|
private |
Definition at line 90 of file Validation.py.
|
private |
store in dictionary all IntVar associated to radio buttons.
Dictionary with same action/key than dict_input.
Definition at line 97 of file Validation.py.
Referenced by serverportfolio.Validation.ValidationTkinter.create_one_input_csv(), serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), serverportfolio.Validation.ValidationTkinter.create_widgets(), and serverportfolio.Validation.ValidationTkinter.valid().
serverportfolio.Validation.ValidationTkinter.action_frame |
Definition at line 144 of file Validation.py.
serverportfolio.Validation.ValidationTkinter.dict_choice |
Definition at line 45 of file Validation.v1.py.
Referenced by serverportfolio.Validation.ValidationTkHP.create_one_input_csv(), serverportfolio.Validation.ValidationTkinter.create_one_input_xml(), serverportfolio.Validation.ValidationTkinter.createWidgets(), serverportfolio.Validation.ValidationTkHP.createWidgets(), serverportfolio.Validation.ValidationTkinter.valid(), and serverportfolio.Validation.ValidationTkHP.valid().
serverportfolio.Validation.ValidationTkinter.dict_input |
serverportfolio.Validation.ValidationTkinter.quitButton |
Definition at line 84 of file Validation.v1.py.
Referenced by serverportfolio.Validation.ValidationTkinter.createWidgets(), and serverportfolio.Validation.ValidationTkHP.createWidgets().
serverportfolio.Validation.ValidationTkinter.validButton |
Definition at line 81 of file Validation.v1.py.
Referenced by serverportfolio.Validation.ValidationTkinter.createWidgets(), and serverportfolio.Validation.ValidationTkHP.createWidgets().