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
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
Array of buttons from 1 to the highest number and buttons for the additional numbers
Returns: None
Module contents¶
additional dialogs