Module pycalcar :: Class PycalcarSoftware
[hide private]
[frames] | no frames]

Class PycalcarSoftware

source code

:

Class Hierarchy for PycalcarSoftware
Class Hierarchy for PycalcarSoftware

DESCRIPTION

Main module of PYCALCAR Software

FUNCTIONS

p_init_operand

Initialize the operand object

f_init_bdd

Initialize the BDD object

f_init_ihm

Create an interface object for the pycalcar software

p_start_software

Launch the pycalcar software

f_operation_add

Allow to do add operation

f_operation_sub

Allow to do sub operation

f_operation_mult

Allow to do multiplication operation

f_operation_div

Allow to do division operation

f_money_read_rates

Allow to read the different internal rate for a money

f_money_read_rate

Allow to know the rate to convert the start to the aim money

p_money_create

Allow to create a new money into database

p_money_update

Allow to update money's data

p_money_delete

Allow to delete a money

f_money_reloaded

Allow to reload money's DATA afetr update/delete/insert

f_rate_read

Allow to read rate for conversion

p_rate_crupds

Allow to make creation & update for a rate

p_rate_delete

Allow to delete a rate

p_lang_change

Allow to change the software language

f_cbox_conv

Allow to read data to supply a combobox

f_conv_go

Make the conversion between two money

Instance Methods [hide private]
 
__init__(self) source code
 
p_init_operand(self)
:
source code
 
f_init_bdd(self)
:
source code
 
f_init_ihm(self, list_toolbar, list_calc, list_conv, list_param, list_money, list_lang, list_rate, list_about, list_message)
:
source code
 
p_start_software(self, interface)
:
source code
 
f_operation_add(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, unit20, unit21, unit22, unit23, unit24, unit25, unit26, unit27, unit28, unit29, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)
:
source code
 
f_operation_sub(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, unit20, unit21, unit22, unit23, unit24, unit25, unit26, unit27, unit28, unit29, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)
:
source code
 
f_operation_mult(self, unit20, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)
:
source code
 
f_operation_div(self, unit20, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)
:
source code
 
f_money_read_rates(self, name, year, nation)
:
source code
 
f_moneys_read_rate(self, name1, year1, nation1, name2, year2, nation2)
:
source code
 
p_money_create(self, name, year, nation, nb_unit, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
p_money_update(self, old_name, old_year, old_nation, name, year, nation, nb_unit, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)
:
source code
 
p_money_delete(self, name, year, nation)
:
source code
 
f_money_reloaded(self)
:
source code
 
f_rate_read(self, name1, year1, nation1, name2, year2, nation2)
:
source code
 
p_rate_crupds(self, name1, year1, nation1, name2, year2, nation2, rate)
:
source code
 
p_rate_delete(self, name1, year1, nation1, name2, year2, nation2)
:
source code
 
p_lang_change(self, language)
:
source code
 
f_cbox_conv(self, name, year, nation)
:
source code
 
f_conv_go(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate10, rate11, rate12, rate13, rate14, rate15, rate16, rate17, rate18, rate20, rate21, rate22, rate23, rate24, rate25, rate26, rate27, rate28, rate_conv)
:
source code
Method Details [hide private]

p_init_operand(self)

source code 

:

DESCRIPTION

Initialize the operand object

PARAMETERS

None

RETURNS

An operand object

f_init_bdd(self)

source code 

:

DESCRIPTION

Initialize the BDD object

PARAMETERS

None

RETURNS

bdd

A BDD object

list_toolbar

A list that conatins the text for the tooltips of toolbar

list_calc

A list that contains the text for the calc screen interface

list_conv

A list that contains the text for the conv screen interface

list_param

A list that contains the text for the param screen interface

list_about

A list that contains the text for the about window

list_money

A list that contains the different available money

list_lang

A list that contains the different available language

list_rate

A list that contains the different rate of a money

list_message

A list that contains the different message for the information windows

f_init_ihm(self, list_toolbar, list_calc, list_conv, list_param, list_money, list_lang, list_rate, list_about, list_message)

source code 

:

DESCRIPTION

Create an interface object for the pycalcar software

PARAMETERS

list_toolbar

A list that conatins the text for the tooltips of toolbar

list_calc

A list that contains the text for the calc screen interface

list_conv

A list that contains the text for the conv screen interface

list_param

A list that contains the text for the param screen interface

list_money

A list that contains the different available money

list_lang

A list that contains the different available language

list_rate

A list that contains the different rate between two money

list_about

A list that contains the different information for about window

list_message

A list that contains the different message for the information windows

RETURNS

An interface Object

p_start_software(self, interface)

source code 

:

DESCRIPTION

Launch the pycalcar software

PARAMETERS

interface

the interface object that allow to launch the software

RETURNS

None

f_operation_add(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, unit20, unit21, unit22, unit23, unit24, unit25, unit26, unit27, unit28, unit29, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)

source code 

:

DESCRIPTION

Allow to do add operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20 => u29

Second line of operation, in the different units of the money

rate0 => rate8

Rate between the different units of the money

RETURNS

The result of add operation

f_operation_sub(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, unit20, unit21, unit22, unit23, unit24, unit25, unit26, unit27, unit28, unit29, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)

source code 

:

DESCRIPTION

Allow to do sub operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20 => u29

Second line of operation, in the different units of the money

rate0 => rate8

Rate between the different units of the money

RETURNS

The result of sub operation

f_operation_mult(self, unit20, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)

source code 

:

DESCRIPTION

Allow to do multiplication operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20

The mult value

rate0 => rate8

Rate between the different units of the money

RETURNS

The result of multiplication operation

f_operation_div(self, unit20, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate0, rate1, rate2, rate3, rate4, rate5, rate6, rate7, rate8)

source code 

:

DESCRIPTION

Allow to do division operation

PARAMETERS

u10 => u19

First line of operation, in the different units of the money

u20

The div value

rate0 => rate8

Rate between the different units of the money

RETURNS

The result of division operation

f_money_read_rates(self, name, year, nation)

source code 

:

DESCRIPTION

Allow to read the different internal rate for a money

PARAMETERS

name

New name for the money

year

New year of creation for the money

nation

New nation for the money

RETURNS

A list that contains the different money and their informations

f_moneys_read_rate(self, name1, year1, nation1, name2, year2, nation2)

source code 

:

DESCRIPTION

Allow to know the rate to convert the start to the aim money

PARAMETERS

name1

The name of the start money

year1

The year of the start money

nation1

The nation of the start money

name2

The name of the end money

year2

The year of the end money

nation2

The nation of the end money

RETURNS

The rate to make the convertion

p_money_create(self, name, year, nation, nb_unit, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

DESCRIPTION

Allow to create a new money into database

PARAMETERS

name

New name for the money

year

New year of creation for the money

nation

New nation for the money

nb_unit

Number of units in the money

u0 => u9

Name of the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

none

p_money_update(self, old_name, old_year, old_nation, name, year, nation, nb_unit, u0, u1, u2, u3, u4, u5, u6, u7, u8, u9, tx0, tx1, tx2, tx3, tx4, tx5, tx6, tx7, tx8)

source code 

:

DESCRIPTION

Allow to update money's data

PARAMETERS

old_name

Old name of the money

old_year

Old year of creation of the money

old_nation

Old nation of the money

name

New name for the money

year

New year of creation for the money

nation

New nation for the money

nb_unit

Number of units in the money

u0 => u9

Name of the different units of the money

tx0 => tx8

Rate between the different units of the money

RETURNS

none

p_money_delete(self, name, year, nation)

source code 

:

DESCRIPTION

Allow to delete a money

PARAMETERS

name

New name for the money

year

New year of creation for the money

nation

New nation for the money

RETURNS

None

f_money_reloaded(self)

source code 

:

DESCRIPTION

Allow to reload money's DATA afetr update/delete/insert

PARAMETERS

None

RETURNS

Two list (money & rate) that contains updated data

f_rate_read(self, name1, year1, nation1, name2, year2, nation2)

source code 

:

DESCRIPTION

Allow to read rate for conversion

PARAMETERS

name1

The name of the start money

year1

The year of the start money

nation1

The nation of the start money

name2

The name of the end money

year2

The year of the end money

nation2

The nation of the end money

RETURNS

A rate for conversion between 2 moneys

p_rate_crupds(self, name1, year1, nation1, name2, year2, nation2, rate)

source code 

:

DESCRIPTION

Allow to make creation & update for a rate

PARAMETERS

name1

The name of the start money

year1

The year of the start money

nation1

The nation of the start money

name2

The name of the end money

year2

The year of the end money

nation2

The nation of the end money

rate

The rate for conversion

RETURNS

None

p_rate_delete(self, name1, year1, nation1, name2, year2, nation2)

source code 

:

DESCRIPTION

Allow to delete a rate

PARAMETERS

name1

The name of the start money

year1

The year of the start money

nation1

The nation of the start money

name2

The name of the end money

year2

The year of the end money

nation2

The nation of the end money

rate

The rate for conversion

RETURNS

None

p_lang_change(self, language)

source code 

:

DESCRIPTION

Allow to change the software language

PARAMETERS

language

The selected language

RETURNS

none

f_cbox_conv(self, name, year, nation)

source code 

:

DESCRIPTION

Allow to read data to supply a combobox

PARAMETERS

name

New name for the money

year

New year of creation for the money

nation

New nation for the money

RETURNS

A list that contains data to supply combobox

f_conv_go(self, unit10, unit11, unit12, unit13, unit14, unit15, unit16, unit17, unit18, unit19, rate10, rate11, rate12, rate13, rate14, rate15, rate16, rate17, rate18, rate20, rate21, rate22, rate23, rate24, rate25, rate26, rate27, rate28, rate_conv)

source code 

:

DESCRIPTION

Make the conversion between two money

PARAMETERS

unit10 => unit19

The values of the first money

rate0 => rate8

The rate betwwen different units of the start money

rate_conv

The rate of conversion between money

RETURNS

the different values of the converted money