Git Product home page Git Product logo

Comments (2)

unidesigner avatar unidesigner commented on July 20, 2024

pankaj pandey wrote:

Hi folks,
I thing i've got some problem in the labelling of HSplit and Vsplit.
Here's a short snippet

class Test(HasTraits):
a = Float
b = Str
c = Int
d = Bool
view = View(
Group(
HSplit(
Item('a',label='a1'),
Item('b',label='b1'),
label='1',
),
VSplit(
Group(Item('b',label='b2'), label='G2'),
Item('c',label='c2'),
Item('d',label='d2'),
label='2',
),
Group(
Item('c',label='c3'),
Item('d',label='d3'),
label='3',
),
layout='tabbed',
))
Test().configure_traits()

I want to get the tab labels as '1', '2' and '3'. However the labels
show as 'a1 [2]', 'G2 [3]' and '3'
Is this the expected behaviour? Then how do i set the tab labels that i want.

You might need an additional level of 'Group' in there...

view = View(
VGroup(
HSplit(
Item('a',label='a1'),
Item('b',label='b1'),
),
label='1',
),
VGroup(
VSplit(
Group(Item('b',label='b2'), label='G2'),
Item('c',label='c2'),
Item('d',label='d2'),
),
label='2',
),
VGroup(
Group(
Item('c',label='c3'),
Item('d',label='d3'),
),
label='3',
),
layout='tabbed',
))

from connectomeviewer.

unidesigner avatar unidesigner commented on July 20, 2024

Currently, no windows support anymore.

from connectomeviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.