TORONTO KIDS COMPUTER CLUB | Aurora Saturday 18:00 Python Homework 20.06.20.
17758
post-template-default,single,single-post,postid-17758,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 18:00 Python Homework 20.06.20.

24 Jun Aurora Saturday 18:00 Python Homework 20.06.20.

Question 1:

Use TKinter to create following window with three buttons:

  • the “blue” button will print “blue” in the python shell screen
  • the “red” button will print “red” in the python shell screen
  • if left mouse button click the “color” button will print “blue” in the python shell screen, while right mouse button will print “red” in the python shell screen


Question 2:

As we mentioned in the class, please modify the code below to create simple calculator to:

  • add addition and subtraction buttons
  • check if the num1 and num2 is valid entry(has to be all digits)
  • show the calculation result in the bottom label
No Comments

Sorry, the comment form is closed at this time.