So i have working python code... for python.
i have gone into application mode with construct to make the python code for buttons instead of having to type it out in my normal python exe i made.
I have entered the python into the Event sheet editor, and when i run the application is does not show any errors, however, thats all it does.
i need it to, when i click a button, show in a window what the python code would normally print out.
e.g; i click randomize tab and it runs a .py script and displays the randomized number in a message box or text on the application.
thanks in advance, i may have said the same things twice >.<
edit: here is the code, i want the result to be displayed in a window after clicking a button.
import random
cox=random.randint(0,8)
ranchar=['a','b','c','d','e','f','g','h','i']
print "\n"
print ranchar[cox]
p.s constructs python uses 0 indexing right?