SourceClass Column
from egui import Columnclass Column:Specifies the properties of a column, like its width range.
Methods§
Sourcedef at_least(self, /, minimum: float) -> Column§
Won't shrink below this width (in points).
Default: 0.0
Sourcedef at_most(self, /, maximum: float) -> Column§
Won't grow above this width (in points).
Default: float.INFINITY
Source@staticmethod
def auto() -> Column§
Automatically sized based on content.
If you have many thousands of rows and are therefore using TableBody.rows
or TableBody.heterogeneous_rows, then the automatic size will only be based
on the currently visible rows.
Sourcedef auto_size_this_frame(self, /, value: bool) -> Column§
If set, the column will be automatically sized based on the content this frame.
Do not set this every frame, just on a specific action.
Source@staticmethod
def auto_with_initial_suggestion(width: float) -> Column§
Automatically sized.
The given fallback is a loose suggestion, that may be used to wrap cell contents, if they contain a wrapping layout. In most cases though, the given value is ignored.
Sourcedef clip(self, /, value: bool) -> Column§
If True: Allow the column to shrink enough to clip the contents.
If False: The column will always be wide enough to contain all its content.
Clipping can make sense if you expect a column to contain a lot of things,
and you don't want it too take up too much space.
If you turn on clipping you should also consider calling egui.Column.at_least.
Default: False.
Source@staticmethod
def exact(width: float) -> Column§
Always this exact width, never shrink or grow.
Source@staticmethod
def initial(width: float) -> Column§
With this initial width.
Sourcedef range(self, /, minimum: float, maximum: float) -> Column§
Allowed range of movement (in points), if in a resizable Table.
Source@staticmethod
def remainder() -> Column§
Take all the space remaining after the other columns have been sized.
If you have multiple Column.remainder they all
share the remaining space equally.
Sourcedef resizable(self, /, value: bool) -> Column§
Can this column be resized by dragging the column separator?
If you don't call this, the fallback value of
TableBuilder.resizable is used (which by default is False).