Aurora Saturday 18:00 Python Homework 20.06.20.
17758
post-template-default,single,single-post,postid-17758,single-format-standard,bridge-core-3.0.6,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-theme-ver-29.3,qode-theme-bridge,disabled_footer_bottom,qode_header_in_grid,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 18:00 Python Homework 20.06.20.

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.