def click_d100():
    result = multiDie(1, 3)
    messagebox.showinfo("Dice roll result", result)
Exemplo n.º 2
0
    def pressed1d6(self, event):
        """Roll one 6-sided die."""

        self.text_ctrl_1.SetValue("")  # clears any value in text box
        val = str(multiDie(1, 1))
        self.text_ctrl_1.SetValue(val)