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: ' +
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:
[sg.ReadButton('Su
th Python.
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
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 exampl
graphics
etcthey will be very helpful. 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
code...(probably a simple 'Adventure Game')
2.) Build some simple programs 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
eally 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 a
come to find for helping kids stay engaged when they
start to get tired of just text 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 vir
be able to summarise 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 25
..
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
ab["text"] = rounded
'''
'''
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.
- M
uot;Mistakes", bg="red", fg="white",
font=("arial", 20, "bold"))
mistakeslab.grid(row=20, column=0, sticky=E)
mistakesViewLab = Label(root, text=mistakes, fg="black", bg="grey",
font=("arial", 20, "bold"))
mistakesVie
regular
Windows .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
t;", bg = "white")
blankline3.grid(row=17, sticky='ew')
# SCORING LABELS AND RESULTS SECTION
# Places the labels and the results beside each other in column 0 and
column 1.
# Note: Each 'View' label grabs the starting score from the declarations at
the top. eg. score = 0
scorelab
totalViewLab = Label(root, text=total, fg="black", bg="grey",
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
know a lot 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. m
self.tk.call((self._w, 'insert', index, chars) + args)
_tkinter.TclError: bad text index "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,
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. 040
grain in metric tonnes?"))
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 | Teac
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: Emailb
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 describ
line 10, in
convert = 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
22 matches
Mail list logo