[Tutor] What is this code doing? What is it?

2019-05-12 Thread Matthew Polack
We're beginners trying to learn Python and have this sample code: https://github.com/PySimpleGUI/PySimpleGUI/blob/master/ProgrammingClassExamples/Win10%20versions/2a.%20PSG%20(checkbox%20and%20radiobuttons)%20-%20Copy.py There is a section of code that has this line:: result = str(' Cost: ' +

[Tutor] What does 'Bind Return Key' do?

2019-04-29 Thread Matthew Polack
Hi, We're learning Python with PySimpleGUi and have used this example program... https://github.com/PySimpleGUI/PySimpleGUI/blob/master/ProgrammingClassExamples/Win10%20versions/1d%20PSG%20(named%20input%20keys%20and%20catch%20errors).py There is a mystery command that says:

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-02-21 Thread Matthew Polack
. The pleasing thing is how keen the students are to keep learning and asking questions Thanks again for all your support and ideas! Matthew Polack On Tue, Feb 5, 2019 at 3:05 PM David wrote: > On Tue, 22 Jan 2019 at 20:30, Matthew Polack > wrote: > > > > Hi All, > > > &g

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-02-06 Thread Matthew Polack
Thanks Alan, David and Mike, Really appreciate those thoughts and ideas suggested.. I will check out the full video David...but the part I've looked at has some great food for thought..is extremely relevant.This quote from the description is very true: "showing them how to copy-paste a few

Re: [Tutor] Recommended Resurce or strategy for beginning students

2019-02-04 Thread Matthew Polack
ul. Thanks. Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822 Horsham Victoria 3402 p. 03 5382 2529 m. 0402456854 e. matthew.pol...@htlc.vic.edu.au w. www.htlc.vic.edu.au On Wed, Jan 23, 2019 at 1:21 PM Sean Murphy wrote: > I like this concept. The on

[Tutor] Recommended Resurce or strategy for beginning students

2019-01-22 Thread Matthew Polack
using PySimple GUi..eg. Some quiz games etc. (there are some great examples on Github by another teacher and also the author Mike of PySimpleGUI. 3.) Possibly explore robotics. Can anyone make any recommendations on either resources or teaching/learning strategy/curriculum. Thank you, Matt Matthew

Re: [Tutor] Any 'graphical' ways of learning Python

2018-12-11 Thread Matthew Polack
enjoy looking through all the various links and ideas as I prepare the coding course for 2019. Will use them, to upskill myself too. Thanks so much! - Matthew Polack On Fri, Dec 7, 2018 at 6:05 AM Mike Barnett wrote: > Oh, one more thing on this topic... there are tutorial videos availa

[Tutor] Any 'graphical' ways of learning Python

2018-12-05 Thread Matthew Polack
based console programming? Thanks for any suggestions. Matthew Polack | Teacher -- **Disclaimer: *Whilst every attempt has been made to ensure that material contained in this email is free from computer viruses or other defects, the attached files are provided, and may only be used

[Tutor] A Python program to Summarise weather results?

2018-08-30 Thread Matthew Polack
this into years eg. Total rainfall of 1863, 1864 all the way through to 2018. Would Python be able to do this using the csv file? Thanks, Matt Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822 Horsham Victoria 3402 p. 03 5382 2529 m. 0402456854 e. matthew.pol

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

2018-08-24 Thread Matthew Polack
.. I'll probably stick with the traditional %. method too for a while because that is now what I understand. thanks...will keep trying things..and then also reading through the various docs provided...+ your emails. Thank you. Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive

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

2018-08-23 Thread Matthew Polack
''' ''' Instructions given: >>> s = "Here is a string with a rounded float: %.2f" % 42.3456789 >>> s 'Here is a string with a rounded float: 42.35' ''' Thanks for any clues. - Matt Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822

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

2018-08-23 Thread Matthew Polack
text=mistakes, fg="black", bg="grey", font=("arial", 20, "bold")) mistakesViewLab.grid(row=20, column=1, sticky=W) percentlab = Label(root, text="Percentage", bg="aqua", fg="white", font=("arial", 20, "bold")) p

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

2018-08-17 Thread Matthew Polack
.exe file to install? Just trying to get my head around the 'end game' of all this? Thanks, Matt If we make a python.py program and want people on Windows to run it...does this mean there must be Python installed on that computer in order to run it. Matthew Polack | Teacher [image

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

2018-08-17 Thread Matthew Polack
grabs the starting score from the declarations at the top. eg. score = 0 scorelab = Label(root, text="Score", bg="green", fg="white", font=("arial", 20, "bold")) scorelab.grid(row=18, column=0, sticky=E) scoreViewLab = Label(root, text=score, fg="black",

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

2018-08-16 Thread Matthew Polack
, font=("arial", 20, "bold")) totalViewLab.grid(row=19, column=1, sticky=W) def viewWrong(): global wrong global mistakes #scoreViewLab=Label(root, scoreView, textvariable=scoreView) wrongViewLab = Label(root, text=mistakes, fg="black", bg="grey", font=("

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

2018-08-15 Thread Matthew Polack
more than when I started 4 weeks ago! Thank you so much for your support and time replyingit is very encouraging. - Matthew Polack Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822 Horsham Victoria 3402 p. 03 5382 2529 m. 0402456854 e. matthew.pol

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

2018-08-15 Thread Matthew Polack
;1" *Question 2:* Is there a way to centre text within the text frame? I can change the font and size...but don't know how to centre it? txt = Text(root, width=35, height=10, wrap=WORD, font=("arial", 24, "bold")) txt.grid(row=12, columnspan=2, sticky=EW ) *Quest

Re: [Tutor] Syntax question

2018-08-14 Thread Matthew Polack
Just a quick 'Thank you' for this advice the other day Alan and Abdur-Rahmaan. Greatly appreciated as we work together with our students here. Thank you. Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822 Horsham Victoria 3402 p. 03 5382 2529 m. 0402456854 e

[Tutor] Syntax question

2018-08-09 Thread Matthew Polack
es?")) print("This is") print(price * amount, "Metric Tonnes") wheatbutton = Button(root, text="Wheat", fg="black", bg="yellow") wheatbutton.configure(croptype="wheat", command=wheatwords) Matthew Polack | Teacher [image: Emailb

Re: [Tutor] How to add an Image in Grid mode with Python and Tkinter?

2018-07-31 Thread Matthew Polack
Thanks Alan and Peter for the comprehensive replies...that gives me some good 'homework' to do and clarity on how to go about it. Much appreciatedwill spend some time now getting my head around it. Thanks so much. - Matthew Polack Matthew Polack | Teacher [image: Emailbanner3.png

[Tutor] How to add an Image in Grid mode with Python and Tkinter?

2018-07-30 Thread Matthew Polack
Hi, Steadily trying to learn Python and Tkinter here with our students... Am working on a simple 'Price of Cereal Crop' calculatorand have made a start with the code below... I'm trying to simply add an image to our program to make the GUI more interesting...but most of the tutorials

[Tutor] Stuck on some basics re floats

2018-07-18 Thread Matthew Polack
= num1 * 2.54 TypeError: can't multiply sequence by non-int of type 'float' Matthew Polack | Teacher [image: Emailbanner3.png] Trinity Drive | PO Box 822 Horsham Victoria 3402 p. 03 5382 2529 m. 0402456854 e. matthew.pol...@htlc.vic.edu.au w. www.htlc.vic.edu.au -- **Disclaimer: