Skip to content

Commit bab096b

Browse files
author
renzon
committed
Passando relógio para Python3
1 parent a25d3fa commit bab096b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

caes/cao.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Pequines(Cao):
3434
"""
3535
nervoso = True
3636

37-
class GrandeMixin(object):
37+
class GrandeMixin:
3838
""" Mixin: muda o latido"""
3939
def latir(self, vezes=1):
4040
# faz de conta que cães grandes não mudam

relogio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Relogio(tkinter.Label):
66

77
def __init__(self):
8-
tkinter.Label.__init__(self)
8+
super().__init__()
99
self.pack()
1010
self['text'] = strftime('%H:%M:%S')
1111
self['font'] = 'Helvetica 120 bold'

0 commit comments

Comments
 (0)