Python Programing Lab EXERCISE NO : 14(a) EXERCISE - 14(b)

EXERCISE NO : 14(a) 

Description:

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object- oriented interface to the Tk GUI toolkit.
Creating a GUI application using Tkinter is an easy task. All we need to do is perform the following steps:
  •   Import the Tkinter module.
  •   Create the GUI application main window.
  •   Add one or more widgets to the GUI application.
  •   Enter the main event loop to take action against each event triggered by the user.
EXERCISE - 14(b) 

Description:

Turtle graphics is a popular way for introducing programming to kids. It was part of the original Logo programming language developed by Wally Feurzig and Seymour Papert in 1966.
The turtle module provides turtle graphics primitives, in both object-oriented and procedure- oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.
To make use of the turtle methods and functionalities, we need to import turtle.”turtle”comes packed with the standard Python package and need not be installed externally. The roadmap for executing a turtle program follows 4 steps:
  •   Import the turtle module
  •   Create a turtle to control.
  •   Draw around using the turtle methods.
  •   Run turtle.done().

No comments

JavaFX Scene Builder

  This is an article about the JavaFX Scene Builder. You will get a short introduction about the installation and usage of the software. The...