pylottosimu Sammlung

Untermodule

pylottosimu.lottosystem Modul

class pylottosimu.lottosystem.LottoSystemData[Quellcode]

Bases: object

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

Datensatz

  • 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()[Quellcode]

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.

Rückgabe:Daten
projectpath()[Quellcode]

open in the home path and create a direction.

Rückgabe:path of the project
readfile()[Quellcode]

read lottosystems.json

Rückgabe:Daten
writetofile()[Quellcode]

write lottosystems.json

Rückgabe:keine

pylottosimu.pylotto Modul

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')[Quellcode]

Bases: PyQt5.QtCore.QObject

Simuliere eine Lottoziehung

Parameter:
  • name (string) – Name des Spiels
  • max_draw (int) – Anzahl der Nummern
  • draw_numbers (int) – Die Losnumern
  • with_addit (bool) – mit Zusatzzahlen
  • addit_numbers (int) – Die Zusatzzahlen
  • sep_addit_numbers (bool) – seperate Zusatzzahlen
  • max_addit (int) – Maximale Anzahl der Zusatzzahlen
draw()[Quellcode]

draw of the lotto numbers

Rückgabe:keine
picknumber(turn)[Quellcode]

pick of a lotto number

Rückgabe:pick
class pylottosimu.pylotto.LottoSimuDialog[Quellcode]

Bases: PyQt5.QtWidgets.QMainWindow

The GUI and program of the pyLottoSimu.

action_lottosim()[Quellcode]

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

Rückgabe:keine
onbtn_draw_overview()[Quellcode]

show dialog of the draw

Rückgabe:keine
onbtn_start()[Quellcode]

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

Rückgabe:keine
onclean_output_text()[Quellcode]

Clean the output text

Rückgabe:keine
onclose()[Quellcode]

GUI beenden

Rückgabe:keine
oninfo()[Quellcode]

Set the text for the info message box in html format

Rückgabe:keine
onrandom_numbers_generator()[Quellcode]

Show the output from the random number generator.

Rückgabe:keine
onsystem()[Quellcode]

show dialog of the draw

Rückgabe:keine
ontimer()[Quellcode]

Start time to show a number.

Rückgabe:keine
static onwebsite()[Quellcode]

webseite öffnen

Rückgabe:keine
show_next_number()[Quellcode]

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

Rückgabe:keine
pylottosimu.pylotto.qt_loadui(uifile)[Quellcode]

load Qt ui file

Parameter:uifile
Rückgabe:

Modulinhalte

Manage a Lotto simulation draw.