ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
serverportfolio.Validation.ValidationTkinter Class Reference

GUI interface to validate the update and saving of data. More...

Inheritance diagram for serverportfolio.Validation.ValidationTkinter:
Inheritance graph
[legend]
Collaboration diagram for serverportfolio.Validation.ValidationTkinter:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Note
It can be used in a threaded environment with the use of ManagerTk.
Modify Stock._dict_interactive, used as input and output

Definition at line 82 of file Validation.py.

Constructor & Destructor Documentation

def serverportfolio.Validation.ValidationTkinter.__init__ (   self,
  symbol,
  dict_input,
  master = None 
)

Constructor.

Parameters
symbolof the stock
dict_inputdict_interactive, used as input and output
masterinstance of tk.Tk(), created by default

Definition at line 88 of file Validation.py.

Referenced by serverportfolio.Validation.ValidationTkinter.__init__().

Here is the caller graph for this function:

def serverportfolio.Validation.ValidationTkinter.__init__ (   self,
  dict_input,
  master = None 
)

Definition at line 22 of file Validation.v1.py.

References serverportfolio.Validation.ValidationTkinter.__init__().

Here is the call graph for this function:

def serverportfolio.Validation.ValidationTkinter.__init__ (   self,
  dict_input,
  master = None 
)

Member Function Documentation

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().

Here is the call graph for this function:

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.

Parameters
irow_number
action_frametk.Frame
actionEAction.name
valuesvalue of labframe
stateinitial value of repl_add

Definition at line 257 of file Validation.py.

References serverportfolio.Validation.ValidationTkinter._var_radiob.

Referenced by serverportfolio.Validation.ValidationTkHP.createWidgets().

Here is the caller graph for this function:

def serverportfolio.Validation.ValidationTkinter.create_one_input_xml (   self,
  i,
  labframe,
  action,
  name,
  old_value,
  new_value,
  state 
)
def serverportfolio.Validation.ValidationTkinter.create_one_input_xml (   self,
  i,
  labframe,
  action,
  name,
  old_value,
  new_value,
  state 
)
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.

Parameters
irow_number
action_framecontainer Frame
actionEAction.name
key_valuestring key of the data
valuesassociated
stateinitial 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().

Here is the caller graph for this function:

def serverportfolio.Validation.ValidationTkinter.create_title (   self,
  title 
)

Label with stock symbol.

Parameters
titlestring

Definition at line 298 of file Validation.py.

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)
def serverportfolio.Validation.ValidationTkinter.createWidgets (   self)
def serverportfolio.Validation.ValidationTkinter.popupmsg (   self,
  msg 
)

Definition at line 137 of file Validation.v1.py.

References serverportfolio.Validation.ValidationTkinter.popupmsg().

Here is the call graph for this function:

def serverportfolio.Validation.ValidationTkinter.popupmsg (   self,
  msg 
)

Definition at line 137 of file Validation.v2.py.

References serverportfolio.Validation.ValidationTkinter.popupmsg().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

def serverportfolio.Validation.ValidationTkinter.valid (   self)
def serverportfolio.Validation.ValidationTkinter.valid (   self)
def serverportfolio.Validation.ValidationTkinter.valid (   self)

Member Data Documentation

serverportfolio.Validation.ValidationTkinter._dict_input
private

Definition at line 94 of file Validation.py.

Referenced by serverportfolio.Validation.ValidationTkinter.valid().

serverportfolio.Validation.ValidationTkinter._logger_
private

Definition at line 90 of file Validation.py.

serverportfolio.Validation.ValidationTkinter._var_radiob
private
serverportfolio.Validation.ValidationTkinter.action_frame

Definition at line 144 of file Validation.py.

serverportfolio.Validation.ValidationTkinter.dict_choice
serverportfolio.Validation.ValidationTkinter.dict_input
serverportfolio.Validation.ValidationTkinter.quitButton
serverportfolio.Validation.ValidationTkinter.validButton

The documentation for this class was generated from the following files: