94a51889f9
Need to complete unit tests for controller.Notebooks.move_up() and move_down().
28 lines
589 B
Python
28 lines
589 B
Python
from Tags import Div
|
|
|
|
|
|
class Rounded_div( Div ):
|
|
def __init__( self, image_name, *args, **kwargs ):
|
|
# if no corners were specified, assumed all corners should be rounded
|
|
corners = kwargs.pop( "corners", [] )
|
|
if len( corners ) == 0:
|
|
corners = ( u"tl", u"tr", u"bl", u"br" )
|
|
|
|
div = Div(
|
|
*args,
|
|
**kwargs
|
|
)
|
|
|
|
for corner in corners:
|
|
div = Div(
|
|
div,
|
|
class_ = u"%s_%s" % ( image_name, corner ),
|
|
)
|
|
|
|
Div.__init__(
|
|
self,
|
|
div,
|
|
id = u"%s_wrapper" % image_name,
|
|
class_ = u"%s_color" % image_name,
|
|
)
|