pylottosimu package

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: PyQt5.QtCore.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: PyQt5.QtWidgets.QMainWindow

The GUI and program of the pyLottoSimu.

action_lottosim()[source]

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

Returns:none
onbtn_draw_overview()[source]

show dialog of the draw

Returns:none
onbtn_start()[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
onclean_output_text()[source]

Clean the output text

Returns:none
onclose()[source]

Close the GUI

Returns:none
oninfo()[source]

Set the text for the info message box in html format

Returns:none
onrandom_numbers_generator()[source]

Show the output from the random number generator.

Returns:none
onsystem()[source]

show dialog of the draw

Returns:none
ontimer()[source]

Start time to show a number.

Returns:none
static onwebsite()[source]

Open website

Returns:none
show_next_number()[source]

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

Returns:none
pylottosimu.pylotto.qt_loadui(uifile)[source]

load Qt ui file

Parameters:uifile
Returns:

Module contents

Manage a Lotto simulation draw.