Пример #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
Пример #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
Пример #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
Пример #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
Пример #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
Пример #6
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        borderStyle = traits.str('borderStyle', default="default")
        label = traits.str('label', default="label")
        pass
Пример #7
0
    class Inventory(AttributeInventory.Inventory):

        import traits
        borderStyle = traits.str('borderStyle', default="sunken")
        titles = traits.list('titles', default=[])
        pass
Пример #8
0
    class Inventory( AttributeInventory.Inventory ):

        import traits
        title = traits.str( "title", default = "title" )
        pass
Пример #9
0
    class Inventory(AttributeInventory.Inventory):

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