ENGINEER 1D04 Chapter 5: chapter 5 (1)

39 views2 pages
scarletotter976 and 37168 others unlocked
ENGINEER 1D04 Full Course Notes
4
ENGINEER 1D04 Full Course Notes
Verified Note
4 documents

Document Summary

Python came up with its own standard gui called tkinter. Oo object : is an active data type that combines both data and operations, objects know stuff so they contain data, they do stuff so they have operations. Import graphics needs to be printed in win=graphics. graphwin() win= variable graphics= module. From graphics import* : allows you to load specific definitions from module. Every object is an instance of some class. To create a new instance of class constructor operation is used. Constructor is a n expression that creates a brand new object. : is the name of the class that you want to create e. g point,circle. The expressions in the parentheses are any parameters that are required to initialize the object. The set of msgs that an object responds to are called the methods. P = point (object) getx= method name ()= param 1 getx and gety methods return the value of x,y of a point.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents