Versions in this module Expand all Collapse all v1 v1.0.3 Jan 7, 2021 Changes in this version type Window + func (w *Window) SetOverrideRedirect(status bool) error v1.0.2 Jan 7, 2021 Changes in this version + const AnchorCenter + const AnchorEast + const AnchorNorth + const AnchorNorthEast + const AnchorNorthWest + const AnchorSouth + const AnchorSouthEast + const AnchorSouthWest + const AnchorWest + const CompoundBottom + const CompoundCenter + const CompoundLeft + const CompoundNone + const CompoundRight + const CompoundTop + const DirectionAbove + const DirectionBelow + const DirectionLeft + const DirectionRight + const DisplyCursorHollow + const DisplyCursorNone + const DisplyCursorSolid + const LineWrapChar + const LineWrapNone + const LineWrapWord + const ListSelectBrowse + const ListSelectExtended + const ListSelectMultiple + const ListSelectSingle + const StateActive + const StateDisable + const StateNormal + const StateReadOnly + const StickyAll + const StickyCenter + const StickyE + const StickyEW + const StickyN + const StickyNS + const StickyS + const StickyW + const TreeSelectBrowse + const TreeSelectExtended + const TreeSelectNode + var ErrClosed = errors.New("already closed") + var ErrExist = errors.New("already exists") + var ErrInvalid = errors.New("invalid argument") + var ErrNotExist = errors.New("does not exist") + var ErrUnsupport = errors.New("unsupport") + var ErrorInvalidWidgetInfo = fmt.Errorf("invalid widget info") + var ErrorNotMatchWidgetInfo = fmt.Errorf("widget info not match") + var TtkTheme = &ttkTheme + func AddVirtualEventPhysicalEvent(virtual string, event string, events ...string) error + func Async(fn func()) + func BindEvent(tag string, event string, fn func(e *Event)) error + func BindInfo(tag string) []string + func BindKeyEventEx(tag string, fnPress func(e *KeyEvent), fnRelease func(e *KeyEvent)) error + func ChooseColor(parent Widget, title string, initcolor string) (string, error) + func ChooseDirectory(parent Widget, title string, initialdir string, mustexist bool) (string, error) + func ClearBindEvent(tag string, event string) error + func DestroyWidget(w Widget) error + func DumpWidget(w Widget) string + func DumpWidgetEx(w Widget, offset string) string + func FontFamilieList() []string + func GetOpenFile(parent Widget, title string, filetypes []FileType, initialdir string, ...) (string, error) + func GetOpenMultipleFile(parent Widget, title string, filetypes []FileType, initialdir string, ...) ([]string, error) + func GetSaveFile(parent Widget, title string, confirmoverwrite bool, defaultextension string, ...) (string, error) + func Grid(widget Widget, attributes ...*LayoutAttr) error + func GridColumnIndex(master Widget, index int, attributes ...*GridIndexAttr) error + func GridList(widgets []Widget, attributes ...*LayoutAttr) error + func GridRemove(widget Widget) error + func GridRowIndex(master Widget, index int, attributes ...*GridIndexAttr) error + func HasTheme() bool + func Init() error + func InitEx(tk_window_init_hide bool, tcl_library string, tk_library string) (err error) + func IsEvent(event string) bool + func IsNilInterface(w Widget) bool + func IsTkClass(class string) bool + func IsTtkClass(class string) bool + func IsValidWidget(w Widget) bool + func IsVirtualEvent(event string) bool + func MainInterp() *interp.Interp + func MainLoop(fn func()) error + func MessageBox(parent Widget, title string, message string, detail string, ...) (string, error) + func NewGenInt64Func(id int64) func() <-chan int64 + func NewGenIntFunc(id int) func() <-chan int + func Pack(widget Widget, attributes ...*LayoutAttr) error + func PackList(widgets []Widget, attributes ...*LayoutAttr) error + func PackRemove(widget Widget) error + func Place(widget Widget, attributes ...*LayoutAttr) error + func PlaceRemove(widget Widget) error + func PopupMenu(menu *Menu, xpos int, ypos int) error + func Quit() + func RegisterWidget(w Widget) + func RemoveVirtualEventPhysicalEvent(virtual string, events ...string) error + func SendEvent(widget Widget, event string, attrs ...*EventAttr) error + func SendEventToFocus(event string, attrs ...*EventAttr) error + func SetErrorHandle(fn func(error)) + func SetFocusFollowsMouse() error + func SetMainTheme(theme Theme) + func SetMenuTearoff(enable bool) + func SubString(text string, start int, end int) string + func TclLibary() (path string) + func TclVersion() (ver string) + func TkLibrary() (path string) + func TkVersion() (ver string) + func Update() + func VirtualEventInfo(virtual string) []string + type Action struct + func NewAction(label string) *Action + func NewActionEx(label string, cmd func()) *Action + func NewCheckAction(label string) *Action + func NewCheckActionEx(label string, cmd func()) *Action + func NewRadioAction(group *ActionGroup, label string) *Action + func NewSeparatorAction() *Action + func (a *Action) Data() interface{} + func (a *Action) Invoke() + func (a *Action) IsCheckAction() bool + func (a *Action) IsChecked() bool + func (a *Action) IsRadioAction() bool + func (a *Action) IsSeparator() bool + func (a *Action) Label() string + func (a *Action) OnCommand(fn func()) error + func (a *Action) SetChecked(b bool) + func (a *Action) SetData(data interface{}) + func (a *Action) String() string + type ActionGroup struct + func NewActionGroup() *ActionGroup + func (a *ActionGroup) Actions() []*Action + func (a *ActionGroup) AddNewRadioAction(label string) *Action + func (a *ActionGroup) AddRadioAction(act *Action) error + func (a *ActionGroup) CheckedAction() *Action + func (a *ActionGroup) CheckedActionIndex() int + func (a *ActionGroup) OnCommand(fn func()) + func (a *ActionGroup) SetCheckedAction(act *Action) error + func (a *ActionGroup) SetCheckedIndex(index int) error + type Anchor int + func (v Anchor) String() string + type BaseFont struct + func (f *BaseFont) Id() string + func (f *BaseFont) IsValid() bool + func (w *BaseFont) Clone() *UserFont + func (w *BaseFont) Description() string + func (w *BaseFont) Family() string + func (w *BaseFont) IsBold() bool + func (w *BaseFont) IsItalic() bool + func (w *BaseFont) IsOverstrike() bool + func (w *BaseFont) IsUnderline() bool + func (w *BaseFont) MeasureTextWidth(text string) int + func (w *BaseFont) Size() int + func (w *BaseFont) String() string + type BaseWidget struct + func (w *BaseWidget) BindEvent(event string, fn func(e *Event)) error + func (w *BaseWidget) BindInfo() []string + func (w *BaseWidget) BindKeyEvent(fn func(e *KeyEvent)) error + func (w *BaseWidget) BindKeyEventEx(fnPress func(e *KeyEvent), fnRelease func(e *KeyEvent)) error + func (w *BaseWidget) Children() []Widget + func (w *BaseWidget) ClearBind(event string) error + func (w *BaseWidget) Destroy() error + func (w *BaseWidget) DestroyChildren() error + func (w *BaseWidget) FocusNextWidget() Widget + func (w *BaseWidget) FocusPrevWidget() Widget + func (w *BaseWidget) Id() string + func (w *BaseWidget) Info() *WidgetInfo + func (w *BaseWidget) IsFocus() bool + func (w *BaseWidget) IsValid() bool + func (w *BaseWidget) Lower(below Widget) error + func (w *BaseWidget) NativeAttribute(key string) string + func (w *BaseWidget) NativeAttributes(keys ...string) (attributes []NativeAttr) + func (w *BaseWidget) Parent() Widget + func (w *BaseWidget) Raise(above Widget) error + func (w *BaseWidget) SetAttributes(attributes ...*WidgetAttr) error + func (w *BaseWidget) SetFocus() error + func (w *BaseWidget) SetNativeAttribute(key string, value string) error + func (w *BaseWidget) SetNativeAttributes(attributes ...NativeAttr) error + func (w *BaseWidget) String() string + func (w *BaseWidget) Type() WidgetType + func (w *BaseWidget) TypeName() string + type BorderMode int + const BorderModeIgnore + const BorderModeInside + const BorderModeOutside + func (v BorderMode) String() string + type Button struct + func NewButton(parent Widget, text string, attributes ...*WidgetAttr) *Button + func (w *Button) Attach(id string) error + func (w *Button) Compound() Compound + func (w *Button) Image() *Image + func (w *Button) Invoke() + func (w *Button) IsTakeFocus() bool + func (w *Button) OnCommand(fn func()) error + func (w *Button) Padding() Pad + func (w *Button) PaddingN() (int, int) + func (w *Button) SetCompound(compound Compound) error + func (w *Button) SetImage(image *Image) error + func (w *Button) SetPadding(pad Pad) error + func (w *Button) SetPaddingN(padx int, pady int) error + func (w *Button) SetState(state State) error + func (w *Button) SetTakeFocus(takefocus bool) error + func (w *Button) SetText(text string) error + func (w *Button) SetWidth(width int) error + func (w *Button) State() State + func (w *Button) Text() string + func (w *Button) Width() int + type Canvas struct + func NewCanvas(parent Widget, attributes ...*WidgetAttr) *Canvas + func (w *Canvas) Attach(id string) error + func (w *Canvas) Background() string + func (w *Canvas) BorderWidth() int + func (w *Canvas) CloseEnough() float64 + func (w *Canvas) Height() int + func (w *Canvas) HighlightBackground() string + func (w *Canvas) HighlightColor() string + func (w *Canvas) Highlightthickness() int + func (w *Canvas) InsertBackground() string + func (w *Canvas) InsertBorderWidth() int + func (w *Canvas) InsertOffTime() int + func (w *Canvas) InsertOnTime() int + func (w *Canvas) InsertWidth() int + func (w *Canvas) IsConfine() bool + func (w *Canvas) IsTakeFocus() bool + func (w *Canvas) ReliefStyle() ReliefStyle + func (w *Canvas) SelectBackground() string + func (w *Canvas) Selectborderwidth() int + func (w *Canvas) Selectforeground() string + func (w *Canvas) SetBackground(color string) error + func (w *Canvas) SetBorderWidth(width int) error + func (w *Canvas) SetCloseEnough(closeenough float64) error + func (w *Canvas) SetConfine(confine bool) error + func (w *Canvas) SetHeight(height int) error + func (w *Canvas) SetHighlightBackground(color string) error + func (w *Canvas) SetHighlightColor(color string) error + func (w *Canvas) SetHighlightthickness(width int) error + func (w *Canvas) SetInsertBackground(color string) error + func (w *Canvas) SetInsertBorderWidth(width int) error + func (w *Canvas) SetInsertOffTime(offtime int) error + func (w *Canvas) SetInsertOnTime(ontime int) error + func (w *Canvas) SetInsertWidth(width int) error + func (w *Canvas) SetReliefStyle(relief ReliefStyle) error + func (w *Canvas) SetSelectBackground(color string) error + func (w *Canvas) SetSelectborderwidth(width int) error + func (w *Canvas) SetSelectforeground(color string) error + func (w *Canvas) SetState(state State) error + func (w *Canvas) SetTakeFocus(takefocus bool) error + func (w *Canvas) SetWidth(width int) error + func (w *Canvas) SetXScrollIncrement(value int) error + func (w *Canvas) SetYScrollIncrement(value int) error + func (w *Canvas) State() State + func (w *Canvas) Width() int + func (w *Canvas) XScrollIncrement() int + func (w *Canvas) YScrollIncrement() int + type CheckButton struct + func NewCheckButton(parent Widget, text string, attributes ...*WidgetAttr) *CheckButton + func (w *CheckButton) Attach(id string) error + func (w *CheckButton) Compound() Compound + func (w *CheckButton) Image() *Image + func (w *CheckButton) Invoke() + func (w *CheckButton) IsChecked() bool + func (w *CheckButton) IsTakeFocus() bool + func (w *CheckButton) OnCommand(fn func()) error + func (w *CheckButton) Padding() Pad + func (w *CheckButton) PaddingN() (int, int) + func (w *CheckButton) SetChecked(check bool) error + func (w *CheckButton) SetCompound(compound Compound) error + func (w *CheckButton) SetImage(image *Image) error + func (w *CheckButton) SetPadding(pad Pad) error + func (w *CheckButton) SetPaddingN(padx int, pady int) error + func (w *CheckButton) SetState(state State) error + func (w *CheckButton) SetTakeFocus(takefocus bool) error + func (w *CheckButton) SetText(text string) error + func (w *CheckButton) SetWidth(width int) error + func (w *CheckButton) State() State + func (w *CheckButton) Text() string + func (w *CheckButton) Width() int + type ComboBox struct + func NewComboBox(parent Widget, attributes ...*WidgetAttr) *ComboBox + func (w *ComboBox) Attach(id string) error + func (w *ComboBox) Background() string + func (w *ComboBox) CurrentIndex() int + func (w *ComboBox) CurrentText() string + func (w *ComboBox) Echo() string + func (w *ComboBox) Entry() *Entry + func (w *ComboBox) Font() Font + func (w *ComboBox) Forground() string + func (w *ComboBox) Height() int + func (w *ComboBox) IsTakeFocus() bool + func (w *ComboBox) Justify() Justify + func (w *ComboBox) OnEditReturn(fn func()) error + func (w *ComboBox) OnSelected(fn func()) error + func (w *ComboBox) SetBackground(color string) error + func (w *ComboBox) SetCurrentIndex(index int) *ComboBox + func (w *ComboBox) SetCurrentText(text string) *ComboBox + func (w *ComboBox) SetEcho(echo string) error + func (w *ComboBox) SetFont(font Font) error + func (w *ComboBox) SetForground(color string) error + func (w *ComboBox) SetHeight(height int) error + func (w *ComboBox) SetJustify(justify Justify) error + func (w *ComboBox) SetState(state State) error + func (w *ComboBox) SetTakeFocus(takefocus bool) error + func (w *ComboBox) SetValues(values []string) error + func (w *ComboBox) SetWidth(width int) error + func (w *ComboBox) State() State + func (w *ComboBox) Values() []string + func (w *ComboBox) Width() int + type Command struct + func (c *Command) Bind(fn func()) + func (c *Command) Clear() + func (c *Command) Invoke() + type CommandEx struct + func (c *CommandEx) Bind(fn func([]string) error) + func (c *CommandEx) Clear() + func (c *CommandEx) Invoke(args []string) + type Compound int + func (v Compound) String() string + type Direction int + func (v Direction) String() string + type DisplyCursor int + func (v DisplyCursor) String() string + type Entry struct + func NewEntry(parent Widget, attributes ...*WidgetAttr) *Entry + func (w *Entry) Append(str string) error + func (w *Entry) Attach(id string) error + func (w *Entry) Background() string + func (w *Entry) BindXScrollBar(bar *ScrollBar) error + func (w *Entry) Clear() + func (w *Entry) ClearSelection() + func (w *Entry) Copy() + func (w *Entry) CursorPosition() int + func (w *Entry) Cut() + func (w *Entry) Delete(index int) + func (w *Entry) DeleteRange(start int, end int) + func (w *Entry) Font() Font + func (w *Entry) Foreground() string + func (w *Entry) HasSelectedText() bool + func (w *Entry) Index(index int) int + func (w *Entry) Insert(index int, str string) error + func (w *Entry) IsExportSelection() bool + func (w *Entry) IsTakeFocus() bool + func (w *Entry) Justify() Justify + func (w *Entry) OnEditReturn(fn func()) error + func (w *Entry) OnUpdate(fn func()) error + func (w *Entry) OnXScrollEx(fn func([]string) error) error + func (w *Entry) Paste() + func (w *Entry) SelectAll() + func (w *Entry) SelectedText() string + func (w *Entry) SelectionEnd() int + func (w *Entry) SelectionStart() int + func (w *Entry) SetBackground(color string) error + func (w *Entry) SetCursorPosition(pos int) *Entry + func (w *Entry) SetExportSelection(export bool) error + func (w *Entry) SetFont(font Font) error + func (w *Entry) SetForeground(color string) error + func (w *Entry) SetJustify(justify Justify) error + func (w *Entry) SetSelection(start int, end int) + func (w *Entry) SetShow(show string) error + func (w *Entry) SetState(state State) error + func (w *Entry) SetTakeFocus(takefocus bool) error + func (w *Entry) SetText(text string) error + func (w *Entry) SetWidth(width int) error + func (w *Entry) SetXViewArgs(args []string) error + func (w *Entry) Show() string + func (w *Entry) State() State + func (w *Entry) Text() string + func (w *Entry) TextLength() int + func (w *Entry) Width() int + type Event struct + Focus bool + GlobalPosX int + GlobalPosY int + Height int + KeyCode int + KeyRune rune + KeySym string + KeyText string + Mode string + MouseButton int + OverrideRedirect string + Place string + PosX int + PosY int + State string + Synthetic bool + Timestamp int64 + Type int + UserData string + WheelDelta int + Widget Widget + Width int + type EventAttr struct + func NativeEventAttr(key string, value string) *EventAttr + type FileType struct + Ext string + Info string + func (v FileType) String() string + type Fill int + const FillBoth + const FillNone + const FillX + const FillY + func (v Fill) String() string + type Font interface + Description func() string + Family func() string + Id func() string + IsBold func() bool + IsItalic func() bool + IsOverstrike func() bool + IsUnderline func() bool + IsValid func() bool + Size func() int + String func() string + type FontAttr struct + func FontAttrBold() *FontAttr + func FontAttrItalic() *FontAttr + func FontAttrOverstrike() *FontAttr + func FontAttrUnderline() *FontAttr + type Frame struct + func NewFrame(parent Widget, attributes ...*WidgetAttr) *Frame + func (w *Frame) Attach(id string) error + func (w *Frame) BorderWidth() int + func (w *Frame) Height() int + func (w *Frame) IsTakeFocus() bool + func (w *Frame) Padding() Pad + func (w *Frame) PaddingN() (int, int) + func (w *Frame) ReliefStyle() ReliefStyle + func (w *Frame) SetBorderWidth(width int) error + func (w *Frame) SetHeight(height int) error + func (w *Frame) SetPadding(pad Pad) error + func (w *Frame) SetPaddingN(padx int, pady int) error + func (w *Frame) SetReliefStyle(relief ReliefStyle) error + func (w *Frame) SetTakeFocus(takefocus bool) error + func (w *Frame) SetWidth(width int) error + func (w *Frame) Width() int + type Geometry struct + Height int + Width int + X int + Y int + type GridIndexAttr struct + func GridIndexAttrMinSize(amount int) *GridIndexAttr + func GridIndexAttrPad(amount int) *GridIndexAttr + func GridIndexAttrUniform(groupname string) *GridIndexAttr + func GridIndexAttrWeight(value int) *GridIndexAttr + type GridLayout struct + func NewGridLayout(parent Widget) *GridLayout + func (w *GridLayout) AddWidget(widget Widget, attrs ...*LayoutAttr) error + func (w *GridLayout) AddWidgetEx(widget Widget, row int, column int, rowspan int, columnspan int, sticky Sticky) error + func (w *GridLayout) AddWidgetList(widgets []Widget, attrs ...*LayoutAttr) error + func (w *GridLayout) AddWidgets(widgets ...Widget) error + func (w *GridLayout) BorderWidth() int + func (w *GridLayout) RemoveWidget(widget Widget) error + func (w *GridLayout) Repack() error + func (w *GridLayout) SetBorderWidth(width int) error + func (w *GridLayout) SetColumnAttr(column int, pad int, weight int, group string) error + func (w *GridLayout) SetRowAttr(row int, pad int, weight int, group string) error + type Image struct + func LoadImage(file string, attributes ...*ImageAttr) (*Image, error) + func NewImage(attributes ...*ImageAttr) *Image + func (i *Image) Blank() *Image + func (i *Image) Gamma() float64 + func (i *Image) Id() string + func (i *Image) IsValid() bool + func (i *Image) SetGamma(v float64) *Image + func (i *Image) SetImage(img image.Image) *Image + func (i *Image) SetSize(sz Size) *Image + func (i *Image) SetSizeN(width int, height int) *Image + func (i *Image) SetZoomedImage(img image.Image, zoomX, zoomY, subsampleX, subsampleY int) *Image + func (i *Image) Size() Size + func (i *Image) SizeN() (width int, height int) + func (i *Image) ToImage() image.Image + type ImageAttr struct + func ImageAttrGamma(gamma float64) *ImageAttr + func ImageAttrTk85AlphaColor(color color.Color) *ImageAttr + type Justify int + const JustifyCenter + const JustifyLeft + const JustifyRight + func (v Justify) String() string + type KeyEvent struct + KeyModifier KeyModifier + type KeyModifier int + const KeyModifierAlt + const KeyModifierControl + const KeyModifierFn + const KeyModifierMeta + const KeyModifierNone + const KeyModifierShift + func (k KeyModifier) String() string + type Label struct + func NewLabel(parent Widget, text string, attributes ...*WidgetAttr) *Label + func (w *Label) Anchor() Anchor + func (w *Label) Attach(id string) error + func (w *Label) Background() string + func (w *Label) BorderWidth() int + func (w *Label) Compound() Compound + func (w *Label) Font() Font + func (w *Label) Forground() string + func (w *Label) Image() *Image + func (w *Label) IsTakeFocus() bool + func (w *Label) Justify() Justify + func (w *Label) Padding() Pad + func (w *Label) PaddingN() (int, int) + func (w *Label) ReliefStyle() ReliefStyle + func (w *Label) SetAnchor(anchor Anchor) error + func (w *Label) SetBackground(color string) error + func (w *Label) SetBorderWidth(width int) error + func (w *Label) SetCompound(compound Compound) error + func (w *Label) SetFont(font Font) error + func (w *Label) SetForground(color string) error + func (w *Label) SetImage(image *Image) error + func (w *Label) SetJustify(justify Justify) error + func (w *Label) SetPadding(pad Pad) error + func (w *Label) SetPaddingN(padx int, pady int) error + func (w *Label) SetReliefStyle(relief ReliefStyle) error + func (w *Label) SetState(state State) error + func (w *Label) SetTakeFocus(takefocus bool) error + func (w *Label) SetText(text string) error + func (w *Label) SetWidth(width int) error + func (w *Label) SetWrapLength(wraplength int) error + func (w *Label) State() State + func (w *Label) Text() string + func (w *Label) Width() int + func (w *Label) WrapLength() int + type LabelFrame struct + func NewLabelFrame(parent Widget, attributes ...*WidgetAttr) *LabelFrame + func (w *LabelFrame) Attach(id string) error + func (w *LabelFrame) BorderWidth() int + func (w *LabelFrame) Height() int + func (w *LabelFrame) IsTakeFocus() bool + func (w *LabelFrame) LabelAnchor() Anchor + func (w *LabelFrame) LabelText() string + func (w *LabelFrame) Padding() Pad + func (w *LabelFrame) PaddingN() (int, int) + func (w *LabelFrame) ReliefStyle() ReliefStyle + func (w *LabelFrame) SetBorderWidth(width int) error + func (w *LabelFrame) SetHeight(height int) error + func (w *LabelFrame) SetLabelAnchor(anchor Anchor) error + func (w *LabelFrame) SetLabelText(text string) error + func (w *LabelFrame) SetPadding(pad Pad) error + func (w *LabelFrame) SetPaddingN(padx int, pady int) error + func (w *LabelFrame) SetReliefStyle(relief ReliefStyle) error + func (w *LabelFrame) SetTakeFocus(takefocus bool) error + func (w *LabelFrame) SetWidth(width int) error + func (w *LabelFrame) Width() int + type Layout interface + AddLayout func(layout Layout, attrs ...*LayoutAttr) + AddWidget func(widget Widget, attrs ...*LayoutAttr) + RemoveLayout func(layout Layout) bool + RemoveWidget func(widget Widget) bool + type LayoutAttr struct + func AppendLayoutAttrs(org []*LayoutAttr, attributes ...*LayoutAttr) []*LayoutAttr + func GridAttrColumn(n int) *LayoutAttr + func GridAttrColumnSpan(n int) *LayoutAttr + func GridAttrInMaster(w Widget) *LayoutAttr + func GridAttrIpadx(padx int) *LayoutAttr + func GridAttrIpady(pady int) *LayoutAttr + func GridAttrPadx(padx int) *LayoutAttr + func GridAttrPady(pady int) *LayoutAttr + func GridAttrRow(n int) *LayoutAttr + func GridAttrRowSpan(n int) *LayoutAttr + func GridAttrSticky(v Sticky) *LayoutAttr + func PackAttrAfter(w Widget) *LayoutAttr + func PackAttrAnchor(anchor Anchor) *LayoutAttr + func PackAttrBefore(w Widget) *LayoutAttr + func PackAttrExpand(b bool) *LayoutAttr + func PackAttrFill(fill Fill) *LayoutAttr + func PackAttrFillBoth() *LayoutAttr + func PackAttrFillNone() *LayoutAttr + func PackAttrFillX() *LayoutAttr + func PackAttrFillY() *LayoutAttr + func PackAttrInMaster(w Widget) *LayoutAttr + func PackAttrIpadx(padx int) *LayoutAttr + func PackAttrIpady(pady int) *LayoutAttr + func PackAttrPadx(padx int) *LayoutAttr + func PackAttrPady(pady int) *LayoutAttr + func PackAttrSide(side Side) *LayoutAttr + func PackAttrSideBottom() *LayoutAttr + func PackAttrSideLeft() *LayoutAttr + func PackAttrSideRight() *LayoutAttr + func PackAttrSideTop() *LayoutAttr + func PlaceAttrAnchor(anchor Anchor) *LayoutAttr + func PlaceAttrBorderMode(mode BorderMode) *LayoutAttr + func PlaceAttrHeight(size int) *LayoutAttr + func PlaceAttrInMaster(w Widget) *LayoutAttr + func PlaceAttrRelHeight(size float64) *LayoutAttr + func PlaceAttrRelWidth(size float64) *LayoutAttr + func PlaceAttrRelX(location float64) *LayoutAttr + func PlaceAttrRelY(location float64) *LayoutAttr + func PlaceAttrWidth(size int) *LayoutAttr + func PlaceAttrX(location int) *LayoutAttr + func PlaceAttrY(location int) *LayoutAttr + type LayoutFrame struct + func NewLayoutFrame(parent Widget, attributes ...*WidgetAttr) *LayoutFrame + func (w *LayoutFrame) Type() WidgetType + func (w *LayoutFrame) TypeName() string + type LayoutItem struct + type LayoutSpacer struct + func NewLayoutSpacer(parent Widget, space int, expand bool) *LayoutSpacer + func (w *LayoutSpacer) Height() int + func (w *LayoutSpacer) IsExpand() bool + func (w *LayoutSpacer) SetExpand(expand bool) *LayoutSpacer + func (w *LayoutSpacer) SetHeight(height int) *LayoutSpacer + func (w *LayoutSpacer) SetSpace(space int) *LayoutSpacer + func (w *LayoutSpacer) SetWidth(width int) *LayoutSpacer + func (w *LayoutSpacer) Space() int + func (w *LayoutSpacer) Type() WidgetType + func (w *LayoutSpacer) TypeName() string + func (w *LayoutSpacer) Width() int + type LayoutWidget interface + LayoutWidget func() Widget + type LineWrapMode int + func (v LineWrapMode) String() string + type ListBox struct + func NewListBox(parent Widget, attributes ...*WidgetAttr) *ListBox + func (w *ListBox) AppendItem(index int, item string) *ListBox + func (w *ListBox) AppendItems(items []string) *ListBox + func (w *ListBox) Attach(id string) error + func (w *ListBox) Background() string + func (w *ListBox) BindXScrollBar(bar *ScrollBar) error + func (w *ListBox) BindYScrollBar(bar *ScrollBar) error + func (w *ListBox) BorderWidth() int + func (w *ListBox) ClearSelection() *ListBox + func (w *ListBox) Font() Font + func (w *ListBox) Forground() string + func (w *ListBox) Height() int + func (w *ListBox) InsertItem(index int, item string) *ListBox + func (w *ListBox) IsTakeFocus() bool + func (w *ListBox) ItemCount() int + func (w *ListBox) ItemText(index int) string + func (w *ListBox) Items() []string + func (w *ListBox) Justify() Justify + func (w *ListBox) OnSelectionChanged(fn func()) error + func (w *ListBox) OnXScrollEx(fn func([]string) error) error + func (w *ListBox) OnYScrollEx(fn func([]string) error) error + func (w *ListBox) Padding() Pad + func (w *ListBox) PaddingN() (int, int) + func (w *ListBox) ReliefStyle() ReliefStyle + func (w *ListBox) RemoveItem(index int) error + func (w *ListBox) RemoveItemRange(start int, end int) error + func (w *ListBox) SelectMode() ListSelectMode + func (w *ListBox) SelectedIndexs() []int + func (w *ListBox) SelectedItems() (items []string) + func (w *ListBox) SetBackground(color string) error + func (w *ListBox) SetBorderWidth(width int) error + func (w *ListBox) SetFont(font Font) error + func (w *ListBox) SetForground(color string) error + func (w *ListBox) SetHeight(height int) error + func (w *ListBox) SetItemText(index int, item string) *ListBox + func (w *ListBox) SetItems(items []string) *ListBox + func (w *ListBox) SetJustify(justify Justify) error + func (w *ListBox) SetPadding(pad Pad) error + func (w *ListBox) SetPaddingN(padx int, pady int) error + func (w *ListBox) SetReliefStyle(relief ReliefStyle) error + func (w *ListBox) SetSelectMode(mode ListSelectMode) error + func (w *ListBox) SetSelectionRange(start int, end int) *ListBox + func (w *ListBox) SetState(state State) error + func (w *ListBox) SetTakeFocus(takefocus bool) error + func (w *ListBox) SetWidth(width int) error + func (w *ListBox) SetXViewArgs(args []string) error + func (w *ListBox) SetYViewArgs(args []string) error + func (w *ListBox) State() State + func (w *ListBox) Width() int + type ListBoxEx struct + func NewListBoxEx(parent Widget, attributs ...*WidgetAttr) *ListBoxEx + type ListSelectMode int + func (v ListSelectMode) String() string + type Menu struct + func NewMenu(parent Widget, attributes ...*WidgetAttr) *Menu + func (w *Menu) ActiveBackground() string + func (w *Menu) ActiveBorderWidth() int + func (w *Menu) ActiveForground() string + func (w *Menu) AddAction(act *Action) error + func (w *Menu) AddActions(actions []*Action) + func (w *Menu) AddNewSubMenu(label string, attributes ...*WidgetAttr) *Menu + func (w *Menu) AddSeparator() error + func (w *Menu) AddSubMenu(label string, sub *Menu) error + func (w *Menu) Attach(id string) error + func (w *Menu) Background() string + func (w *Menu) BorderWidth() int + func (w *Menu) DisabledForground() string + func (w *Menu) Font() Font + func (w *Menu) Forground() string + func (w *Menu) InsertAction(index int, act *Action) error + func (w *Menu) InsertNewSubMenu(index int, label string, attributes ...*WidgetAttr) *Menu + func (w *Menu) InsertSeparator(index int) error + func (w *Menu) InsertSubMenu(index int, label string, sub *Menu) error + func (w *Menu) IsTakeFocus() bool + func (w *Menu) IsTearoff() bool + func (w *Menu) ReliefStyle() ReliefStyle + func (w *Menu) SelectColor() string + func (w *Menu) SetActiveBackground(color string) error + func (w *Menu) SetActiveBorderWidth(width int) error + func (w *Menu) SetActiveForground(color string) error + func (w *Menu) SetBackground(color string) error + func (w *Menu) SetBorderWidth(width int) error + func (w *Menu) SetDisabledForground(color string) error + func (w *Menu) SetFont(font Font) error + func (w *Menu) SetForground(color string) error + func (w *Menu) SetReliefStyle(relief ReliefStyle) error + func (w *Menu) SetSelectColor(color string) error + func (w *Menu) SetTakeFocus(takefocus bool) error + func (w *Menu) SetTearoff(tearoff bool) error + func (w *Menu) SetTearoffTitle(title string) error + func (w *Menu) TearoffTitle() string + type MenuButton struct + func NewMenuButton(parent Widget, text string, attributes ...*WidgetAttr) *MenuButton + func (w *MenuButton) Attach(id string) error + func (w *MenuButton) Compound() Compound + func (w *MenuButton) Direction() Direction + func (w *MenuButton) Image() *Image + func (w *MenuButton) IsTakeFocus() bool + func (w *MenuButton) Menu() *Menu + func (w *MenuButton) Padding() Pad + func (w *MenuButton) PaddingN() (int, int) + func (w *MenuButton) SetCompound(compound Compound) error + func (w *MenuButton) SetDirection(direction Direction) error + func (w *MenuButton) SetImage(image *Image) error + func (w *MenuButton) SetMenu(menu *Menu) error + func (w *MenuButton) SetPadding(pad Pad) error + func (w *MenuButton) SetPaddingN(padx int, pady int) error + func (w *MenuButton) SetState(state State) error + func (w *MenuButton) SetTakeFocus(takefocus bool) error + func (w *MenuButton) SetText(text string) error + func (w *MenuButton) SetWidth(width int) error + func (w *MenuButton) State() State + func (w *MenuButton) Text() string + func (w *MenuButton) Width() int + type MessageBoxIcon int + const MessageBoxIconError + const MessageBoxIconInfo + const MessageBoxIconNone + const MessageBoxIconQuestion + const MessageBoxIconWarning + func (v MessageBoxIcon) String() string + type MessageBoxType int + const MessageBoxTypeAbortRetryIgnore + const MessageBoxTypeOk + const MessageBoxTypeOkCancel + const MessageBoxTypeRetryCancel + const MessageBoxTypeYesNo + const MessageBoxTypeYesNoCancel + func (v MessageBoxType) String() string + type MetaClass struct + Attributes []string + Class string + Command string + func (m *MetaClass) HasAttribute(attr string) bool + type MetaType struct + Tk *MetaClass + Ttk *MetaClass + Type string + type NamedId interface + GetId func(name string) string + func NewNamedId(safe bool) NamedId + type NativeAttr struct + Key string + Value string + type Notebook struct + func NewNotebook(parent Widget, attributes ...*WidgetAttr) *Notebook + func (w *Notebook) AddTab(widget Widget, text string, attributes ...*WidgetAttr) error + func (w *Notebook) Attach(id string) error + func (w *Notebook) CurrentTab() Widget + func (w *Notebook) CurrentTabIndex() int + func (w *Notebook) Height() int + func (w *Notebook) InsertTab(pos int, widget Widget, text string, attributes ...*WidgetAttr) error + func (w *Notebook) IsTakeFocus() bool + func (w *Notebook) Padding() Pad + func (w *Notebook) PaddingN() (int, int) + func (w *Notebook) RemoveTab(widget Widget) error + func (w *Notebook) SetCurrentTab(widget Widget) error + func (w *Notebook) SetHeight(height int) error + func (w *Notebook) SetPadding(pad Pad) error + func (w *Notebook) SetPaddingN(padx int, pady int) error + func (w *Notebook) SetTab(widget Widget, text string, attributes ...*WidgetAttr) error + func (w *Notebook) SetTakeFocus(takefocus bool) error + func (w *Notebook) SetWidth(width int) error + func (w *Notebook) TabCount() int + func (w *Notebook) TabIndex(widget Widget) int + func (w *Notebook) Width() int + type Orient int + const Horizontal + const Vertical + func (v Orient) String() string + type PackLayout struct + func NewHPackLayout(parent Widget) *PackLayout + func NewPackLayout(parent Widget, side Side) *PackLayout + func NewVPackLayout(parent Widget) *PackLayout + func (w *PackLayout) AddWidget(widget Widget, attributes ...*LayoutAttr) error + func (w *PackLayout) AddWidgetEx(widget Widget, fill Fill, expand bool, anchor Anchor) error + func (w *PackLayout) AddWidgetList(widgets []Widget, attributes ...*LayoutAttr) error + func (w *PackLayout) AddWidgets(widgets ...Widget) error + func (w *PackLayout) BorderWidth() int + func (w *PackLayout) InsertWidget(index int, widget Widget, attributes ...*LayoutAttr) error + func (w *PackLayout) InsertWidgetEx(index int, widget Widget, fill Fill, expand bool, anchor Anchor) error + func (w *PackLayout) RemoveWidget(widget Widget) error + func (w *PackLayout) Repack() error + func (w *PackLayout) SetBorderWidth(width int) error + func (w *PackLayout) SetPadding(pad Pad) error + func (w *PackLayout) SetPaddingN(padx int, pady int) error + func (w *PackLayout) SetSide(side Side) error + func (w *PackLayout) SetWidgetAttr(widget Widget, attributes ...*LayoutAttr) error + type Pad struct + X int + Y int + type Paned struct + func NewPaned(parent Widget, orient Orient, attributes ...*WidgetAttr) *Paned + func (w *Paned) AddWidget(widget Widget, weight int) error + func (w *Paned) Attach(id string) error + func (w *Paned) Height() int + func (w *Paned) InsertWidget(pane int, widget Widget, weight int) error + func (w *Paned) RemovePane(pane int) error + func (w *Paned) SetHeight(height int) error + func (w *Paned) SetPane(pane int, weight int) error + func (w *Paned) SetWidth(width int) error + func (w *Paned) Width() int + type PlaceFrame struct + func NewPlaceFrame(parent Widget) *PlaceFrame + func (w *PlaceFrame) AddWidget(widget Widget, attributes ...*LayoutAttr) error + func (w *PlaceFrame) InsertWidget(index int, widget Widget, attributes ...*LayoutAttr) error + func (w *PlaceFrame) RemoveWidget(widget Widget) error + func (w *PlaceFrame) Repack() error + func (w *PlaceFrame) SetWidgetAttr(widget Widget, attributes ...*LayoutAttr) error + type Pos struct + X int + Y int + type ProgressBar struct + func NewProgressBar(parent Widget, orient Orient, attributes ...*WidgetAttr) *ProgressBar + func (w *ProgressBar) Attach(id string) error + func (w *ProgressBar) IsDeterminateMode() bool + func (w *ProgressBar) IsTakeFocus() bool + func (w *ProgressBar) Length() int + func (w *ProgressBar) Maximum() float64 + func (w *ProgressBar) Orient() Orient + func (w *ProgressBar) Pause() error + func (w *ProgressBar) Phase() int + func (w *ProgressBar) SetDeterminateMode(b bool) error + func (w *ProgressBar) SetLength(length int) error + func (w *ProgressBar) SetMaximum(maximum float64) error + func (w *ProgressBar) SetOrient(orient Orient) error + func (w *ProgressBar) SetTakeFocus(takefocus bool) error + func (w *ProgressBar) SetValue(value float64) error + func (w *ProgressBar) Start() error + func (w *ProgressBar) StartEx(ms int) error + func (w *ProgressBar) Stop() error + func (w *ProgressBar) Value() float64 + type RadioButton struct + func NewRadioButton(parent Widget, text string, attributes ...*WidgetAttr) *RadioButton + func (w *RadioButton) Attach(id string) error + func (w *RadioButton) Compound() Compound + func (w *RadioButton) Image() *Image + func (w *RadioButton) Invoke() + func (w *RadioButton) IsChecked() bool + func (w *RadioButton) IsTakeFocus() bool + func (w *RadioButton) OnCommand(fn func()) error + func (w *RadioButton) Padding() Pad + func (w *RadioButton) PaddingN() (int, int) + func (w *RadioButton) SetChecked(check bool) *RadioButton + func (w *RadioButton) SetCompound(compound Compound) error + func (w *RadioButton) SetImage(image *Image) error + func (w *RadioButton) SetPadding(pad Pad) error + func (w *RadioButton) SetPaddingN(padx int, pady int) error + func (w *RadioButton) SetState(state State) error + func (w *RadioButton) SetTakeFocus(takefocus bool) error + func (w *RadioButton) SetText(text string) error + func (w *RadioButton) SetWidth(width int) error + func (w *RadioButton) State() State + func (w *RadioButton) Text() string + func (w *RadioButton) Width() int + type RadioGroup struct + func NewRadioGroup() *RadioGroup + func (w *RadioGroup) AddNewRadio(parent Widget, text string, data interface{}, attributes ...*WidgetAttr) *RadioButton + func (w *RadioGroup) AddRadio(btn *RadioButton, data interface{}) error + func (w *RadioGroup) AddRadios(btns ...*RadioButton) error + func (w *RadioGroup) CheckedData() interface{} + func (w *RadioGroup) CheckedIndex() int + func (w *RadioGroup) CheckedRadio() *RadioButton + func (w *RadioGroup) IsValid() bool + func (w *RadioGroup) OnRadioChanged(fn func()) error + func (w *RadioGroup) RadioData(btn *RadioButton) interface{} + func (w *RadioGroup) RadioList() (lst []*RadioButton) + func (w *RadioGroup) SetCheckedIndex(index int) error + func (w *RadioGroup) SetCheckedRadio(btn *RadioButton) error + func (w *RadioGroup) SetRadioData(btn *RadioButton, data interface{}) error + func (w *RadioGroup) WidgetList() (lst []Widget) + type ReliefStyle int + const ReliefStyleFlat + const ReliefStyleGroove + const ReliefStyleRaised + const ReliefStyleRidge + const ReliefStyleSolid + const ReliefStyleSunken + func (v ReliefStyle) String() string + type Scale struct + func NewScale(parent Widget, orient Orient, attributes ...*WidgetAttr) *Scale + func (w *Scale) Attach(id string) error + func (w *Scale) From() float64 + func (w *Scale) IsTakeFocus() bool + func (w *Scale) Length() int + func (w *Scale) OnCommand(fn func()) error + func (w *Scale) Orient() Orient + func (w *Scale) SetFrom(from float64) error + func (w *Scale) SetLength(length int) error + func (w *Scale) SetOrient(orient Orient) error + func (w *Scale) SetTakeFocus(takefocus bool) error + func (w *Scale) SetTo(to float64) error + func (w *Scale) SetValue(value float64) error + func (w *Scale) To() float64 + func (w *Scale) Value() float64 + type ScrollBar struct + func NewScrollBar(parent Widget, orient Orient, attributes ...*WidgetAttr) *ScrollBar + func (w *ScrollBar) Attach(id string) error + func (w *ScrollBar) IsTakeFocus() bool + func (w *ScrollBar) OnCommandEx(fn func([]string) error) error + func (w *ScrollBar) Orient() Orient + func (w *ScrollBar) SetOrient(orient Orient) error + func (w *ScrollBar) SetScroll(first float64, last float64) error + func (w *ScrollBar) SetScrollArgs(args []string) error + func (w *ScrollBar) SetTakeFocus(takefocus bool) error + type ScrollLayout struct + XScrollBar *ScrollBar + YScrollBar *ScrollBar + func NewScrollLayout(parent Widget) *ScrollLayout + func (w *ScrollLayout) Id() string + func (w *ScrollLayout) SetWidget(widget Widget) error + func (w *ScrollLayout) ShowXScrollBar(b bool) (err error) + func (w *ScrollLayout) ShowYScrollBar(b bool) (err error) + type Separator struct + func NewSeparator(parent Widget, orient Orient, attributes ...*WidgetAttr) *Separator + func (w *Separator) Attach(id string) error + func (w *Separator) IsTakeFocus() bool + func (w *Separator) Orient() Orient + func (w *Separator) SetOrient(orient Orient) error + func (w *Separator) SetTakeFocus(takefocus bool) error + type Side int + const SideBottom + const SideLeft + const SideRight + const SideTop + func (v Side) String() string + type Size struct + Height int + Width int + type SpinBox struct + func NewSpinBox(parent Widget, attributes ...*WidgetAttr) *SpinBox + func (w *SpinBox) Attach(id string) error + func (w *SpinBox) Entry() *Entry + func (w *SpinBox) From() float64 + func (w *SpinBox) Increment() float64 + func (w *SpinBox) IsTakeFocus() bool + func (w *SpinBox) IsWrap() bool + func (w *SpinBox) OnCommand(fn func()) error + func (w *SpinBox) OnEditReturn(fn func()) error + func (w *SpinBox) OnXScrollEx(fn func([]string) error) error + func (w *SpinBox) SetFrom(from float64) error + func (w *SpinBox) SetIncrement(increment float64) error + func (w *SpinBox) SetRange(from, to float64) error + func (w *SpinBox) SetTakeFocus(takefocus bool) error + func (w *SpinBox) SetTextValue(value string) error + func (w *SpinBox) SetTextValues(values []string) error + func (w *SpinBox) SetTo(to float64) error + func (w *SpinBox) SetValue(value float64) error + func (w *SpinBox) SetWrap(wrap bool) error + func (w *SpinBox) TextValue() string + func (w *SpinBox) TextValues() []string + func (w *SpinBox) To() float64 + func (w *SpinBox) Value() float64 + type State int + func (v State) String() string + type Sticky int + func (v Sticky) String() string + type SysFont struct + func LoadSysFont(typ SysFontType) *SysFont + type SysFontType int + const SysCaptionFont + const SysDefaultFont + const SysFixedFont + const SysHeadingFont + const SysIconFont + const SysMenuFont + const SysSmallCaptionFont + const SysTextFont + const SysTooltipFont + type Text struct + func NewText(parent Widget, attributes ...*WidgetAttr) *Text + func (w *Text) AppendText(text string) error + func (w *Text) Attach(id string) error + func (w *Text) Background() string + func (w *Text) BindXScrollBar(bar *ScrollBar) error + func (w *Text) BindYScrollBar(bar *ScrollBar) error + func (w *Text) BorderWidth() int + func (w *Text) Clear() error + func (w *Text) EndLine() int + func (w *Text) Font() Font + func (w *Text) Foreground() string + func (w *Text) Height() int + func (w *Text) HighlightBackground() string + func (w *Text) HighlightColor() string + func (w *Text) Highlightthickness() int + func (w *Text) InactiveSelectBackground() string + func (w *Text) InsertBackground() string + func (w *Text) InsertBorderWidth() int + func (w *Text) InsertOffTime() int + func (w *Text) InsertOnTime() int + func (w *Text) InsertText(pos int, text string) error + func (w *Text) InsertUnfocussed() DisplyCursor + func (w *Text) InsertWidth() int + func (w *Text) IsAutoSeparatorsOnUndo() bool + func (w *Text) IsBlockCursor() bool + func (w *Text) IsEnableUndo() bool + func (w *Text) IsReadOnly() bool + func (w *Text) IsTakeFocus() bool + func (w *Text) Length() int + func (w *Text) LineAboveSpace() int + func (w *Text) LineBelowSpace() int + func (w *Text) LineCount() int + func (w *Text) LineWrap() LineWrapMode + func (w *Text) LineWrapSpace() int + func (w *Text) MaxUndo() int + func (w *Text) OnXScrollEx(fn func([]string) error) error + func (w *Text) OnYScrollEx(fn func([]string) error) error + func (w *Text) Padding() Pad + func (w *Text) PaddingN() (int, int) + func (w *Text) PlainText() string + func (w *Text) ReliefStyle() ReliefStyle + func (w *Text) SelectBackground() string + func (w *Text) Selectborderwidth() int + func (w *Text) Selectforeground() string + func (w *Text) SetAutoSeparatorsOnUndo(autoseparators bool) error + func (w *Text) SetBackground(color string) error + func (w *Text) SetBlockCursor(blockcursor bool) error + func (w *Text) SetBorderWidth(width int) error + func (w *Text) SetEnableUndo(undo bool) error + func (w *Text) SetEndLine(endline int) error + func (w *Text) SetFont(font Font) error + func (w *Text) SetForeground(color string) error + func (w *Text) SetHeight(height int) error + func (w *Text) SetHighlightBackground(color string) error + func (w *Text) SetHighlightColor(color string) error + func (w *Text) SetHighlightthickness(width int) error + func (w *Text) SetInactiveSelectBackground(color string) error + func (w *Text) SetInsertBackground(color string) error + func (w *Text) SetInsertBorderWidth(width int) error + func (w *Text) SetInsertOffTime(offtime int) error + func (w *Text) SetInsertOnTime(ontime int) error + func (w *Text) SetInsertUnfocussed(style DisplyCursor) error + func (w *Text) SetInsertWidth(width int) error + func (w *Text) SetLineAboveSpace(spacing int) error + func (w *Text) SetLineBelowSpace(spacing int) error + func (w *Text) SetLineWrap(wrap LineWrapMode) error + func (w *Text) SetLineWrapSpace(spacing int) error + func (w *Text) SetMaxUndo(maxundo int) error + func (w *Text) SetPadding(pad Pad) error + func (w *Text) SetPaddingN(padx int, pady int) error + func (w *Text) SetReadOnly(b bool) error + func (w *Text) SetReliefStyle(relief ReliefStyle) error + func (w *Text) SetSelectBackground(color string) error + func (w *Text) SetSelectborderwidth(width int) error + func (w *Text) SetSelectforeground(color string) error + func (w *Text) SetStartLine(startline int) error + func (w *Text) SetTabSize(size int) error + func (w *Text) SetTakeFocus(takefocus bool) error + func (w *Text) SetText(text string) error + func (w *Text) SetWidth(width int) error + func (w *Text) SetXViewArgs(args []string) error + func (w *Text) SetYViewArgs(args []string) error + func (w *Text) StartLine() int + func (w *Text) TextLength() int + func (w *Text) Width() int + type TextEx struct + func NewTextEx(parent Widget, attributs ...*WidgetAttr) *TextEx + type TextIndex struct + func (t TextIndex) String() string + type Theme interface + InitAttributes func(typ WidgetType) []NativeAttr + IsTtk func() bool + Name func() string + func MainTheme() Theme + type TreeItem struct + func (t *TreeItem) Children() (lst []*TreeItem) + func (t *TreeItem) Collapse() error + func (t *TreeItem) CollapseAll() error + func (t *TreeItem) ColumnText(column int) string + func (t *TreeItem) Expand() error + func (t *TreeItem) ExpandAll() error + func (t *TreeItem) Id() string + func (t *TreeItem) Image() *Image + func (t *TreeItem) Index() int + func (t *TreeItem) InsertItem(index int, text string, values []string) *TreeItem + func (t *TreeItem) IsExpanded() bool + func (t *TreeItem) IsRoot() bool + func (t *TreeItem) IsValid() bool + func (t *TreeItem) Next() *TreeItem + func (t *TreeItem) Parent() *TreeItem + func (t *TreeItem) Prev() *TreeItem + func (t *TreeItem) SetColumnText(column int, text string) error + func (t *TreeItem) SetExpanded(expand bool) error + func (t *TreeItem) SetImage(img *Image) error + func (t *TreeItem) SetText(text string) error + func (t *TreeItem) SetValues(values []string) error + func (t *TreeItem) Text() string + func (t *TreeItem) Values() []string + type TreeSelectMode int + func (v TreeSelectMode) String() string + type TreeView struct + func NewTreeView(parent Widget, attributes ...*WidgetAttr) *TreeView + func (w *TreeView) AddSelectionList(items []*TreeItem) error + func (w *TreeView) AddSelections(items ...*TreeItem) error + func (w *TreeView) Attach(id string) error + func (w *TreeView) BindXScrollBar(bar *ScrollBar) error + func (w *TreeView) BindYScrollBar(bar *ScrollBar) error + func (w *TreeView) Collapse(item *TreeItem) error + func (w *TreeView) CollepseAll() error + func (w *TreeView) ColumnAnchor(column int) Anchor + func (w *TreeView) ColumnCount() int + func (w *TreeView) ColumnMinimumWidth(column int) int + func (w *TreeView) ColumnStretch(column int) bool + func (w *TreeView) ColumnWidth(column int) int + func (w *TreeView) CurrentIndex() *TreeItem + func (w *TreeView) DeleteAllItems() error + func (w *TreeView) DeleteItem(item *TreeItem) error + func (w *TreeView) Expand(item *TreeItem) error + func (w *TreeView) ExpandAll() error + func (w *TreeView) FocusItem() *TreeItem + func (w *TreeView) HeaderAnchor(column int) Anchor + func (w *TreeView) HeaderImage(column int) *Image + func (w *TreeView) HeaderLabel(column int) string + func (w *TreeView) Height() int + func (w *TreeView) InsertItem(parent *TreeItem, index int, text string, values []string) *TreeItem + func (w *TreeView) IsExpanded(item *TreeItem) bool + func (w *TreeView) IsHeaderHidden() bool + func (w *TreeView) IsTakeFocus() bool + func (w *TreeView) IsValidItem(item *TreeItem) bool + func (w *TreeView) ItemAt(x int, y int) *TreeItem + func (w *TreeView) MoveItem(item *TreeItem, parent *TreeItem, index int) error + func (w *TreeView) OnDoubleClickedItem(fn func(item *TreeItem)) + func (w *TreeView) OnItemCollapsed(fn func()) error + func (w *TreeView) OnItemExpanded(fn func()) error + func (w *TreeView) OnSelectionChanged(fn func()) error + func (w *TreeView) OnXScrollEx(fn func([]string) error) error + func (w *TreeView) OnYScrollEx(fn func([]string) error) error + func (w *TreeView) Padding() Pad + func (w *TreeView) PaddingN() (int, int) + func (w *TreeView) RemoveSelectionList(items []*TreeItem) error + func (w *TreeView) RemoveSelections(items ...*TreeItem) error + func (w *TreeView) RootItem() *TreeItem + func (w *TreeView) ScrollTo(item *TreeItem) error + func (w *TreeView) SelectionList() (lst []*TreeItem) + func (w *TreeView) SetColumnAnchor(column int, anchor Anchor) error + func (w *TreeView) SetColumnCount(columns int) error + func (w *TreeView) SetColumnMinimumWidth(column int, width int) error + func (w *TreeView) SetColumnStretch(column int, stretch bool) error + func (w *TreeView) SetColumnWidth(column int, width int) error + func (w *TreeView) SetCurrentIndex(item *TreeItem) error + func (w *TreeView) SetExpanded(item *TreeItem, expand bool) error + func (w *TreeView) SetFocusItem(item *TreeItem) error + func (w *TreeView) SetHeaderAnchor(column int, anchor Anchor) error + func (w *TreeView) SetHeaderHidden(hide bool) error + func (w *TreeView) SetHeaderImage(column int, img *Image) error + func (w *TreeView) SetHeaderLabel(column int, label string) error + func (w *TreeView) SetHeaderLabels(labels []string) error + func (w *TreeView) SetHeight(row int) error + func (w *TreeView) SetPadding(pad Pad) error + func (w *TreeView) SetPaddingN(padx int, pady int) error + func (w *TreeView) SetSelectionList(items []*TreeItem) error + func (w *TreeView) SetSelections(items ...*TreeItem) error + func (w *TreeView) SetTakeFocus(takefocus bool) error + func (w *TreeView) SetTreeSelectMode(mode TreeSelectMode) error + func (w *TreeView) SetXViewArgs(args []string) error + func (w *TreeView) SetYViewArgs(args []string) error + func (w *TreeView) ToggleSelectionList(items []*TreeItem) error + func (w *TreeView) ToggleSelections(items ...*TreeItem) error + func (w *TreeView) ToplevelItems() []*TreeItem + func (w *TreeView) TreeSelectMode() TreeSelectMode + type TreeViewEx struct + func NewTreeViewEx(parent Widget, attributs ...*WidgetAttr) *TreeViewEx + type UserFont struct + func NewUserFont(family string, size int, attributes ...*FontAttr) *UserFont + func NewUserFontFromClone(font Font) *UserFont + func (f *UserFont) Destroy() error + func (w *UserFont) SetBold(bold bool) *UserFont + func (w *UserFont) SetFamily(family string) *UserFont + func (w *UserFont) SetItalic(italic bool) *UserFont + func (w *UserFont) SetOverstrike(overstrike bool) *UserFont + func (w *UserFont) SetSize(size int) *UserFont + func (w *UserFont) SetUnderline(underline bool) *UserFont + type Widget interface + Children func() []Widget + Destroy func() error + DestroyChildren func() error + Id func() string + Info func() *WidgetInfo + IsValid func() bool + Parent func() Widget + Type func() WidgetType + TypeName func() string + func ChildrenOfWidget(w Widget) (list []Widget) + func FindWidget(id string) Widget + func FocusWidget() Widget + func LookupWidget(id string) (w Widget, ok bool) + func ParentOfWidget(w Widget) Widget + type WidgetAttr struct + func ButtonAttrCompound(compound Compound) *WidgetAttr + func ButtonAttrImage(image *Image) *WidgetAttr + func ButtonAttrPadding(padding Pad) *WidgetAttr + func ButtonAttrState(state State) *WidgetAttr + func ButtonAttrTakeFocus(takefocus bool) *WidgetAttr + func ButtonAttrText(text string) *WidgetAttr + func ButtonAttrWidth(width int) *WidgetAttr + func CanvasAttrBackground(color string) *WidgetAttr + func CanvasAttrBorderWidth(width int) *WidgetAttr + func CanvasAttrCloseEnough(closeenough float64) *WidgetAttr + func CanvasAttrConfine(confine bool) *WidgetAttr + func CanvasAttrHeight(height int) *WidgetAttr + func CanvasAttrHighlightBackground(color string) *WidgetAttr + func CanvasAttrHighlightColor(color string) *WidgetAttr + func CanvasAttrHighlightthickness(width int) *WidgetAttr + func CanvasAttrInsertBackground(color string) *WidgetAttr + func CanvasAttrInsertBorderWidth(width int) *WidgetAttr + func CanvasAttrInsertOffTime(offtime int) *WidgetAttr + func CanvasAttrInsertOnTime(ontime int) *WidgetAttr + func CanvasAttrInsertWidth(width int) *WidgetAttr + func CanvasAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func CanvasAttrSelectBackground(color string) *WidgetAttr + func CanvasAttrSelectborderwidth(width int) *WidgetAttr + func CanvasAttrSelectforeground(color string) *WidgetAttr + func CanvasAttrState(state State) *WidgetAttr + func CanvasAttrTakeFocus(takefocus bool) *WidgetAttr + func CanvasAttrWidth(width int) *WidgetAttr + func CanvasAttrXScrollIncrement(value int) *WidgetAttr + func CanvasAttrYScrollIncrement(value int) *WidgetAttr + func CheckButtonAttrCompound(compound Compound) *WidgetAttr + func CheckButtonAttrImage(image *Image) *WidgetAttr + func CheckButtonAttrPadding(padding Pad) *WidgetAttr + func CheckButtonAttrState(state State) *WidgetAttr + func CheckButtonAttrTakeFocus(takefocus bool) *WidgetAttr + func CheckButtonAttrText(text string) *WidgetAttr + func CheckButtonAttrWidth(width int) *WidgetAttr + func ComboBoxAttrBackground(color string) *WidgetAttr + func ComboBoxAttrEcho(echo string) *WidgetAttr + func ComboBoxAttrFont(font Font) *WidgetAttr + func ComboBoxAttrForground(color string) *WidgetAttr + func ComboBoxAttrHeight(height int) *WidgetAttr + func ComboBoxAttrJustify(justify Justify) *WidgetAttr + func ComboBoxAttrState(state State) *WidgetAttr + func ComboBoxAttrTakeFocus(takefocus bool) *WidgetAttr + func ComboBoxAttrValues(values []string) *WidgetAttr + func ComboBoxAttrWidth(width int) *WidgetAttr + func EntryAttrBackground(color string) *WidgetAttr + func EntryAttrExportSelection(export bool) *WidgetAttr + func EntryAttrFont(font Font) *WidgetAttr + func EntryAttrForeground(color string) *WidgetAttr + func EntryAttrJustify(justify Justify) *WidgetAttr + func EntryAttrShow(show string) *WidgetAttr + func EntryAttrState(state State) *WidgetAttr + func EntryAttrTakeFocus(takefocus bool) *WidgetAttr + func EntryAttrWidth(width int) *WidgetAttr + func FrameAttrBorderWidth(width int) *WidgetAttr + func FrameAttrHeight(height int) *WidgetAttr + func FrameAttrPadding(pad Pad) *WidgetAttr + func FrameAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func FrameAttrTakeFocus(takefocus bool) *WidgetAttr + func FrameAttrWidth(width int) *WidgetAttr + func LabelAttrAnchor(anchor Anchor) *WidgetAttr + func LabelAttrBackground(color string) *WidgetAttr + func LabelAttrBorderWidth(width int) *WidgetAttr + func LabelAttrCompound(compound Compound) *WidgetAttr + func LabelAttrFont(font Font) *WidgetAttr + func LabelAttrForground(color string) *WidgetAttr + func LabelAttrImage(image *Image) *WidgetAttr + func LabelAttrJustify(justify Justify) *WidgetAttr + func LabelAttrPadding(padding Pad) *WidgetAttr + func LabelAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func LabelAttrState(state State) *WidgetAttr + func LabelAttrTakeFocus(takefocus bool) *WidgetAttr + func LabelAttrText(text string) *WidgetAttr + func LabelAttrWidth(width int) *WidgetAttr + func LabelAttrWrapLength(wraplength int) *WidgetAttr + func LabelFrameAttrBorderWidth(width int) *WidgetAttr + func LabelFrameAttrHeight(height int) *WidgetAttr + func LabelFrameAttrLabelAnchor(anchor Anchor) *WidgetAttr + func LabelFrameAttrLabelText(text string) *WidgetAttr + func LabelFrameAttrPadding(pad Pad) *WidgetAttr + func LabelFrameAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func LabelFrameAttrTakeFocus(takefocus bool) *WidgetAttr + func LabelFrameAttrWidth(width int) *WidgetAttr + func ListBoxAttrBackground(color string) *WidgetAttr + func ListBoxAttrBorderWidth(width int) *WidgetAttr + func ListBoxAttrFont(font Font) *WidgetAttr + func ListBoxAttrForground(color string) *WidgetAttr + func ListBoxAttrHeight(height int) *WidgetAttr + func ListBoxAttrJustify(justify Justify) *WidgetAttr + func ListBoxAttrPadding(padding Pad) *WidgetAttr + func ListBoxAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func ListBoxAttrSelectMode(mode ListSelectMode) *WidgetAttr + func ListBoxAttrState(state State) *WidgetAttr + func ListBoxAttrTakeFocus(takefocus bool) *WidgetAttr + func ListBoxAttrWidth(width int) *WidgetAttr + func MenuAttrActiveBackground(color string) *WidgetAttr + func MenuAttrActiveBorderWidth(width int) *WidgetAttr + func MenuAttrActiveForground(color string) *WidgetAttr + func MenuAttrBackground(color string) *WidgetAttr + func MenuAttrBorderWidth(width int) *WidgetAttr + func MenuAttrDisabledForground(color string) *WidgetAttr + func MenuAttrFont(font Font) *WidgetAttr + func MenuAttrForground(color string) *WidgetAttr + func MenuAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func MenuAttrSelectColor(color string) *WidgetAttr + func MenuAttrTakeFocus(takefocus bool) *WidgetAttr + func MenuAttrTearoff(tearoff bool) *WidgetAttr + func MenuAttrTearoffTitle(title string) *WidgetAttr + func MenuButtonAttrCompound(compound Compound) *WidgetAttr + func MenuButtonAttrDirection(direction Direction) *WidgetAttr + func MenuButtonAttrImage(image *Image) *WidgetAttr + func MenuButtonAttrMenu(menu *Menu) *WidgetAttr + func MenuButtonAttrPadding(padding Pad) *WidgetAttr + func MenuButtonAttrState(state State) *WidgetAttr + func MenuButtonAttrTakeFocus(takefocus bool) *WidgetAttr + func MenuButtonAttrText(text string) *WidgetAttr + func MenuButtonAttrWidth(width int) *WidgetAttr + func NotebookAttrHeight(height int) *WidgetAttr + func NotebookAttrPadding(padding Pad) *WidgetAttr + func NotebookAttrTakeFocus(takefocus bool) *WidgetAttr + func NotebookAttrWidth(width int) *WidgetAttr + func PanedAttrHeight(height int) *WidgetAttr + func PanedAttrWidth(width int) *WidgetAttr + func ProgressBarAttrLength(length int) *WidgetAttr + func ProgressBarAttrMaximum(maximum float64) *WidgetAttr + func ProgressBarAttrOrient(orient Orient) *WidgetAttr + func ProgressBarAttrTakeFocus(takefocus bool) *WidgetAttr + func ProgressBarAttrValue(value float64) *WidgetAttr + func RadioButtonAttrCompound(compound Compound) *WidgetAttr + func RadioButtonAttrImage(image *Image) *WidgetAttr + func RadioButtonAttrPadding(padding Pad) *WidgetAttr + func RadioButtonAttrState(state State) *WidgetAttr + func RadioButtonAttrTakeFocus(takefocus bool) *WidgetAttr + func RadioButtonAttrText(text string) *WidgetAttr + func RadioButtonAttrWidth(width int) *WidgetAttr + func ScaleAttrFrom(from float64) *WidgetAttr + func ScaleAttrLength(length int) *WidgetAttr + func ScaleAttrOrient(orient Orient) *WidgetAttr + func ScaleAttrTakeFocus(takefocus bool) *WidgetAttr + func ScaleAttrTo(to float64) *WidgetAttr + func ScaleAttrValue(value float64) *WidgetAttr + func ScrollBarAttrOrient(orient Orient) *WidgetAttr + func ScrollBarAttrTakeFocus(takefocus bool) *WidgetAttr + func SeparatorAttrOrient(orient Orient) *WidgetAttr + func SeparatorAttrTakeFocus(takefocus bool) *WidgetAttr + func SpinBoxAttrFrom(from float64) *WidgetAttr + func SpinBoxAttrIncrement(increment float64) *WidgetAttr + func SpinBoxAttrTakeFocus(takefocus bool) *WidgetAttr + func SpinBoxAttrTextValues(values []string) *WidgetAttr + func SpinBoxAttrTo(to float64) *WidgetAttr + func SpinBoxAttrWrap(wrap bool) *WidgetAttr + func TabAttrCompound(compound Compound) *WidgetAttr + func TabAttrImage(image *Image) *WidgetAttr + func TabAttrPadding(padding Pad) *WidgetAttr + func TabAttrState(state State) *WidgetAttr + func TabAttrSticky(sticky Sticky) *WidgetAttr + func TabAttrText(text string) *WidgetAttr + func TextAttrAutoSeparatorsOnUndo(autoseparators bool) *WidgetAttr + func TextAttrBackground(color string) *WidgetAttr + func TextAttrBlockCursor(blockcursor bool) *WidgetAttr + func TextAttrBorderWidth(width int) *WidgetAttr + func TextAttrEnableUndo(undo bool) *WidgetAttr + func TextAttrEndLine(endline int) *WidgetAttr + func TextAttrFont(font Font) *WidgetAttr + func TextAttrForeground(color string) *WidgetAttr + func TextAttrHeight(height int) *WidgetAttr + func TextAttrHighlightBackground(color string) *WidgetAttr + func TextAttrHighlightColor(color string) *WidgetAttr + func TextAttrHighlightthickness(width int) *WidgetAttr + func TextAttrInactiveSelectBackground(color string) *WidgetAttr + func TextAttrInsertBackground(color string) *WidgetAttr + func TextAttrInsertBorderWidth(width int) *WidgetAttr + func TextAttrInsertOffTime(offtime int) *WidgetAttr + func TextAttrInsertOnTime(ontime int) *WidgetAttr + func TextAttrInsertUnfocussed(style DisplyCursor) *WidgetAttr + func TextAttrInsertWidth(width int) *WidgetAttr + func TextAttrLineAboveSpace(spacing int) *WidgetAttr + func TextAttrLineBelowSpace(spacing int) *WidgetAttr + func TextAttrLineWrap(wrap LineWrapMode) *WidgetAttr + func TextAttrLineWrapSpace(spacing int) *WidgetAttr + func TextAttrMaxUndo(maxundo int) *WidgetAttr + func TextAttrPadding(padding Pad) *WidgetAttr + func TextAttrReliefStyle(relief ReliefStyle) *WidgetAttr + func TextAttrSelectBackground(color string) *WidgetAttr + func TextAttrSelectborderwidth(width int) *WidgetAttr + func TextAttrSelectforeground(color string) *WidgetAttr + func TextAttrStartLine(startline int) *WidgetAttr + func TextAttrTakeFocus(takefocus bool) *WidgetAttr + func TextAttrWidth(width int) *WidgetAttr + func TreeViewAttrHeight(row int) *WidgetAttr + func TreeViewAttrPadding(padding Pad) *WidgetAttr + func TreeViewAttrTakeFocus(takefocus bool) *WidgetAttr + func TreeViewAttrTreeSelectMode(mode TreeSelectMode) *WidgetAttr + func WidgetAttrBorderWidth(width int) *WidgetAttr + func WidgetAttrFont(font Font) *WidgetAttr + func WidgetAttrHeight(height int) *WidgetAttr + func WidgetAttrImage(image *Image) *WidgetAttr + func WidgetAttrInitUseTheme(use bool) *WidgetAttr + func WidgetAttrPadding(pad Pad) *WidgetAttr + func WidgetAttrPaddingN(padx int, pady int) *WidgetAttr + func WidgetAttrReliefStyle(style ReliefStyle) *WidgetAttr + func WidgetAttrText(text string) *WidgetAttr + func WidgetAttrWidth(width int) *WidgetAttr + func WindowOptBorderWidth(width int) *WidgetAttr + func WindowOptId(id string) *WidgetAttr + func WindowOptPadx(padx int) *WidgetAttr + func WindowOptPady(pady int) *WidgetAttr + func WindowOptReliefStyle(style ReliefStyle) *WidgetAttr + type WidgetInfo struct + IsTtk bool + MetaClass *MetaClass + Type WidgetType + TypeName string + func CheckWidgetInfo(id string, typ WidgetType) (*WidgetInfo, error) + func CreateWidgetInfo(iid string, typ WidgetType, theme bool, attributes []*WidgetAttr) *WidgetInfo + func FindWidgetInfo(id string) *WidgetInfo + type WidgetType int + const WidgetTypeButton + const WidgetTypeCanvas + const WidgetTypeCheckButton + const WidgetTypeComboBox + const WidgetTypeEntry + const WidgetTypeFrame + const WidgetTypeLabel + const WidgetTypeLabelFrame + const WidgetTypeLast + const WidgetTypeLayoutFrame + const WidgetTypeLayoutSpacer + const WidgetTypeListBox + const WidgetTypeMenu + const WidgetTypeMenuButton + const WidgetTypeNone + const WidgetTypeNotebook + const WidgetTypePaned + const WidgetTypeProgressBar + const WidgetTypeRadioButton + const WidgetTypeScale + const WidgetTypeScrollBar + const WidgetTypeSeparator + const WidgetTypeSizeGrip + const WidgetTypeSpinBox + const WidgetTypeText + const WidgetTypeTreeView + const WidgetTypeWindow + func (typ WidgetType) MetaClass(theme bool) (typName string, meta *MetaClass, ttk bool) + func (typ WidgetType) ThemeConfigure() string + type Window struct + func NewWindow(attributes ...*WidgetAttr) *Window + func RootWindow() *Window + func (w *Window) Alpha() float64 + func (w *Window) Attach(id string) error + func (w *Window) Center() error + func (w *Window) Deiconify() error + func (w *Window) Geometry() Geometry + func (w *Window) GeometryN() (x int, y int, width int, height int) + func (w *Window) Height() (height int) + func (w *Window) Hide() error + func (w *Window) Iconify() error + func (w *Window) IsFullScreen() bool + func (w *Window) IsIconify() bool + func (w *Window) IsMaximized() bool + func (w *Window) IsMinimized() bool + func (w *Window) IsResizable() (enableWidth bool, enableHeight bool) + func (w *Window) IsTopmost() bool + func (w *Window) IsVisible() bool + func (w *Window) MaximumSize() Size + func (w *Window) MaximumSizeN() (int, int) + func (w *Window) Menu() *Menu + func (w *Window) MinimumSize() Size + func (w *Window) MinimumSizeN() (int, int) + func (w *Window) Move(pos Pos) error + func (w *Window) MoveN(x int, y int) error + func (w *Window) OnClose(fn func() (accept bool)) error + func (w *Window) Pos() Pos + func (w *Window) PosN() (x int, y int) + func (w *Window) Resize(sz Size) error + func (w *Window) ResizeN(width int, height int) error + func (w *Window) ScreenSize() Size + func (w *Window) ScreenSizeN() (width int, height int) + func (w *Window) SetAlpha(alpha float64) error + func (w *Window) SetFullScreen(full bool) error + func (w *Window) SetGeometry(v Geometry) error + func (w *Window) SetGeometryN(x int, y int, width int, height int) error + func (w *Window) SetHeight(height int) error + func (w *Window) SetMaximumSize(sz Size) error + func (w *Window) SetMaximumSizeN(width int, height int) error + func (w *Window) SetMenu(m *Menu) error + func (w *Window) SetMinimumSize(sz Size) error + func (w *Window) SetMinimumSizeN(width int, height int) error + func (w *Window) SetNaturalSize() error + func (w *Window) SetPos(pos Pos) error + func (w *Window) SetPosN(x int, y int) error + func (w *Window) SetResizable(enableWidth bool, enableHeight bool) error + func (w *Window) SetSize(sz Size) error + func (w *Window) SetSizeN(width int, height int) error + func (w *Window) SetTitle(title string) error + func (w *Window) SetToolwindow() error + func (w *Window) SetTopmost(full bool) error + func (w *Window) SetVisible(b bool) error + func (w *Window) SetWidth(width int) error + func (w *Window) ShowFullScreen() error + func (w *Window) ShowMaximized() error + func (w *Window) ShowMinimized() error + func (w *Window) ShowNormal() error + func (w *Window) Size() Size + func (w *Window) SizeN() (width int, height int) + func (w *Window) Title() string + func (w *Window) Width() (width int) + type WindowInfo struct + Height int + Width int + X int + Y int