mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
New class syntax.
This commit is contained in:
parent
decc4b99e1
commit
ce08448165
29 changed files with 81 additions and 81 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
from Split import Split
|
||||
|
||||
class HVSplit() = Split():
|
||||
class HVSplit(Split):
|
||||
#
|
||||
def create(self, (parent, hv)):
|
||||
# hv is 0 for HSplit, 1 for VSplit
|
||||
|
@ -53,10 +53,10 @@ class HVSplit() = Split():
|
|||
# XXX too-small
|
||||
#
|
||||
|
||||
class HSplit() = HVSplit():
|
||||
class HSplit(HVSplit):
|
||||
def create(self, parent):
|
||||
return HVSplit.create(self, (parent, 0))
|
||||
|
||||
class VSplit() = HVSplit():
|
||||
class VSplit(HVSplit):
|
||||
def create(self, parent):
|
||||
return HVSplit.create(self, (parent, 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue