Ejemplo n.º 1
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        text = traits.str('text', default='menu')
        tip = traits.str('tip', default='tip?')
        click_callback = traits.str('click-callback', default='None')
        pass
Ejemplo n.º 2
0
    class Inventory( AttributeInventory.Inventory ):

        import traits
        label = traits.str( 'label', default= "pyShell" )
        locals = traits.str( 'locals', default= "None" )
        keydown_callback = traits.str( 'keydown-callback', default= "None" )
        pass
Ejemplo n.º 3
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        direction = traits.str("direction", default="vertical")
        sliderPosition = traits.int("sliderPosition", default=100)
        minimumPanelSize = traits.int("minimumPanelSize", default=250)
        pass
Ejemplo n.º 4
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        size = traits.list('size', default=[4, 3], validator=_intlist)
        dpi = traits.int('dpi', default=75)
        label = traits.str('label', default='thelabel')
        pass
Ejemplo n.º 5
0
    class Inventory( AttributeInventory.Inventory ):

        import traits
        ratios = traits.list( "ratios", default = [] )
        border = traits.int( "border", default = 5 )
        direction = traits.str( "direction", default = "horizontal", validator=\
                                traits.choice( ["horizontal", "vertical"] ) )
        pass
Ejemplo n.º 6
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        borderStyle = traits.str('borderStyle', default="default")
        label = traits.str('label', default="label")
        pass
Ejemplo n.º 7
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        borderStyle = traits.str('borderStyle', default="sunken")
        titles = traits.list('titles', default=[])
        pass
Ejemplo n.º 8
0
    class Inventory( AttributeInventory.Inventory ):

        import traits
        title = traits.str( "title", default = "title" )
        pass
Ejemplo n.º 9
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        text = traits.str('text', default='menu')
        label = traits.str('label', default='')
        pass