mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
New class syntax.
This commit is contained in:
parent
decc4b99e1
commit
ce08448165
29 changed files with 81 additions and 81 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
# A Histogram displays a histogram of numeric data.
|
||||
#
|
||||
class HistogramAppearance() = LabelAppearance(), Define():
|
||||
class HistogramAppearance(LabelAppearance, Define):
|
||||
#
|
||||
def define(self, parent):
|
||||
Define.define(self, (parent, ''))
|
||||
|
|
@ -33,4 +33,4 @@ def drawpict(self, d):
|
|||
d.paint((h0, v0), (h1, v1))
|
||||
#
|
||||
|
||||
class Histogram() = NoReactivity(), HistogramAppearance(): pass
|
||||
class Histogram(NoReactivity, HistogramAppearance): pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue