summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/matt/subclass-existing-widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter/matt/subclass-existing-widgets.py')
-rw-r--r--Demo/tkinter/matt/subclass-existing-widgets.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Demo/tkinter/matt/subclass-existing-widgets.py b/Demo/tkinter/matt/subclass-existing-widgets.py
index e79dd5c..0e08f92 100644
--- a/Demo/tkinter/matt/subclass-existing-widgets.py
+++ b/Demo/tkinter/matt/subclass-existing-widgets.py
@@ -5,9 +5,9 @@ from Tkinter import *
class New_Button(Button):
def callback(self):
- print self.counter
- self.counter = self.counter + 1
-
+ print self.counter
+ self.counter = self.counter + 1
+
def createWidgets(top):
f = Frame(top)
f.pack()
@@ -26,4 +26,3 @@ def createWidgets(top):
root = Tk()
createWidgets(root)
root.mainloop()
-