Using Python 3 on Windows 7.
import pickle
import os.path
from tkinter import * # Import tkinter
import tkinter.messagebox
class Places:
def __init__(self, name, street, city, state, zip):
self.name = name
self.street = street
self.city = city
self.state = state
self.zip = zip
class PlacesBook:
def __init__(self):
window = Tk() # Create a window
window.title("PlacesBook") # Set title
I get the error builtins.NameError: name 'self' is not defined at "class PlacesBook:"