[Tutor] Fwd: Syntax question

2018-08-09 Thread Abdur-Rahmaan Janhangeer
missed reply all Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- Forwarded message - From: Abdur-Rahmaan Janhangeer Date: Thu, 9 Aug 2018, 11:56 Subject: Re: [Tutor] Syntax question To: Matthew Polack wheatbutton = Button(root, text="Wheat", fg="black",

Re: [Tutor] Syntax question

2018-08-09 Thread Alan Gauld via Tutor
On 09/08/18 05:10, Matthew Polack wrote: > I'm trying to configure a button that prints a variable and calls a > function at the same time...but I can't figure out how to get the syntax > right...or if this is even possible: Of couse its possible just wrap it in a higher level function: def newfu

[Tutor] Syntax question

2018-08-09 Thread Matthew Polack
Hi, I'm trying to configure a button that prints a variable and calls a function at the same time...but I can't figure out how to get the syntax right...or if this is even possible: print("You have selected to convert "), croptype I've tried various combinations of the above...but can't get it t