@mikael will do look into it thanks
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello ā I'm @olemoritz on Twitter.
Posts made by pelowtown24
-
RE: Need help with buttons
@cvp one per each one which is 4 of them. Anything will help
-
Need help with buttons
Im trying to create buttons so this action can be pass after. Iām new at this sorry to a pain. Here is my scrip without the buttons:
import random def workerFunction(): while True: try: x=input() except EOFError: pass if x.lower().startswith('q'): break elif x == '1': print( 'Megabucks',factory.factoryLogic ( 1, 46, 6 ) ) elif x == '2': print( 'Lucky For Life',factory.factoryLogic (1, 48, 5 ),factory.factoryLogic( 1, 18, 1 ) ) elif x == '3': print( 'Powerball',factory.factoryLogic (1, 69, 5 ),factory.factoryLogic( 1, 26, 1 ) ) elif x == '4': print( 'Mega Millions',factory.factoryLogic (1, 70, 5 ),factory.factoryLogic( 1, 25, 1 ) ) class factory: def __init__( self ): self.a = 0 def factoryLogic( startPosi, endPosi, interateNumber ): a = random.sample( range( startPosi, endPosi+1 ), interateNumber ) a.sort() return a if __name__ == '__main__': workerFunction() ```