mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +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 @@ from Buttons import *
|
|||
|
||||
# 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 @@ class HistogramAppearance() = LabelAppearance(), Define():
|
|||
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