pylottosimu package

Subpackages

Submodules

pylottosimu.lottosystem module

class pylottosimu.lottosystem.LottoSystemData[source]

Bases: object

loads predefined lottery systems. And read and write a json file of the data set.

Dataset:

  • name: name of the lottery system,

  • max_draw: highest number of draw

  • draw_numbers: number to pick

  • with_addit: with additional number

  • sep_addit_numbers: with separate additional number, the additional number are not in the same pot

  • addit_numbers: additional number to pick

  • max_addit: highest additional number in the separate pot

static fixdata()[source]

Data of predefined lottery system.

The following are predefined: Lotto Germany (pick 6 out of 49), Lotto Austria (pick 6 out of 45), EuroMillionen, Powerball Lottery US, Mega Millions, Hot Lotto Sizzler

If you miss your favorite lottery system than could you add here.

Returns:

data

projectpath()[source]

open in the home path and create a direction.

Returns:

path of the project

readfile()[source]

read lottosystems.json

Returns:

data

writetofile()[source]

write lottosystems.json

Returns:

none

pylottosimu.pylotto module

class LottoSimuDialog

Load the GUI and manage the signals for the program of the pyLottoSimu. Use the lottosimu_gui.ui

class drawlotto

simulate a lotto draw. draw the lotto numbers and give the draw text back

class pylottosimu.pylotto.DrawLotto(name='Lotto DE', max_draw=49, draw_numbers=6, with_addit=True, addit_numbers=1, sep_addit_numbers=True, max_addit=9, name_addition='Superzahl')[source]

Bases: QObject

simulate a lotto draw

Parameters:
  • name (string) – name of game

  • max_draw (int) – maximal draw numbers

  • draw_numbers (int) – the draw numbers

  • with_addit (bool) – with additional number

  • addit_numbers (int) – the additional numbers

  • sep_addit_numbers (bool) – separates additional numbers

  • max_addit (int) – maximal additional numbers

draw()[source]

draw of the lotto numbers

Returns:

none

picknumber(turn)[source]

pick of a lotto number

Returns:

pick

class pylottosimu.pylotto.LottoSimuDialog[source]

Bases: QMainWindow

The GUI and program of the pyLottoSimu.

actionLottoSim()[source]

Changing the layout for simulation or generation and change the visible of the buttons.

Returns:

none

cleanOutputText()[source]

Clean the output text

Returns:

none

draw_distribution(test=None)[source]
onBtnStart()[source]

Start simulation with the first drawing init timer with the valve from the Scrollbar the next drawing starts with the timer event.

Returns:

none

onClose()[source]

Close the GUI

Returns:

none

onDrawOverview()[source]

show dialog of the draw

Returns:

none

onInfo(test=None)[source]

Set the text for the info message box in html format

Returns:

none

onSystem()[source]

show dialog of the draw

Returns:

none

onTimer()[source]

Start time to show a number.

Returns:

none

static openWebsite()[source]

Open website

Returns:

none

randomNumbersGenerator()[source]

Show the output from the random number generator.

Returns:

none

showNextNumber()[source]

Simulation of the draw and show the next Number on the Screen.

Returns:

none

Module contents

Manage a Lotto simulation draw.