Module ihm_pycalcardebug :: Class IhmPycalcar
[hide private]
[frames] | no frames]

Class IhmPycalcar

source code

:

DESCRIPTION

Admin the PYCALCAR HMI

FUNCTIONS

alim_toolbar

Alim the toolbar with text from DataBase

alim_calc

Alim the calc screen with text from DataBase

alim_conv

Alim the conv screen with text from DataBase

alim_param

Alim the param screen with text from DataBase

Instance Methods [hide private]
 
__init__(self, obj01, obj02, obj03, obj04, obj05, obj06, obj07, obj08, obj09, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20, obj21, obj22, obj23) source code
 
p_start_ihm(self)
:
source code
 
p_gtk_win_main(self)
:
source code
 
p_gtk_win_question(self, widget, texte)
:
source code
 
p_gtk_win_info(self, widget, texte='')
:
source code
 
p_gtk_win_error(self, widget, texte='')
:
source code
 
p_gtk_win_about(self, widget)
:
source code
 
p_aboutwin_alim(self, listing)
:
source code
 
p_toolbar_creation(self, widget)
:
source code
 
p_toolbar_alim(self, listing)
:
source code
 
p_screen_calc_creation(self, widget)
:
source code
 
p_screen_calc_alim(self, listing)
:
source code
 
p_screen_calc_set_label(self)
:
source code
 
p_screen_calc_config_unit(self)
:
source code
 
p_screen_calc_money_changed(self, widget)
:
source code
 
p_screen_calc_op_changed(self, widget)
:
source code
 
p_screen_calc_next(self, widget)
:
source code
 
p_screen_calc_reset(self, widget)
:
source code
 
p_screen_calc_do_calc(self, widget)
:
source code
 
f_screen_calc_is_digit(self)
:
source code
 
p_screen_conv_creation(self, widget)
:
source code
 
p_screen_conv_alim(self, listing)
:
source code
 
p_screen_conv_set_label0(self)
:
source code
 
p_screen_conv_set_label1(self)
:
source code
 
p_screen_conv_config_unit0(self)
:
source code
 
p_screen_conv_config_unit1(self)
:
source code
 
p_screen_conv_money0_changed(self, widget)
:
source code
 
p_screen_conv_money1_changed(self, widget)
:
source code
 
p_screen_conv_exec(self, widget)
:
source code
 
p_screen_param_creation(self, widget) source code
 
p_screen_param_alim(self, listing)
:
source code
 
p_screen_param_newmoddel_money(self, widget) source code
 
p_screen_param_newmoddel_rate(self, widget) source code
 
p_screen_param_money_ins(self, listing)
:
source code
 
p_screen_param_money_upd(self, listing)
:
source code
 
p_screen_param_money_del(self, widget)
:
source code
 
p_screen_param_money_get_data(self, widget)
:
source code
 
p_screen_param_money_cbox_changed(self, widget)
:
source code
 
p_screen_param_rate_insupd(self, widget)
:
source code
 
p_screen_param_rate_del(self, widget)
:
source code
 
p_screen_param_rate_cbox_changed(self, widget)
:
source code
 
p_screen_param_lang_changed(self, widget)
:
source code
 
p_screens_switch(self, widget, screen='CALC')
:
source code
 
p_screens_calc_to_conv(self, widget)
:
source code
 
p_screens_conv_to_calc(self, widget)
:
source code
Method Details [hide private]

p_start_ihm(self)

source code 

:

DESCRIPTION

launch the gtk.main()

PARAMETERS

None

RETURNS

None

p_gtk_win_main(self)

source code 

:

DESCRIPTION

Create the main window of PYCALCAR

PARAMETERS

None

RETURNS

None

p_gtk_win_question(self, widget, texte)

source code 

:

DESCRIPTION

Show a question window to the user with YES/NO buttons

PARAMETERS

widget

The widget that call the procedure

texte

The text to display in the question window

RETURNS

The answer (Yes or No) of the user

p_gtk_win_info(self, widget, texte='')

source code 

:

DESCRIPTION

Create an info window. Wait ack to continue

PARAMETERS

widget

The widget that call the procedure

texte

The text to display in the question window

RETURNS

None

p_gtk_win_error(self, widget, texte='')

source code 

:

DESCRIPTION

Create an error window with texte. Wait ack to continue

PARAMETERS

widget

The widget that call the procedure

texte

The text to display in the question window

RETURNS

None

p_gtk_win_about(self, widget)

source code 

:

DESCRIPTION

Show About window dialog

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_aboutwin_alim(self, listing)

source code 

:

DESCRIPTION

Supply the about window with text

PARAMETERS

listing

List that contains the text for the About window

RETURNS

None

p_toolbar_creation(self, widget)

source code 

:

DESCRIPTION

create toolbar

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_toolbar_alim(self, listing)

source code 

:

DESCRIPTION

Supply the toolbar with text in the selected language

PARAMETERS

listing

List that contains the text for the toolbar

RETURNS

None

p_screen_calc_creation(self, widget)

source code 

:

DESCRIPTION

Create calc_screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_alim(self, listing)

source code 

:

DESCRIPTION

Supply the calc screen with text in the selected language

PARAMETERS

listing

List that contains the text for the calc screen

RETURNS

None

p_screen_calc_set_label(self)

source code 

:

DESCRIPTION

Supply the labels "Units of money" for the calc screen

PARAMETERS

None

RETURNS

None

p_screen_calc_config_unit(self)

source code 

:

DESCRIPTION

Adapt the display to the number of unit, for the calc screen

PARAMETERS

None

RETURNS

None

p_screen_calc_money_changed(self, widget)

source code 

:

DESCRIPTION

Adapt calc screen to money choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_op_changed(self, widget)

source code 

:

DESCRIPTION

Adapt screen to operand choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_next(self, widget)

source code 

:

DESCRIPTION

Copy the result in line 1 of calc screen and Reset of line 2 and result line

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_reset(self, widget)

source code 

:

DESCRIPTION

Reset the entries of calc screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_do_calc(self, widget)

source code 

:

DESCRIPTION

Make the requested operation

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

f_screen_calc_is_digit(self)

source code 

:

DESCRIPTION

Verify if there is only digit in Entry

PARAMETERS

None

RETURNS

The result of test: True or False

p_screen_conv_creation(self, widget)

source code 

:

DESCRIPTION

create conv screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_conv_alim(self, listing)

source code 

:

DESCRIPTION

Supply the conv screen with text in the selected language

PARAMETERS

listing

List that contains the text for the conv screen

RETURNS

None

p_screen_conv_set_label0(self)

source code 

:

DESCRIPTION

Supply the labels "Units of money 1" for the conv screen

PARAMETERS

None

RETURNS

None

p_screen_conv_set_label1(self)

source code 

:

DESCRIPTION

Supply the labels "Units of money 2" for the conv screen

PARAMETERS

None

RETURNS

None

p_screen_conv_config_unit0(self)

source code 

:

DESCRIPTION

Adapt the display to the number of unit of money 1, for the conv screen

PARAMETERS

None

RETURNS

None

p_screen_conv_config_unit1(self)

source code 

:

DESCRIPTION

Adapt the display to the number of unit of money 2, for the conv screen

PARAMETERS

None

RETURNS

None

p_screen_conv_money0_changed(self, widget)

source code 

:

DESCRIPTION

Adapt line 1 of conv screen to money 1 choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_conv_money1_changed(self, widget)

source code 

:

DESCRIPTION

Adapt line 2 of conv screen to money 2 choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_conv_exec(self, widget)

source code 

:

DESCRIPTION

Adapt line 2 of conv screen to money 2 choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_alim(self, listing)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_money_ins(self, listing)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_money_upd(self, listing)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_money_del(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_money_get_data(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_money_cbox_changed(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_rate_insupd(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_rate_del(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_rate_cbox_changed(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screen_param_lang_changed(self, widget)

source code 

:

DESCRIPTION

Supply the param screen with text in the selected language

PARAMETERS

listing

List that contains the text for the param screen

RETURNS

None

p_screens_switch(self, widget, screen='CALC')

source code 

:

DESCRIPTION

Allow to switch between screens

PARAMETERS

widget

The widget that call the procedure

screen

The screen to show: 'CALC', 'CONV', 'PARAM'

RETURNS

None

p_screens_calc_to_conv(self, widget)

source code 

:

DESCRIPTION

Transfer the result of calc screen to line 1 of conv screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screens_conv_to_calc(self, widget)

source code 

:

DESCRIPTION

Transfer the result of calc screen to line 1 of conv screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None