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

Class IhmPycalcar

source code

Class which admin the PYCALCAR HMI GTK

Class Hierarchy for IhmPycalcar
Class Hierarchy for IhmPycalcar

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, path, lang) source code
 
p_start_ihm(self)
Launch the gtk.main()
source code
 
p_gtk_win_main(self)
Create the main window of PYCALCAR
source code
 
p_gtk_win_question(self, widget, texte='')
Show a question window to the user with YES/NO buttons
source code
 
p_gtk_win_info(self, widget, texte='')
Create an info window.
source code
 
p_gtk_win_error(self, widget, texte='')
Create an error window with texte.
source code
 
p_gtk_win_about(self, widget)
Show About window dialog
source code
 
p_launch_notice(self, widget)
Display the Pycalcar Notice
source code
 
p_aboutwin_alim(self, listing)
Supply the about window with text
source code
 
p_message_alim(self, listing)
Supply the toolbar with text in the selected language
source code
 
p_toolbar_creation(self, widget)
Create toolbar
source code
 
p_toolbar_alim(self, listing)
Supply the toolbar with text in the selected language
source code
 
p_screen_calc_creation(self, widget)
Create calc_screen
source code
 
p_screen_calc_alim(self, listing)
Supply the calc screen with text in the selected language
source code
 
p_screen_calc_set_label(self)
Supply the labels "Units of money" for the calc screen
source code
 
p_screen_calc_config_unit(self)
Adapt the display to the number of unit, for the calc screen
source code
 
p_screen_calc_money_changed(self, widget)
Adapt calc screen to money choice
source code
 
p_screen_calc_op_changed(self, widget)
Adapt screen to operand choice
source code
 
p_screen_calc_next(self, widget)
Copy the result in line 1 of calc screen and Reset of line 2 and result line
source code
 
p_screen_calc_reset(self, widget)
Reset the entries of calc screen
source code
 
p_screen_calc_do_calc(self, widget)
Make the requested operation
source code
 
f_screen_calc_is_digit(self)
Verify if there is only digit in Entry
source code
 
p_screen_conv_creation(self, widget)
Create conv screen
source code
 
p_screen_conv_alim(self, listing)
Supply the conv screen with text in the selected language
source code
 
p_screen_conv_set_label0(self)
Supply the labels "Units of money 1" for the conv screen
source code
 
p_screen_conv_set_label1(self)
Supply the labels "Units of money 2" for the conv screen
source code
 
p_screen_conv_config_unit0(self)
Adapt the display to the number of unit of money 1, for the conv screen
source code
 
p_screen_conv_config_unit1(self)
Adapt the display to the number of unit of money 2, for the conv screen
source code
 
p_screen_conv_money0_changed(self, widget)
Adapt line 1 of conv screen to money 0 choice
source code
 
p_screen_conv_money1_changed(self, widget)
Adapt line 2 of conv screen to money 1 choice
source code
 
f_screen_conv_is_digit(self)
Verify if there is only digit in Entry
source code
 
p_screen_conv_exec(self, widget)
Allow to make convertion
source code
 
p_screen_param_creation(self, widget)
Create the param screen
source code
 
p_screen_param_alim(self, listing)
Supply the param screen with text in the selected language
source code
 
p_screen_param_newmoddel_money(self, widget)
Create the sub screen param/money
source code
 
p_screen_param_newmoddel_rate(self, widget)
Create the sub screen param/rate
source code
 
p_screen_param_money_reload(self, idx0)
Reload the money & rate data after insert/update/delete
source code
 
p_screen_param_money_ins(self, listing)
Allow to create a new money
source code
 
p_screen_param_money_upd(self, listing)
Allow to update money's data
source code
 
p_screen_param_money_del(self, widget)
Allow to delete money's data
source code
 
f_screen_param_money_get_data(self, widget)
Allow to get the data from money sub screen
source code
 
p_screen_param_money_cbox_changed(self, widget)
Called when the choice in combobox money change
source code
 
p_screen_param_rate_insupd(self, widget)
Allow to create or update a rate between moneys
source code
 
p_screen_param_rate_del(self, widget)
Allow to delete a rate
source code
 
p_screen_param_rate_cbox_changed(self, widget)
Called when a choice into rate combobox is modified
source code
 
p_screen_param_lang_changed(self, widget)
Called when the selected language for software is changed
source code
 
p_screens_switch(self, widget, screen='CALC')
Allow to switch between screens
source code
 
p_screens_calc_to_conv(self, widget)
Transfer the result of calc screen to line 1 of conv screen
source code
 
p_screens_conv_to_calc(self, widget)
Transfer the result of calc screen to line 1 of conv screen
source code
Method Details [hide private]

p_start_ihm(self)

source code 

Launch the gtk.main()

PARAMETERS

None

RETURNS

None

p_gtk_win_main(self)

source code 

Create the main window of PYCALCAR

PARAMETERS

None

RETURNS

None

p_gtk_win_question(self, widget, texte='')

source code 

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 

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 

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 

Show About window dialog

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_launch_notice(self, widget)

source code 

Display the Pycalcar Notice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_aboutwin_alim(self, listing)

source code 

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 

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 

Create toolbar

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_toolbar_alim(self, listing)

source code 

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 

Create calc_screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_alim(self, listing)

source code 

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 

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

PARAMETERS

None

RETURNS

None

p_screen_calc_config_unit(self)

source code 

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 

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 

Adapt screen to operand choice

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_calc_next(self, widget)

source code 

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 

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 

Make the requested operation

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

f_screen_calc_is_digit(self)

source code 

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 

Create conv screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_conv_alim(self, listing)

source code 

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 

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

PARAMETERS

None

RETURNS

None

p_screen_conv_set_label1(self)

source code 

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

PARAMETERS

None

RETURNS

None

p_screen_conv_config_unit0(self)

source code 

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 

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 

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 

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 

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 

Allow to make convertion

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_creation(self, widget)

source code 

Create the param screen

PARAMETERS

widget

The widget that call the procedure

RETURNS

None

p_screen_param_alim(self, listing)

source code 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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 

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

PARAMETERS

widget

The widget that call the procedure

RETURNS

None