pylottosimu.dialog package

Submodules

pylottosimu.dialog.lottosettingdialog module

class LottoSettingsDialog

Manage the GUI of setting dialog. Use lottosystem.ui.

class pylottosimu.dialog.lottosettingdialog.LottoSettingsDialog(sysdat, parent=None, testcase=None)[source]

Bases: PyQt5.QtWidgets.QDialog

The GUI of Settings.

Parameters:
  • sysdat (string) – Lotto setting
  • parent (string) – parent window
static get_values(sysdat, parent=None)[source]

static method to create the dialog and return (dialog.values, accepted)

Parameters:sysdat (string) – Lotto setting
Returns:dialog.values, accepted
Return type:array of int, bool
sep_addit_numbers()[source]

if the checkbox with separate additional numbers is active then enable to set the number

Returns:
set_values()[source]

Set Values

Returns:
values()[source]

Values

Returns:
with_addit()[source]

if the checkbox with additional numbers is active then enable to set the number

Returns:
pylottosimu.dialog.lottosettingdialog.qt_loadui(uifile)[source]

pylottosimu.dialog.show_drawing module

class DlgShowDrawing

show a Dialog with all the ball numbers from the draw and the bonus numbers.

class pylottosimu.dialog.show_drawing.DlgShowDrawing(ballnumbers, highestnumber, bonusnumbers=False, highestbonus=False)[source]

Bases: PyQt5.QtWidgets.QDialog

Show the numbers in a dialog box

Parameters:
  • ballnumbers (tuple of int) – the number of draw
  • highestnumber (int) – the number of the PushButtons
  • bonusnumbers (int) – the bonus numbers
  • highestbonus (int) – the highest bonus number (separate numbers)
Returns:

None

initbuttons()[source]

Array of buttons from 1 to the highest number and buttons for the additional numbers

Returns:None

Module contents

additional dialogs