mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Changed resizing functionality.
This commit is contained in:
parent
e15607f3f9
commit
6acc1b539a
2 changed files with 6 additions and 4 deletions
|
@ -7,6 +7,7 @@ import stdwin
|
|||
from stdwinevents import *
|
||||
import rect
|
||||
from Buttons import *
|
||||
from Resize import *
|
||||
|
||||
|
||||
# Field indices in event detail
|
||||
|
@ -42,7 +43,7 @@ class DragSliderReactivity() = NoReactivity():
|
|||
self.active = 0
|
||||
#
|
||||
|
||||
class DragSliderAppearance() = ButtonAppearance():
|
||||
class DragSliderAppearance() = NoResize(), ButtonAppearance():
|
||||
#
|
||||
def define(self, (win, bounds)):
|
||||
self.min = 0
|
||||
|
@ -109,7 +110,7 @@ class _SubClassicButton() = ClassicButton():
|
|||
# A complex slider is a wrapper around three buttons:
|
||||
# One to step down, a dragslider, and one to step up.
|
||||
#
|
||||
class ComplexSlider() = LabelAppearance(), NoReactivity():
|
||||
class ComplexSlider() = NoResize(), LabelAppearance(), NoReactivity():
|
||||
#
|
||||
def define(self, (win, bounds)):
|
||||
#
|
||||
|
|
|
@ -7,6 +7,7 @@ import stdwin
|
|||
from stdwinevents import *
|
||||
import rect
|
||||
from Buttons import *
|
||||
from Resize import *
|
||||
|
||||
|
||||
# Field indices in event detail
|
||||
|
@ -42,7 +43,7 @@ class DragSliderReactivity() = NoReactivity():
|
|||
self.active = 0
|
||||
#
|
||||
|
||||
class DragSliderAppearance() = ButtonAppearance():
|
||||
class DragSliderAppearance() = NoResize(), ButtonAppearance():
|
||||
#
|
||||
def define(self, (win, bounds)):
|
||||
self.min = 0
|
||||
|
@ -109,7 +110,7 @@ class _SubClassicButton() = ClassicButton():
|
|||
# A complex slider is a wrapper around three buttons:
|
||||
# One to step down, a dragslider, and one to step up.
|
||||
#
|
||||
class ComplexSlider() = LabelAppearance(), NoReactivity():
|
||||
class ComplexSlider() = NoResize(), LabelAppearance(), NoReactivity():
|
||||
#
|
||||
def define(self, (win, bounds)):
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue