from tkinter import *
class CreateButtons:
	def __init__(self, parent):
		f = Frame(parent)
		f.pack()
		self.print_button = Button(f, text="Print", command=self.print_list)
		self.print_button.pack()
		self.quit_button = Button(f, text="Quit", command=f.quit)
		self.quit_button.pack()
		
	def print_list(self):
		print("Print button was clicked")

root = Tk()
c = CreateButtons(root)
root.mainloop()

f86b816c10445de0c7c12457a8b7030701b1ece7
<mask token>


class CreateButtons:

    def __init__(self, parent):
        f = Frame(parent)
        f.pack()
        self.print_button = Button(f, text='Print', command=self.print_list)
        self.print_button.pack()
        self.quit_button = Button(f, text='Quit', command=f.quit)
        self.quit_button.pack()

    def print_list(self):
        print('Print button was clicked')


<mask token>

<mask token>


class CreateButtons:

    def __init__(self, parent):
        f = Frame(parent)
        f.pack()
        self.print_button = Button(f, text='Print', command=self.print_list)
        self.print_button.pack()
        self.quit_button = Button(f, text='Quit', command=f.quit)
        self.quit_button.pack()

    def print_list(self):
        print('Print button was clicked')


<mask token>
root.mainloop()

<mask token>


class CreateButtons:

    def __init__(self, parent):
        f = Frame(parent)
        f.pack()
        self.print_button = Button(f, text='Print', command=self.print_list)
        self.print_button.pack()
        self.quit_button = Button(f, text='Quit', command=f.quit)
        self.quit_button.pack()

    def print_list(self):
        print('Print button was clicked')


root = Tk()
c = CreateButtons(root)
root.mainloop()

from tkinter import *


class CreateButtons:

    def __init__(self, parent):
        f = Frame(parent)
        f.pack()
        self.print_button = Button(f, text='Print', command=self.print_list)
        self.print_button.pack()
        self.quit_button = Button(f, text='Quit', command=f.quit)
        self.quit_button.pack()

    def print_list(self):
        print('Print button was clicked')


root = Tk()
c = CreateButtons(root)
root.mainloop()

from tkinter import *
class CreateButtons:
	def __init__(self, parent):
		f = Frame(parent)
		f.pack()
		self.print_button = Button(f, text="Print", command=self.print_list)
		self.print_button.pack()
		self.quit_button = Button(f, text="Quit", command=f.quit)
		self.quit_button.pack()
		
	def print_list(self):
		print("Print button was clicked")

root = Tk()
c = CreateButtons(root)
root.mainloop()
