Re: [Tutor] Times Tables Program that constantly tells you that you are wrong!

2018-08-17 Thread Alan Gauld via Tutor
On 17/08/18 03:19, Matthew Polack wrote: > def viewPercent(): > percentCalc = score/total*100 > rounded = round(percentCalc, 2) > percentViewLab["text"] = rounded Since you only want the rounded value for display this is usually achieved using string formatting: >>> s = "Here is a st

Re: [Tutor] Times Tables Program that constantly tells you that you are wrong!

2018-08-17 Thread Alan Gauld via Tutor
On 17/08/18 03:19, Matthew Polack wrote: > 1.) Centre feature > > When I use txt.insert I need to use the feature Peter found... > > center = txt.tag_config("center", justify="center") > txt.insert(0.0, result, "center") > > but in the Enter label section...I could just use it straight away..wit

Re: [Tutor] Recommended way for end users to run our Python programs?

2018-08-17 Thread Alan Gauld via Tutor
On 17/08/18 05:40, Matthew Polack wrote: > Does this always require Python being installed as a full language on the > end users computer? No. It does require the Python interpreter plus any modules you write or use(including any modules your modules use...) There are a few tools around that can

[Tutor] Recommended way for end users to run our Python programs?

2018-08-17 Thread Matthew Polack
Hi, We're enjoying learning Python in our school...but I have a question regarding the way the end users should ideally run the software. Does this always require Python being installed as a full language on the end users computer? ie. At the moment we install Python...add it to the path in Wind

Re: [Tutor] Times Tables Program that constantly tells you that you are wrong!

2018-08-17 Thread Matthew Polack
Thanks Alan and Peter, I've gone through and made a bunch of changes based on all your advice. Thank you...everything seems to be fully working and I think I have made the code more efficient using your advice...hope I got everything. (full code below) I've just added an example menu to highligh