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

Class IhmPycalcar

source code

:

Class Hierarchy for IhmPycalcar
Class Hierarchy for IhmPycalcar

DESCRIPTION

Admin the PYCALCAR HMI

FUNCTIONS

p_start_ihm

launch the gtk.main()

p_gtk_win_main

Create the main window of PYCALCAR

p_gtk_win_question

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

p_gtk_win_info

Create an info window. Wait ack to continue

p_gtk_win_error

Create an error window with texte. Wait ack to continue

p_gtk_win_about

Show About window dialog

p_aboutwin_alim

Supply the about window with text

p_message_alim

Supply the toolbar with text in the selected language

p_toolbar_creation

create toolbar

p_toolbar_alim

Supply the toolbar with text in the selected language

p_screen_calc_creation

Create calc_screen

p_screen_calc_alim

Supply the calc screen with text in the selected language

p_screen_calc_set_label

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

p_screen_calc_config_unit

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

p_screen_calc_money_changed

Adapt calc screen to money choice

p_screen_calc_op_changed

Adapt screen to operand choice

p_screen_calc_next

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

p_screen_calc_reset

Reset the entries of calc screen

p_screen_calc_do_calc

Make the requested operation

f_screen_calc_is_digit

Verify if there is only digit in Entry

p_screen__conv_creation

create conv screen

p_screen_conv_alim

Supply the conv screen with text in the selected language

p_screen_conv_set_label0

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

p_screen_conv_set_label1

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

p_screen_conv_config_unit0

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

p_screen_conv_config_unit1

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

p_screen_conv_money0_changed

Adapt line 1 of conv screen to money 0 choice

p_screen_conv_money1_changed

Adapt line 2 of conv screen to money 1 choice

f_screen_conv_is_digit

Verify if there is only digit in Entry

p_screen_conv_exec

Allow to make convertion

p_screen_param_creation

Create the param screen

p_screen_param_alim

Supply the param screen with text in the selected language

p_screen_param_newmoddel_money

Create the sub screen param/money

p_screen_pram_newmoddel_rate

Create the sub screen param/rate

p_screen_param_money_reload

Reload the money & rate data after insert/update/delete

p_screen_param_money_ins

Allow to create a new money

p_screen_param_money_upd

Allow to update money's data

p_screen_param_money_del

Allow to delete money's data

f_screen_param_money_get_data

Allow to get the data from money sub screen

p_screen_param_money_cbox_changed

Called when the choice in combobox money change

p_screen_param_rate_insupd

Allow to create or update a rate between moneys

p_screen_param_rate_del

Allow to delete a rate

p_screen_param_rate_cbox_changed

Called when a choice into rate combobox is modified

p_screen_param_lang_changed

Called when the selected language for software is changed

p_screens_switch

Allow to switch between screens

p_screens_calc_to_conv

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

p_screens_conv_to_calc

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

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, obj24, obj25) 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_message_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
 
f_screen_conv_is_digit(self)
:
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_reload(self, idx0)
:
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
 
f_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 (True or False) 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_message_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_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 0 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 1 choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

f_screen_conv_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_exec(self, widget)

source code 

:

DESCRIPTION

Allow to make convertion

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_creation(self, widget)

source code 

:

DESCRIPTION

Create the param screen

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_newmoddel_money(self, widget)

source code 

:

DESCRIPTION

Create the sub screen param/money

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_newmoddel_rate(self, widget)

source code 

:

DESCRIPTION

Create the sub screen param/rate

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_money_reload(self, idx0)

source code 

:

DESCRIPTION

Reload the money & rate data after insert/update/delete

PARAMETERS

idx0

The index used to select the good item into combobox

RETURNS

None

p_screen_param_money_ins(self, listing)

source code 

:

DESCRIPTION

Allow to create a new money

PARAMETERS

listing

List that contains the new money's data

RETURNS

None

p_screen_param_money_upd(self, listing)

source code 

:

DESCRIPTION

Allow to update money's data

PARAMETERS

listing

List that contains the new data

RETURNS

None

p_screen_param_money_del(self, widget)

source code 

:

DESCRIPTION

Allow to delete money's data

PARAMETERS

widget

the widget that call the procedure

RETURNS

None

f_screen_param_money_get_data(self, widget)

source code 

:

DESCRIPTION

Allow to get the data from money sub screen

PARAMETERS

widget

The widget that call the function

RETURNS

The money's data

Name, year, nation, u0=>u9, nb_unit, tx0=>tx8, rtr(True of False, trt without error)

p_screen_param_money_cbox_changed(self, widget)

source code 

:

DESCRIPTION

Called when the choice in combobox money change

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_rate_insupd(self, widget)

source code 

:

DESCRIPTION

Allow to create or update a rate between moneys

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_rate_del(self, widget)

source code 

:

DESCRIPTION

Allow to delete a rate

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_rate_cbox_changed(self, widget)

source code 

:

DESCRIPTION

Called when a choice into rate combobox is modified

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_lang_changed(self, widget)

source code 

:

DESCRIPTION

Called when the selected language for software is changed

PARAMETERS

widget

The widget that call the procedure

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