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
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
-
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_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
-
Module contents¶
Manage a Lotto simulation draw.