Column widths with TabularAdapters?
问题 Using Enthought Canopy's TraitsUI, I'm using TabularAdapters to display some Arrays, but they always produce evenly proportioned column widths...I'd like to make some widths smaller than others, but haven't found any simple way yet...Anyone have any suggestions? 回答1: One way to control the widths of the columns is to override the get_width() method of the TabularArrayAdapter . For example, import numpy as np from traits.api import HasTraits, Array from traitsui.api import View, Item,